Hello everyone, i am trying to save text data from nfc in a label.
How can i do this ?
I have created a button with onselect property that scans code, but i don't know how save this text data on a label.
Anyone can help me ?
Thank you
Solved! Go to Solution.
try the below, i haven't been able to test but this should work
on the button OnSelect: Set(var_My_Scanned_Tag, ReadNFC())
For the label text property, add var_My_Scanned_Tag. when you type the last . after tag it will show you you available options to display. you probably want var_My_Scanned_Tag.Text
Hi @gennarodp,
Based on the issue that you mentioned, do you want to display NFC value in a Label?
Could you please share a bit more about your scenario?
Actually, the ReadNFC() returns a record containing the following field:
ReadNFC is only supported when running the app in a native mobile player such as the iOS and Andriod players. Even with a supported player, a device may not support NFC, in which case a message will be shown to the user and the function will return a blank record.
Please note that Text and URI datatypes are supported.
Add a Label and set the Text property as below:
With( ReadNFC(),
If( Not IsBlank( Text ),
"Read Text: " & Text,
Not IsBlank( URI ),
"Read URI: " & URI ,
"Didn't read Text or URI"
)
)
try the below, i haven't been able to test but this should work
on the button OnSelect: Set(var_My_Scanned_Tag, ReadNFC())
For the label text property, add var_My_Scanned_Tag. when you type the last . after tag it will show you you available options to display. you probably want var_My_Scanned_Tag.Text
it doesnt' work 😞
Hi @gennarodp,
Based on the issue that you mentioned, do you want to display NFC value in a Label?
Could you please share a bit more about your scenario?
Actually, the ReadNFC() returns a record containing the following field:
ReadNFC is only supported when running the app in a native mobile player such as the iOS and Andriod players. Even with a supported player, a device may not support NFC, in which case a message will be shown to the user and the function will return a blank record.
Please note that Text and URI datatypes are supported.
Add a Label and set the Text property as below:
With( ReadNFC(),
If( Not IsBlank( Text ),
"Read Text: " & Text,
Not IsBlank( URI ),
"Read URI: " & URI ,
"Didn't read Text or URI"
)
)
User | Count |
---|---|
255 | |
112 | |
92 | |
48 | |
38 |