I am using application.setUserProperty and application.getUserProperty to store and retrieve some information in the local storage f the NG client. This all works perfectly but I now need to delete one of the properties I previously set so that it is no longer in the local storage. Any idea how to do this as there does not seem to be any sort of application.deleteUserProperty() or application.removeUserProperty() method???
Thanks
Steve
Hi Steve,
just use:
application.setUserProperty('myProp', null)
You will see that:
application.getUserPropertyNames()
Will no longer contain the myProp value.
Hope this helps.
Thanks Marc - I will try that and see how I get on.
If it works I guess it means that you cannot have a user property set with a specific NULL value.
Thanks
Steve
steve1376656734:
If it works I guess it means that you cannot have a user property set with a specific NULL value.
Correct, but you can consider a property to have a null value as soon as it doesn’t exist.
I never got into a situation where this was blocking.