Using the Menu Component and other related questions


John Clarke

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


DecSoft

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.



Guest

Hi David I saw your program and its fantastic.

How do I change veiws based on item selected from a menu


DecSoft

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.



Guest

Wow David
Thanks so much for the prompt response i am really impress.

I will let u know of the outcome.


DecSoft

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.



Guest

Hi David,

I tried it and it worked fanastic
Thanks a lot


DecSoft

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!



Guest

Another question i have:
Is there a way to embed a webpage in app builder


DecSoft

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.


Todo el mundo puede leer el foro de soporte de DecSoft para aprender del mismo, sin embargo, sólo los clientes de DecSoft pueden abrir nuevos hilos. Compre una o más licencias de productos de DecSoft y obtendrá este y otros beneficios.

Este sitio utiliza "cookies" útiles para almacenar sus preferencias.

Bien. Ocultar esta nota. Obtener más información.