B4J Question [abmaterial]how to get the component built in sidebar?

liulifeng77

Active Member
Licensed User
Longtime User
I built a table in the sidebar(right side), but how to get the table?

dim table as abmtable=page.component("tbl") doesn't work.

if Page_NavigationbarClicked() is NOT raised for such a sidebar!
which sub will raised?

thanks !
 
Last edited:

mindful

Active Member
Licensed User
you need to cast the sidebar first :
dim rightSideBar as ABMSidebar = page.GetSidebar("rightsidebar")

Also I think you should initialize the extra sidebar as a panel (InitializeAsPanel) and access the component like dim table as abmtable = rightSideBar.Content.Component("tbl").

Initialize as panel makes the extra sidebar behave more like a modal sheet.
 
Upvote 0

liulifeng77

Active Member
Licensed User
Longtime User
thanks.
if i add some sidebaritems.when click it, ''rightsidebar_clicked'' will be raised?
add:it's doesn't work, abmsiderbar has not any event?
 

Attachments

  • 1.JPG
    1.JPG
    85.3 KB · Views: 243
Last edited:
Upvote 0
Top