If I understand the matter correctly:
- You would like to have $$tab be updated whenever the user switches tabs
- Without a window refresh, you are unable to programatically update $$tab using your current methodology.
If I understand you correctly, and if you are working in FM Version 12, I suggest taking a look at the function:
"Returns the index and the object name of the target tab panel (the tab panel to be switched to) when the OnTabSwtich is activated."
Using the above function should allow your OnTabSwitch triggered script to:
- Update $$tab to reflect the destination tab panel
- Refresh the window
Hope this helps & best,
1 of 1 people found this helpful
Besides Steve's solution, you might also want to try using the on object modify script trigger on your tab panel. That triggers after the change.
Thank you very much Steve, this looks like a working solution.
The on object modify scrip trigger "triggers" too often. That's why I decided not to use it.