I am trying to get the Element UUIDs with the method security.getElementUUIDs. But I get every time an empty Dataset.
I am using Servoy 5.2.2 - build 1002. Has anyone else the same?
Regards,
Stef
I am trying to get the Element UUIDs with the method security.getElementUUIDs. But I get every time an empty Dataset.
I am using Servoy 5.2.2 - build 1002. Has anyone else the same?
Regards,
Stef
stefbrt:
I am trying to get the Element UUIDs with the method security.getElementUUIDs. But I get every time an empty Dataset.I am using Servoy 5.2.2 - build 1002. Has anyone else the same?
Regards,
Stef
Are you sure the form name is correct ? Does the form have elements ?
Yes I’m sure the Form name is correct and the Form has elements. But if there were no element the form uuid should be returned.
The form name is PlcClass and I try security.getElementUUIDs(‘PlcClass’) and get an empty Dataset. Then I tried with 6 other Forms and copied the form name out of the developer and it does not work.
Regards, Stef
stefbrt:
Yes I’m sure the Form name is correct and the Form has elements. But if there were no element the form uuid should be returned.The form name is PlcClass and I try security.getElementUUIDs(‘PlcClass’) and get an empty Dataset. Then I tried with 6 other Forms and copied the form name out of the developer and it does not work.
Regards, Stef
Hmm, indeed if empty dataset is returned means the form is not found. If you call: solutionModel.getForm(‘PlcClass’) does it return a form ? Form is in active solution or one of its modules, right ?
I found the problem. I tried to use the function in the authenticator modul and the forms are not loaded in this modul. Now it works.
Thanks for the Help.
Regards, Stef
Now I got the Problem that I get an exception when using JSSecurity.VIEWABLE. The Exception is that the object JSSecurity isn’t known. What i have to do to use this?
Regards, Stef
that is very weird, JSSecurity should be provided at the moment the client/solution is loaded
Do you have this problem already in the developer? or only in a real (smart/web) client?
stefbrt:
Now I got the Problem that I get an exception when using JSSecurity.VIEWABLE. The Exception is that the object JSSecurity isn’t known. What i have to do to use this?Regards, Stef
it’s security.VIEWABLE
I got this problem in developer-client. The code with security.VIEWABLE works.
But if I take the sample code it copies JSSecurity.VIEWABLE in the code so I thought this should normaly work.
Thanks for help
stefbrt:
I got this problem in developer-client. The code with security.VIEWABLE works.But if I take the sample code it copies JSSecurity.VIEWABLE in the code so I thought this should normaly work.
Thanks for help
I added a case for this, for now only security works and not JSSecurity.
stefbrt:
I got this problem in developer-client. The code with security.VIEWABLE works.But if I take the sample code it copies JSSecurity.VIEWABLE in the code so I thought this should normaly work.
Thanks for help
This will be fixed in Servoy 5.2.5 .
OK Cool. Thank for Support