How to makes fields non-editable for certain roles+local storage in OutSystems Now

How to makes fields non-editable for certain roles+local storage in OutSystems Now

  
Hi everyone,

Let me share two questions that were asked to us via email, so that others can benefit from them:


1. Question: Inline editing tested - how can you make the field non-editable for read-only user roles?

You can use the Input's 'Enabled' property to set if it can be changed by a given user, for example:




2. Question: How can you access the ‘local storage’ using OutSystems Now:

If you need to store information on the device, you can use the "ReadFile" and "SaveFile" actions in the Native module (see image below). If you are looking to access HTML's local storage, at this point we don't have an API for it... you'll need to use Javascript.