Qlik Community

Qlik Sense Integration, Extensions, & APIs

Discussion board where members can learn more about Integration, Extensions and API’s for Qlik Sense.

Announcements
QlikWorld, June 24-25, 2020. Free virtual event for DI and DA gurus. Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Contributor II
Contributor II

Calculation of the defaultValues

Hello experts!

Please help me solve the problem:
I am working on developing an extension and I need to calculate the value from the field that is specified by default.
Example:

 

app_name: {
    type: "string",
    label: "Name APP",
    ref: "myproperties.app_name",
    defaultValue: "=DocumentTitle()",
    expression: "always",
},

 

As a result, I want to when accessing the layout.myproperties.app_name get "TestFileName.qvf" and not "=DocumentTitle()"

Is this realistic? 

Labels (2)
1 Solution

Accepted Solutions
Highlighted

Re: Calculation of the defaultValues

If you don't want the user to be able to change the value don't include it in the property panel. Instead add a qStringExpression to initialProperties.

View solution in original post

2 Replies
Highlighted

Re: Calculation of the defaultValues

If you don't want the user to be able to change the value don't include it in the property panel. Instead add a qStringExpression to initialProperties.

View solution in original post

Highlighted
Contributor II
Contributor II

Re: Calculation of the defaultValues

Eric, thanks!