Hello,
i am creating a model driven app and I want to pass a value form the main form to the quick create form. This value is really just the selected field the main form is currently showing.
I have tried executionContext.setSharedVariable on the main form and am trying to pass this via formContext.ui.setFormNotification to test if it is working, but the notification is empty (the notification appears when i pass a given string). Below is my code:
var RelationSetVarForQuickCreate = window.RelationSetVarForQuickCreate || {};
(function RelationSetVarForQuickCreate(){
this.formOnLoad = function (executionContext) {
var formContext = executionContext.getFormContext();
var mySharedVariable= formContext.getAttribute("logical column name of mySharedVariable").getValue();
formContext.ui.setFormNotification(mySharedVariable, "INFO", 1);
executionContext.setSharedVariable("mySharedVariable", mySharedVariable);
}
}).call(RelationSetVarForQuickCreate);