Capture when tab is selected

Is there any way to programmatically determine when a user clicks a particular tab in a tabbed table? Ideally, I would like the user to be able to click the “Search Results” tab and have lotusscript execute to perform the search.

Thanks

Subject: If you have an editable field on the tab…

…it gets focus, so you should be able to use the field onfocus event to tell.

Subject: Capture when tab is selected

No editable field - just an embedded view (folder). But, I could possibly add a field that would be almost undetectable.

I’m also looking at the folder events to see if the code can be triggered there - without affecting other functions that use the folder.

Thanks for the suggestion!

Subject: possible workaround :wink:

I have done following in my company:

  1. Tabbed Tabel & Buttons
  • Set the “name” field to the name of the table; for example: “RequestType.”

  • Create a variable on the form with $Name; for example: “$RequestType.”

  1. Button To Navigate Next / Back with Following Code, for example

[Next]

Field $RequestType := 2;

@Command([RefreshHideFormulas])

[Previouse]

Field $RequestType := 1;

@Command([RefreshHideFormulas])

To simplify this problem you can download the File at:

http://87.230.12.183/balicom/index.php?option=com_content&view=article&id=37:tabbedtable&catid=32:dbs&Itemid=47

I hope this helps

Thomas

P.S.: See the all Table-Properties for understanding the Buttons!