Q:
if I have a TabView, how do I loop between the section?
I tried to test the properties "TabView", but then I can not read it:
A:
Code:
////////////////////////////////////////////////////////////////
// Event delegate for 'activate' event
proc page1_activate()
? 'page1.ACTIVATE'
for i = 1 to Lianja.count
oPage = Lianja.item(i)
for j = 1 to oPage.count
oSection = oPage.item(j)
? "Section " + oSection.id
// Is this section a tabview?
if type("oSection.tabview") = "O"
oTabView = oSection.tabview
// pagecount is the number of tabs/sections in the tabview
for k = 1 to oTabView.pagecount
// tabview.activepage is the numeric active tab starting from 0
oTabView.activepage = k-1
// section.activepage is the character id of the active tab
cSectionInTV = oSection.activepage
? "Section in tabview " + cSectionInTV
// get an object reference to the section based on the char id
oSectionInTV = Lianja.get(cSectionInTV)
for l = 1 to oSectionInTV.count
? oSectionInTV.item(l).id
endfor
endfor
oTabView.activepage = 0
endif
endfor
endfor
endproc
Q:
When the user click on the link on the first column "tipo listino", I need to switch to the second section.
Code:
////////////////////////////////////////////////////////////////
// Event delegate for 'linkclick' event
proc articoli_listinilista_linkclick()
// insert your code here
? "listinilista_linkclick"
Lianja.showdocument("section:listini?action=select&text=listinidettaglio")
endproc
A:
Specify the tab section Caption, not its name/id.
as in the scan of all the sections in a tabview - that you can also access a tab numerically if you use the tabview object reference of the tabview section.
Code:
oTabview = Lianja.get("pageX.listini").tabview
oTabview.activepage = 1 // left to right, starts from 0
Of course, if you then change the order of the sections within the tabview...
All topics in [Answers] alphabetically:http://www.lianja.com/community/show...ll=1#post12352
Bookmarks