onTabAction

Hi Bob

If you do that with dynamically loading the appropriate form, you don’t need anything of the below mentioned (globals, …) as far as I understand your desire.
You can use the relationship name in the addTab stmt.

Regards, Robert

bobcart:
It would be great if we could fire a script when a tab panel tab is clicked. For example. I have a tab penel with two tabs. One includes a form with a table of records and the other shows a detial view for a given record. In this case, I need to set a global used in a relationship to show some related records for this record. To do this, I now have to have a seperate button to set the global and switch the tab rather than just tieing the set global statement to a method run when the tab is clicked.

I can work around it in this case with a onShow event for the form, but with a more comples situation, having an onTabAction event would be a clean and elegant way to do it.

onTabChange is a property of a TabPanel in developer.

Been in there since 3.5, if I’m correct.

Paul

ah thanks Paul, we are still on 3.1.6 (looking to step over to 3.5.2)
that’s why I couldn’t find it.