(RPG) How to change the description of the menu dynamically?

Please do not use to report errors- use your regional help desk.
Please mark posts as being for RPG or RDMLX (LANSA) developer.
To subscribe by email, display this forum, scroll to the end and select ‘Subscribe Forum’.
Post Reply
Fabrice Geay
Posts: 13
Joined: Fri Apr 05, 2013 8:33 pm
Location: France - Valence

(RPG) How to change the description of the menu dynamically?

Post by Fabrice Geay »

I have make a menu like this :
screen1.PNG
screen1.PNG (23.12 KiB) Viewed 3509 times
-> Menu 1
--->Form View
description : xxxxxxxxxxx
--->Form View
description : xxxxxxxxxxx

I would like change the description for help users.

Example :
If the user is authorized to access file in read / write, I want this in the description:
You have all right on this program.

But if the user is not authorized or has a limited access, I want this :
You can not create and delete.

Actually there is just 3 properties for the system.menus.
http://www.longrangemobile.com/docs/lan ... mmenus.htm
But not a property to change the description.

Someone has an idea for do that?
MarkDuignan
Posts: 346
Joined: Wed Apr 18, 2012 10:33 am

Re: (RPG) How to change the description of the menu dynamica

Post by MarkDuignan »

There is currently no way to change that dynamically. You could define a duplicated read and write menu item pairs with appropriate descriptions and alter their visibility as required? A bit tedious to set up - but it should do the job. Also note that iPhone users and all Android users (phone or tablet) never see the extended descriptions - they are only displayed on iPads.
Fabrice Geay
Posts: 13
Joined: Fri Apr 05, 2013 8:33 pm
Location: France - Valence

Re: (RPG) How to change the description of the menu dynamica

Post by Fabrice Geay »

Thank you Mark, I was hoping there was a solution not too complicated to implement.
So I will not use description.
Post Reply