# onTabAction

**URL:** <https://forum.servoy.com/t/ontabaction/3788>\
**Category:** Classic Servoy\
**Created:** [March 3, 2005, 2:14am UTC](https://forum.servoy.com/t/ontabaction/3788 "2005-03-03T02:14:04Z")\
**Posts on this page:** 3\
**Page:** 2

<div class="post-metadata">

**Author:** ![Robert\_Huber](https://avatars.discourse-cdn.com/v4/letter/r/da6949/32.png) [@Robert\_Huber](https://forum.servoy.com/u/Robert_Huber)\
**Post date:** [November 5, 2007, 4:25pm UTC](https://forum.servoy.com/t/ontabaction/3788/21 "2007-11-05T16:25:10Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![pbakker](https://avatars.discourse-cdn.com/v4/letter/p/a4c791/32.png) [@pbakker](https://forum.servoy.com/u/pbakker)\
**Post date:** [November 11, 2007, 2:35pm UTC](https://forum.servoy.com/t/ontabaction/3788/22 "2007-11-11T14:35:07Z")

</div>

onTabChange is a property of a TabPanel in developer.

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

Paul

---

<div class="post-metadata">

**Author:** ![Harjo](https://yyz2.discourse-cdn.com/flex010/user_avatar/forum.servoy.com/harjo/32/4873_2.png) [@Harjo](https://forum.servoy.com/u/Harjo)\
**Post date:** [November 11, 2007, 2:51pm UTC](https://forum.servoy.com/t/ontabaction/3788/23 "2007-11-11T14:51:17Z")

</div>

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.

[Previous page](https://forum.servoy.com/t/ontabaction/3788.md?page=1)
