Scripting tabs

Discuss all problems you have with Servoy here. It might help to mention the Servoy version and Operating System version you are using

Scripting tabs

Postby maria.kyselova » Mon Oct 22, 2012 5:55 am

Hi All,

I found it a little bit inconsistent that scripting functions for split tabpanels are different from the other types of tabpanels.
This function is not available, for example:
Code: Select all
org.mozilla.javascript.EcmaError: TypeError: Cannot find function getTabRelationNameAt in object SPLITPANE[name:tabs_main,x:0,y:0,width:995,height:720]


..as well as getMaxTabIndex() and other.

I am doing a standard routine for any form that has tabpanels and need to loop through all tabs, but get stuck this way when I come accross a split pane.

Reckon I can use solutionModel to get things done, but still, consistency is always nice :)

Cheers,
Maria
Cheers,
Maria
maria.kyselova
 
Posts: 172
Joined: Thu Aug 09, 2012 12:56 am

Re: Scripting tabs

Postby lvostinar » Mon Oct 22, 2012 9:27 am

maria.kyselova wrote:Hi All,

I found it a little bit inconsistent that scripting functions for split tabpanels are different from the other types of tabpanels.
This function is not available, for example:
Code: Select all
org.mozilla.javascript.EcmaError: TypeError: Cannot find function getTabRelationNameAt in object SPLITPANE[name:tabs_main,x:0,y:0,width:995,height:720]


..as well as getMaxTabIndex() and other.

I am doing a standard routine for any form that has tabpanels and need to loop through all tabs, but get stuck this way when I come accross a split pane.

Reckon I can use solutionModel to get things done, but still, consistency is always nice :)

Cheers,
Maria


Please open a case for this.
Laurian Vostinar
Servoy
lvostinar
 
Posts: 1062
Joined: Tue Feb 19, 2008 10:53 am

Re: Scripting tabs

Postby maria.kyselova » Wed Oct 24, 2012 12:54 am

lvostinar wrote:
Please open a case for this.


Done, https://support.servoy.com/browse/SVY-3282

Thanks,
Maria
Cheers,
Maria
maria.kyselova
 
Posts: 172
Joined: Thu Aug 09, 2012 12:56 am


Return to Discuss possible Issues and Bugs

Who is online

Users browsing this forum: No registered users and 4 guests

cron