Page 1 of 1

VLF-One Get Custom Properties (RESOLVED)

Posted: Fri Aug 23, 2019 9:52 am
by mwilliams
I was wondering how I would get a custom property that I have set up in my framework at login time. Actually before I actually login. I have a custom login form and I need to get the property value after I authenticate my user id and password but before I actually login with my custom login handler.

I tried

Code: Select all

#Usystem.uFrameworkManager.avGetUserProperty Withname(FRAMEWORK_ENV) Requester(#Com_Owner) Alphavalue(#fEnv)
but I get a null reference.
2019-08-22 18_51_01-Mozilla Firefox.png
2019-08-22 18_51_01-Mozilla Firefox.png (14.6 KiB) Viewed 7685 times

Re: VLF-One Get Custom Properties

Posted: Fri Aug 23, 2019 11:12 am
by MarkD
You can't use custom properties until your chosen framework has been created on the client (i.e. downloaded from the server and instantiated).
That only happens after you choose a framework to use, and then successfully logon to it.

If you need to store and retrieve some information before logging on, an option would probably be to use the browser's local storage.
See https://docs.lansa.com/14/en/lansa016/p ... cation.htm property LocalStorage and https://docs.lansa.com/14/en/lansa016/p ... torage.htm

Remember to condition code with https://docs.lansa.com/14/en/lansa016/p ... ilable.htm