VLF-ONE Check Availability to Command in custom Instance List

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
jyoung
Posts: 642
Joined: Thu Jan 21, 2016 6:43 am
Location: Oklahoma City, OK USA

VLF-ONE Check Availability to Command in custom Instance List

Post by jyoung » Tue Mar 26, 2019 2:48 am

In VLF-ONE the framework manager has an avCheckAvailibity method to check if the user has access to a particular object.

I am looking for a way to check if the user has access to a specific Command in that object.

Is there anyway to use avCheckAvailablity with Commands?

The docs here https://docs.lansa.com/14/en/lansa048/c ... 8_2570.htm show doing this with VLF-WIN which is exactly what I need.

Joe

MarkDale
Posts: 102
Joined: Wed Dec 02, 2015 10:06 am

Re: VLF-ONE Check Availability to Command in custom Instance List

Post by MarkDale » Tue Mar 26, 2019 8:42 am

I think you should be able to check access to a command reference by using the User Object Name Type of the command reference
avCheckAvailability.PNG
avCheckAvailability.PNG (37.9 KiB) Viewed 6667 times


#AVFRAMEWORKMANAGER.avCheckAvailability Userobjectname(PEOPLE_DETAILS) Isavailable(#myreturnCode)

Note its NOT the user object name type of the command definition.

jyoung
Posts: 642
Joined: Thu Jan 21, 2016 6:43 am
Location: Oklahoma City, OK USA

Re: VLF-ONE Check Availability to Command in custom Instance List

Post by jyoung » Tue Mar 26, 2019 8:45 am

Ahh, I forgot about that user/object type name.

Will give that a go.

Thanks,
Joe

Post Reply