avCheckAuth / avCheckInstanceAuth in VLF_ONE?

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
Jos0001
Posts: 2
Joined: Fri Feb 02, 2018 7:23 pm

avCheckAuth / avCheckInstanceAuth in VLF_ONE?

Post by Jos0001 »

We want to rebuild our VLF_WIN application to a VLF_ONE application: Easier deployment.
In IIP UF_SYSTM we are using: avCheckAuth / avCheckInstanceAuth:
Based on the value of a field of the chosen entry in the instance-list, determine which command handlers (BO's) should be shown.
(Example: instance-list-entry "Status = 1", not yet invoiced, so invoice-BO is / should be suppressed when the entry is selected.)
What is the equivalent in VLF_ONE for avCheckAuth / avCheckInstanceAuth to suppress a BO?
User avatar
Dino
Posts: 472
Joined: Fri Jul 19, 2019 7:49 am
Location: Robbinsville, NC
Contact:

Re: avCheckAuth / avCheckInstanceAuth in VLF_ONE?

Post by Dino »

VLF-ONE have several limitations when compared to control of the application versus VLF-WIN.

https://docs.lansa.com/15/en/lansa048/i ... 8_2100.htm

That Instant Level Security Validation is only available in VLF-WIN. There is no exact equivalent.

You could make your own version of that for example passing an extra parameter in the instance list values and controlling from the command handler the action like to not show anything.
PatrickF
Posts: 30
Joined: Thu Nov 26, 2015 1:31 pm

Re: avCheckAuth / avCheckInstanceAuth in VLF_ONE?

Post by PatrickF »

From your requirement "Based on the value of a field of the chosen entry in the instance-list, determine which command handlers (BO's) should be shown." , subtypes may be another alternative to implement. Subtype is a property of the instance list and based on the Subtype property value, the command handlers for the Business Object can be shown or hidden.
See https://docs.lansa.com/15/en/lansa048/i ... 8_3565.htm in the VLF documentation. Subtypes are available in both VLF-Win and VLF-One
Jos0001
Posts: 2
Joined: Fri Feb 02, 2018 7:23 pm

Re: avCheckAuth / avCheckInstanceAuth in VLF_ONE?

Post by Jos0001 »

Hi, thanks for the replies:
I think I'm going to explore "Subtypes" first... I hope I can squeeze it into that.
Jos
Post Reply