In ERP10 i used environmental variables to pass variables from a parent screen to a subscreen.
For example; I had a dashboard with all available work (operations) in a grid. I could select a record click on a button Start Setup and the next form opens and the required textboxes, combo boxes etc. are already entered.
In the parent:
Environment.SetEnvironmentVariable
in the child:
Environment.GetEnvironmentVariable
Is there some way to pass data like this in application studio?
I have created a layer in Erp.UI.Mes and itâs calling Erp.UI.StartSetupActivityEntry using an open-app tile (sliding form). I tried to use callContextBpmData, but this value is already lost in the next form.
During debugging I found 3 potentials tables (no columns) to pass data â TransView, KeyFields, KeyFieldParams
On the receiving form, you need to add an event (I used After Form_OnLoad, but find what works for you) to set the fields into a view of your choice. I typically use TransView because itâs already there and you can add fields to it on the fly. In the event, use a row-update widget and set the value to that disgusting string.
That looks exactly like what I need to finish my plan. I tried it before with the ContextValue, but I didnât know how to set those parameters like you did. Thank you very much!
I do however have an issue with application studio missing de epBinding field. The problem occurs in the full-client and in the web-client. Most of the time the field is hidden. Any idea what triggers this field to appear?
If I add a textbox somewhere and bind it to an epBinding and throw it away it is triggered and the field can be used
Still struggeling. I tried the example you gave me, but I canât get the params send to the next screen. I see you are able to find them in the debugging mode, but how did you get there? I get lost in the many transaction and values that are shown in the console/ sources and network tabs.
To debug the set and get logic i created a button in the next screen to read the value in the initialValueIn data as I couldnât get it into a textbox by the âafter form loadâ. During this phase i even couldnât get employeeID to display which should be stored in the valueIn (not contextvalue).
From the Erp.UI.Mes:
Start Setup button sends out {âemployeeIDâ: â{Constant.CurrentEmployeeID}â}
In the Erp.UI.StartSetupActivityEntry:
Added new button to display the value:
Message: â%session.context.initialValueIn.employeeID%â
Result: ââ
if i call for â%session.context.initialValueIn.contextValue.Param1%â the popup doesnât even follow, so I think itâs not even there.
Use a different event downstream. âAfterâ AfterInitialize may work for your needs. You could also try âafterâ Execute_GetByID. Experiment with events to find the one that works for your needs.
Ah finally got it. Couldnât get the dev tools operating normal (ctrl + shift + 8) and so on. Turned out that my keyboard setting in language Dutch was causing the problem. Changed it to English(US) and I could finally start debugging.
The problem i was facing is the bug that an app-open tile canât be changed. Everytime it changed back to the settings (Value options) i entered the first time. Deleting the tile and 10 attempts further deleting the whole button_click event (everytime it was back ) I could build a new open-app tile with the right value in information.
Thank you very much! Without your help I probably would have thrown my laptop out of the window