Hi,
How can I retrieve text from a keystring and add it as an attribute in a feature table? Thank you.
You can use the "value(var key)" method to retrieves data associated with the key in Secure Storage component, doc, then you can use that data or string in any operation you wish, including adding it as an attribute in a feature table for example.
I used on the Start/login page:
//Retrieve Value
retrieveData.text = qsTr("Value:") + SecureStorage.value(key.text);
toastMessageRec.visible = false
retrieveData.visible = false
On page 1 I used:
//create attributes json for the new feature
var featureAttributes = {"Name": "retrieveData.text"};
However, when I use this, the feature does not even create nor is the feature attribute populated with info.