When I use the menu component is there any way that I can specify which menu item I want to be selected using code ?
Thanks in advance.
John
When I use the menu component is there any way that I can specify which menu item I want to be selected using code ?
Thanks in advance.
John
Hello John,
What you need is to know how to react for specific item clicked by the user? If so, take a look at the Menu* app samples. The Menu stores their items as an Array, and they offer an "ItemClick" even wich inform us about the item index choosed by the user.
Hi David I saw your program and its fantastic.
How do I change veiws based on item selected from a menu
Hello Tonym,
Thanks for your kindly words! A posible problem to achieve what you wanted is that the menu items (or Dropdown items, or Select items, etc.) maybe have not the same name than the app's views, so we can't simply use the menu items text as the app's views' names. In other words, if the menu's items' text match the app's views' names, then the below code in the menu's "ItemClick" event can do the job:
If that's is not the case, we must to find a way to associate our menu's items with the app's views and then use the menu's items' index instead of the items' text. To achieve this probably we can take several paths. For example, a possible way is to use an Array variable to associated the menu's items' index with the app's views:
The above code can be placed in the App's Ready event, for example, then the Array variable become available when the application starts. With such variable we can place the below code in the menu's "ItemClick" event:
I implement the above two possible ways in a couple of samples that can be downloaded: MenuViews.zip. Hope they can help you and maybe others with a similar question.
Wow David
Thanks so much for the prompt response i am really impress.
I will let u know of the outcome.
Hello Tonym,
Wow David
Thanks so much for the prompt response i am really impress.I will let u know of the outcome.
You're welcome! Just let me know if you have any further question.
Hi David,
I tried it and it worked fanastic
Thanks a lot
Hello Tonym,
Hi David,I tried it and it worked fanastic
Thanks a lot
Glad to know! Please, consider to buy one or more App Builder licenses if the program is useful for you!
Another question i have:
Is there a way to embed a webpage in app builder
Hello Tonym,
Another question i have:
Is there a way to embed a webpage in app builder
Yes; You can use the IFrame control. Take a look at the IFrames application sample.
P.S. Please, open a new thread when you have new questions, then we can maintain the forum well organized.
Everybody can read the DecSoft support forum for learning purposes, however only DecSoft customers can post new threads. Purchase one or more licenses of some DecSoft products in order to give this and other benefits.
This website uses some useful cookies to store your preferences.