Instance list - Tab disablement

This Q&A forum allows users to post and respond to "How Do I Do ....." questions. Please do not use to report (suspected) errors - you must use your regional help desk for this. The information contained in this forum has not been validated by LANSA and, as such, LANSA cannot guarantee the accuracy of the information.
Post Reply
pravik
Posts: 60
Joined: Tue Dec 26, 2017 6:44 pm

Instance list - Tab disablement

Post by pravik »

Hi All,

In V14, Using filter we have created an instance list. When we select any data, it opens respective tabs if default option is set to Yes.

Filter component is developed in RDMLX but the command handlers are RAMP & Axes. In this scenario, while selecting any data in the instance list,we need to execute certain validation and check if user "#AVFRAMEWORKMANAGER.avChangeCommandState".

While building instance list though we disable tabs, when we click on data all tabs are enabled. Our disable command is overridden.

Can you please share your suggestion on regards to this.

Thanks for your help.

Thanks & Regards,
Priya
MarkD
Posts: 692
Joined: Wed Dec 02, 2015 9:56 am

Re: Instance list - Tab disablement

Post by MarkD »

Yes, selecting an instance of a business object will enable all instance level commands and it will override anything you have previously set. You can only really change the state of an instance level command after a business object instance has been selected as the current instance. My guess is that you are trying to do that in a filter. To make this work you would need to do it in the default command, which executes after the instance has been selected.

There are two other possible approaches:

 Enable VLF authority and enrol your users. This allows you (or more likely an administrator user) to indicate what commands (tabs) a user can use. This seems to be exactly what you want and this is what this feature is designed to do, but you do need to set up and maintain user authorities.

 Use subtypes. See the shipped example. Depending on the user’s characteristics set the subtype of the instance list entry to A, B or C (say). Then you can indicate what commands (tabs) are enabled for users that have subtypes of A, B or C.

In any context it would be hard to imagine an effective way to disable a default command. All users should always be allowed to use the default command.

There’s also change coming to how disabled subtype tabs are displayed. Currently the are visible but disabled. In the next version they will be invisible.
pravik
Posts: 60
Joined: Tue Dec 26, 2017 6:44 pm

Re: Instance list - Tab disablement

Post by pravik »

Hi Mark,

Thanks for your kind help
Post Reply