Discussion Forums  >  Plugins, Customizing, Source Code

Replies: 3    Views: 35

Rishav
Code is Art
Profile
Posts: 153
Reg: Jan 26, 2012
Dubai
8,780
09/25/12 12:03 AM (13 years ago)

Open Screen without declaring in config data?

What i mean is that with the help of simple menu i want to open another screen by only mentioning it in childitems of menu and not creating a seperate item again. I want to mention details about the screen( like data url ) in the menu childitems only. i want to do it for android.
 
David @ buzztouch
buzztouch Evangelist
Profile
Posts: 6866
Reg: Jan 01, 2010
Monterey, CA
78,840
like
09/25/12 02:05 AM (13 years ago)
Instead of using the "loadScreenWithItemId" or "loadScreenWithNickname" you can use "loadScreenObject" instead. This is designed to allow you create dynamic menus that load screens that dont' exist in your app's master config.txt file. Example, see the second item that loads screen that's provided in the json itself. {"childItems":[ {"itemId":"3B18071", "itemType":"BT_menuItem", "loadScreenWithItemId":"itemId of screen to load", "titleText":"Menu Item 1"}, {"itemId":"912AD4G", "itemType":"BT_menuItem", "loadScreenObject":{"itemId":"1", "itemType":"type of screen to load", other properties....}, "titleText":"Menu Item 2"}, {"itemId":"607318A", "itemType":"BT_menuItem", "loadScreenWithItemId":"itemId of screen to load", "titleText":"Menu Item 3"}, {"itemId":"FD7E8F6", "itemType":"BT_menuItem", "loadScreenWithItemId":"itemId of screen to load", "titleText":"Menu item 4"} ]}
 
Sandeep
Android Fan
Profile
Posts: 1260
Reg: Feb 01, 2012
Miraj, India
25,250
like
09/25/12 02:18 AM (13 years ago)
Very resourceful information. Thanks for sharing with us David.
 
Rishav
Code is Art
Profile
Posts: 153
Reg: Jan 26, 2012
Dubai
8,780
like
09/25/12 11:18 AM (13 years ago)
Thanks a lot David. This would solve half of my problems.
 

Login + Screen Name Required to Post

pointerLogin to participate so you can start earning points. Once you're logged in (and have a screen name entered in your profile), you can subscribe to topics, follow users, and start learning how to make apps like the pros.