Hi,
Does anyone have a suggestion for best practice och getting access to global variables when subscribing to a Trigger Event.
For example in table 36 Sales Header there is a Global variable HideValidationDialog. If I'm subscribing to any Trigger Event like OnAfterValidate I would like to get the value of HideValidationDialog. Trigger Events doesn't provide Global Var Access.
One way would be to create a new function on Table 36 GetHideValidationDialog returning the value of HideValidationDialog but this would be of limited use since I might wan't to get other Variable values as well. And by adding a function like GetGlobalVariables returning most commonly used Global variables, it wouldn't be very extendable if I later would like to add a new variable all functions using my new function would fail due to wrong no. of parameters.
I thought of adding a function and a new publisher event where my function raised an Integration Event with Global Var access. But I can't subscribe to that event within my subscriber function.
Any Ideas. I can solve my most immediate problems but I need the best way with the least modification and the most reuse ability.
Br. Pontus
*This post is locked for comments
I have the same question (0)