My method changes the background-color of a field depending on the status of an object (e.g. state 1 = green, state 2 = yellow...)
I run the method with the UserManger plugin an it works perfectly on the client where I give the command I get the message on other clients but it does not update
the color.
- Code: Select all
var vClients = plugins.UserManager.getClients()
for (var i = 0; i < vClients .length; i++)
{
var client = vClients [i];
client.executeMethod(globals.onDataChangeActionP2(actionName,statePerc));
client.sendMessage(i18n.getI18NMessage('color changed'))
}
Can someone point out what is wrong?