Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik Connect 2026 Agenda Now Available: Explore Sessions
cancel
Showing results for 
Search instead for 
Did you mean: 
rbecher
MVP
MVP

Backend Api getProperties / setProperties

Hi,

I'm looking for examples how to use this.backendApi.getProperties() / setProperties() methods. Anything on this?

- Ralf

Data & AI Engineer at Orionbelt.ai - a GenAI Semantic Layer Venture, Inventor of Astrato Engine
16 Replies
rbecher
MVP
MVP
Author

Hi Erik,

how do I set a property of an extension property panel (eg. settings/items/myprop) from inside the paint function? Any example?

Best,

Ralf

Data & AI Engineer at Orionbelt.ai - a GenAI Semantic Layer Venture, Inventor of Astrato Engine
ErikWetterberg

Hi,

In your properties panel definition you have a value called 'ref' that points to the position in the properties structure where your property is stored. Use this either in your setProperties call or in applyPatch. Note that the ref notion is with dots, but applypatch wants it with slashes.

Erik

rbecher
MVP
MVP
Author

Thanks! So, is the path the just "/myRef" ? I cannot find any example.

Data & AI Engineer at Orionbelt.ai - a GenAI Semantic Layer Venture, Inventor of Astrato Engine
ErikWetterberg

Hi,

That depends on what you have written in 'ref' in the property panel definition.

In the definition:

myProperty : {

     ref : "myProperty",

     label : "My Property",

......

Would give you a path of "/myProperty" if you use applyPatch.

Erik

rbecher
MVP
MVP
Author

Thanks, this works for the actual value, how about "/myProperty/defaultValue" ? Seems not to work..

Data & AI Engineer at Orionbelt.ai - a GenAI Semantic Layer Venture, Inventor of Astrato Engine
ErikWetterberg

No, it only works for the values actually in the property object, and the default value is in the property panel.

Erik

rbecher
MVP
MVP
Author

Ok, thanks.

Data & AI Engineer at Orionbelt.ai - a GenAI Semantic Layer Venture, Inventor of Astrato Engine