Find your people. Pick a challenge. Ship something real. The CreatorCon Hackathon is coming to the Community Pavilion for one epic night. Every skill level, every role welcome. Join us on May 5th and learn more here.

UI Builder: JSON Page Properties binding not working

aasch
Mega Sage

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

aasch_0-1777467762804.png

 

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.

aasch_1-1777467834398.png

 

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:

aasch_2-1777468043416.png


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!

0 REPLIES 0