how to list available properties of $user?

This forum can be browsed by the general public. Posting is limited to current SAPIEN license holders with active maintenance and does not offer a response time guarantee.
Forum rules
DO NOT POST LICENSE NUMBERS, ACTIVATION KEYS OR ANY OTHER LICENSING INFORMATION IN THIS FORUM.
Only the original author and our tech personnel can reply to a topic that is created in this forum. If you find a topic that relates to an issue you are having, please create a new topic and reference the other in your post.

Any code longer than three lines should be added as code using the 'Select Code' dropdown menu or attached as a file.
This topic is 8 years and 4 months old and has exceeded the time allowed for comments. Please begin a new topic or use the search feature to find a similar but newer topic.
User avatar
rtiel1
Posts: 15
Last visit: Tue Nov 19, 2019 12:05 am

how to list available properties of $user?

Post by rtiel1 »

Product, version and build: 2015 7.1.71
32 or 64 bit version of product: 64
Operating system: 8.1
32 or 64 bit OS: 64

When running a code like ....$user = $admService.OpenObject($userPath, $NULL, $NULL, 0).... etc you can get a property like $user.Name. In Powergui it's possible to run the script once and then when you type $user. you can choose between all available properties. As far as I know of this is not possible in Primalscript, or am I mistaken?


With regards,

Remco
User avatar
Alexander Riedel
Posts: 8478
Last visit: Tue Mar 26, 2024 8:52 am
Answers: 19
Been upvoted: 37 times

Re: how to list available properties of $user?

Post by Alexander Riedel »

No, PrimalScript does not work that way. We do not run a script to get a dynamic objects properties.
Script are run in their own process and for security reason we do not execute code just to get IntelliSense information.
We know other editors run code, sometimes without the user's knowledge, to provide more intellisense, but we consider that a security risk.

You can run your code in the integrated shell and examine objects there if you like though.
Alexander Riedel
SAPIEN Technologies, Inc.
This topic is 8 years and 4 months old and has exceeded the time allowed for comments. Please begin a new topic or use the search feature to find a similar but newer topic.