JSON in dynamic choice field
Hi,
I was wondering if there's a way to get the value of the 'caption' property of the JSON object used to populate the dynamic choice field?
For instance, you can use the number() function to get the value of the id property.
Thanks a lot.
11 Antworten
-
You can use the text(MyChoiceField) function to retrieve the caption of the value.
-
Hi,
Do you know if there's a way we can feed the dynamic choice field with a JSON object programmatically (via Ninox scripting)?
For instance, you could just click a button.
Is this something we can do right now?
-
This is possible using a text field that contains a JSON as text, which is then parsed in the dynamic selection field.
Example:
'TEXTFIELD' = [{"id" : 1, "caption" . "FrankB"},{"id" : 2, "caption" . "UweG"}]DynamicChpoice:
parseJSON(TEXTFIELD)
However, I currently don't know of a way to address the JSON directly to the dynamic Choice field via script. -
Hi, Sotirios. It is a workaround to get the value of "caption". You can put the JSON as a global function in options and now you can see all values you wont. See the littel DB. Know this is a bit of a complicated JSON construct - you can simplify it as neededMirko
Content aside
- vor 1 MonatZuletzt aktiv
- 11Antworten
- 118Ansichten
-
5
Folge bereits