UserManager supported?

Forum to discuss the new web client version of Servoy.

Re: UserManager supported?

Postby rieder » Thu Jul 06, 2023 3:36 pm

Hi Patrick

Thank you for the suggested replacements.

In the properties file we store application specific configurations. What would you suggest how we could read this information?

Thank you and best regards
Birgit
Birgit Rieder
7r AG, Switzerland
SAN Developer
http://www.seven-r.ch
User avatar
rieder
 
Posts: 177
Joined: Thu Jan 26, 2012 5:18 pm

Re: UserManager supported?

Postby patrick » Thu Jul 06, 2023 5:36 pm

I need very few server specific settings, but for the few I do I use this kind of "schema" in servoy.properties:

- a property prefixed with "user", e.g. "user.serverType=TEST"
- I retrieve that value in any client using application.getUserProperty('serverType')

Those user properties also show in servoy-admin as "user.properties" at the bottom of the start page.
Patrick Ruhsert
Servoy DACH
patrick
 
Posts: 3703
Joined: Wed Jun 11, 2003 10:33 am
Location: Munich, Germany

Re: UserManager supported?

Postby huber » Mon Jul 10, 2023 5:49 pm

The user properties, shown in servoy-admin as "user.properties" at the bottom of the start page, can be read with

Code: Select all
application.getUserProperty(name)


Above the field user.properties, there is a field system.properties, but there is no method like

Code: Select all
application.getSystemProperty(name)


How can I read the system.properties?

Thanks and regards,
Robert Huber
7r AG, Switzerland
SAN Developer
http://www.seven-r.ch
User avatar
huber
 
Posts: 518
Joined: Mon May 14, 2012 11:31 pm

Previous

Return to Servoy NGClient

Who is online

Users browsing this forum: Google [Bot] and 20 guests