Tab Application : Open a specific tab ?

Hi,

In a Tab Application do you know a way to open in a specific tab ?

For example, in a Tap Application with 5 tabs, it is always the first that opens. Of course to complicate the game, I have to open the 3rd tab first !

  • I have not found any options with sc_redir() to open a tab application
  • There is no events in Tab Application

Searching in the generated code, I find :

1 - some hidden form fields to store the number of the active tab “[SIZE=11px]nmgp_num_aba=1” , [/SIZE]
2 - some variables in JavaScript who seems to be initialized by scritcase to open the first tab with [SIZE=11px]function nm_gp_submit(aba)and [/SIZE]the variable [SIZE=11px]var sc_cel_ativa = 1;[/SIZE]

I will try to send a parameter via sc_redir() to the Tab Application to test the above vars, but as there are no events I am not good enough with Scriptcase to intercept the sc_redir() params in the ta application … so unable to test that’s why I ask the Forum …

Thanks in advance,
Herve

Hi Herveo ,
please try this:
https://forum.scriptcase.net/forum/a…c-page-in-form
anwer from stephanw

…call the javascript function:
sc_exib_ocult_pag (‘YourFormAppName_form0’); // open the first tab of form
sc_exib_ocult_pag (‘YourFormAppName_form1’); // open the second tab of form
sc_exib_ocult_pag (‘YourFormAppName_form2’); // open the third tab of form
[B]…

Kind Regards,[/B]
Rick

Hello Rick007 I think it is not the solution you are looking for herbeo.
Since it is a solution to access a specific page within a form, even in a response they provide a link to another post with a solution to access a specific record within a form. Both very good solutions. But the problem posed by herbeo, with which I have come across, is now accessing a tab specific to a tab application and this type of application does NOT have any events for javascript programming.

could you solve it?

If you are still looking for a solution:
https://support.scriptcase.net/en-us/article/1012-navigate-between-tab-dynamically