Question

Send data between 2 modules ...

Hello there,

I want "send" a array  of object id via messages (publish etc ...) to another module : like this :

        messages: {
            "GetInterventions": {
                mode: this.Terrasoft.MessageMode.PTP,
                direction: this.Terrasoft.MessageDirectionType.PUBLISH
            }
        },

            --------
        

methods: {

    callNewScheduler: function() {

                var selectedRows = this.get("SelectedRows");
                this.sandbox.publish("GetInterventions", {
                    interventions: selectedRows
                }, [this.sandbox.id]);
                this.sandbox.publish("PushHistoryState", {
                    hash: "UsrInterventionPlanning"
                });
            },
}

The "sandbox.publish("PushHistoryState")" action works fine : we jump to "UsrInterventionPlanning" module but the "GetInterventions" is not called ?!

How can i do it?

Thanks for all in advance,

Davyd REY

 

 

 

File attachments

Like

0 comments
Show all comments