Is this two section's property exposed?
can I do something like:
oSection = Lianja.get("mySection")
oMenu = oSection.menu
oMenu.visible(true)
oMenu.CustomMenu="Edit,Set Order,..."
thanks
Fabio
Is this two section's property exposed?
can I do something like:
oSection = Lianja.get("mySection")
oMenu = oSection.menu
oMenu.visible(true)
oMenu.CustomMenu="Edit,Set Order,..."
thanks
Fabio
Hi Fabio,
To set the search panel to visible or not, use:
To edit menu items, use:Code:Lianja.showDocument("section:mySection?action=togglesearchpanel")
CoryCode:Lianja.Get("page.section").menu = "Menu1,Menu2,Menu3"
Last edited by CGibson; 2015-02-19 at 13:09.
Wow, thanks Cory.
And for "specify" the "Custom action" and the "Custom search panel"? Is possible?
Fabio
Hi Fabio,
I was looking through my app to see it I use them.
I'm not sure how to set the menu to visible or how to set the other custom section although I'm sure it is possible.
Cory
Last edited by CGibson; 2015-02-19 at 13:22.
Ok, thanks Cory.
Fabio
Hi Fabio,
I'm not sure why the menu items are overlapping, unless the menu description is too long.
That code works fine for me although I may have had to revise my code to determine when and how I toggled the search panel.
It acts like a switch each time it's called.
If the search panel is visible, it will be hidden.
If the search panel is hidden, it will be visible.
When I first started using the search panel, I was advised to keep the panel visible (to make things easier); however that solution didn't work for me because of the way I was setting things up.
That was originally introduced by Barry in
http://www.lianja.com/community/show...glesearchpanel
Cory
In v1.3.1 the following properties are exposed on a section.
In versons prior to 1.3.1 menuVisible was not exposed.Code:m_section1 = Lianja.get("section1") m_section1.menuVisible = 1 m_section1.footerVisible = 1 m_section1.searchPanelVisible = 1
Principal developer of Lianja, Recital and other products
Follow me on:
Twitter: http://twitter.com/lianjaInc
Facebook: http://www.facebook.com/LianjaInc
LinkedIn: http://www.linkedin.com/in/barrymavin
Thanks, I wait the new point versione.
Bookmarks