UserManager getHashMapByName() Scope

Hi, I used plugins.UserManager.getHashMapByName() to set a HashMap. Can this be seen/accessed/updated by all Smart Clients and SHC?

	//1-Get map of organization/company
	var groupMap = plugins.UserManager.getHashMapByName(orgKey);
	
	//2-Get group
	var userMap = groupMap.get(groupKey);
	if(userMap == null)
	{
		userMap = new java.util.HashMap();
		groupMap.put(groupKey, userMap);
	}

When I access userMap from a different client it returns back to null, even though another client has set it already.

How can I create a HashMap that is system-wide just like a context-scope or application-scope variable of a JEE app?

There is local (client) HashMaps and a (one) Server HashMap. In the client you have a static HashMap and any number of named HashMaps.

To access the Server HashMap you need to get a a server object as in

plugins.UserManager.Server()

The Server object you will get has a HashMap that you can access from any client. Please not that any value that you want to put in the server’s HashMap has to be serializable, because it needs to be sent over the wire.

P.S.: The Servoy forum is not a good place to discuss issues of a specific non-Servoy plugin. Please email us at support@servoy-plugins.de and we help you out.

Ok, Patrick. Thanks.