UI Builder: JSON Page Properties binding not working
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
yesterday - last edited yesterday
Hi,
I've been diving into UI Builder a bit, trying to create a new Component.
For some reason I cannot get the values of JSON Page Properties to show up when referencing them directly via property binding or script.
As far as I know, I'm doing everything as described in the guides and also how it would seem most intuitive.
Am I missing something?
I setup a little experiment with the following elements:
- 3 Page Properties
- A simple String property
- A JSON property as an array
- two array elements
- A JSON property as an object
- two object properties
- 2 Client State Parameters
- A JSON property that binds to the array-type JSON Page Property above
- A JSON property that binds to the object-type JSON Page Property above
- 7 Stylized Text Components, to which I bind the various combinations of Page Properties and Client State Parameters
The setup results in the following:
The simple String Page Property always shows up when bound to the Text component.
The JSON Page Properties never show up when bound directly or retrieved via script.
The Client State Parameteres always show up when bound directly.
Having to bind Page Properties to Client State Parameters is never mentioned as far as I know. All guides seem to say that you can directly use Page Properties and freely bind to them. The String Page Property also just works.
Why don't the JSON properties work?
When selecting an empty Text Component, it shows the correctly resolved value in the value preview:
Why does it not show up in the Component itself?
I've tried clearing UI Builder Cache, Browser Cache and previewing and reloading everything numerous times.
Nothing seems to make the properties properly resolve or show up.
I'd appreciate any input 🙂
Thanks in advance!
