Page 1 of 1

VLF-ONE Check Availability to Command in custom Instance List

Posted: Tue Mar 26, 2019 2:48 am
by jyoung
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

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

Posted: Tue Mar 26, 2019 8:42 am
by MarkDale
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 6693 times


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

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

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

Posted: Tue Mar 26, 2019 8:45 am
by jyoung
Ahh, I forgot about that user/object type name.

Will give that a go.

Thanks,
Joe