Hi all
My requirement is after an event like change in column based on a condition user should be prompted a multiselection lookup page of an existing detail object and restrict saving if any values are not selected in the page.
How to achieve this requirement?
Like
Hi all
For the above requirement, I tried using messaging mechanism to open the lookup selection modal window. But, my handler method is not being triggered. Below is the code in case page
messages: {
"caseResolvedOpenTags": {
mode: Terrasoft.MessageMode.PTP,
direction: Terrasoft.MessageDirectionType.PUBLISH
}
},
methods:{
onStatusChanged: function(){
this.callParent(arguments);
var args = {
caseId: this.get("Id")
};
this.sandbox.publish("caseResolvedOpenTags", args,["promptLookup"]);
}
}
Below is the code in the multi select detail page(subscribed module)
messages: {
"caseResolvedOpenTags": {
mode: Terrasoft.MessageMode.PTP,
direction: Terrasoft.MessageDirectionType.SUBSCRIBE
},
methods: {
init: function(){
this.callParent(arguments);
this.sandbox.subscribe("caseResolvedOpenTags", this.onOpenTags, this, ["promptLookup"]);
},
onOpenTags: function(args){
//var caseId = args.caseId;
this.openLookupWithMultiSelect(true);
}
}
Hello,
You need to debug the code to go through all the steps and check where whether the message is sent or not and if it's being received by the subscription function. Here is the article regarding the client-side debugging.
Best regards,
Oscar