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

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
Nad_s
Contributor II
Contributor II

twritejsonfield set a default value not a string

Hi :),

I would like to know if it's possible to set a default value in a twritejsonfield which is not a string?

My

twritejsonfield :

0695b00000WwLABAA3.png

My json output :

"campaignId": "1073893"

What i want :

"campaignId": 1073893

Thank you for your help

Labels (5)
1 Solution

Accepted Solutions
Anonymous
Not applicable

Hi

Add an attribute @type to the field and set a fixed value "number", see below.

 

0695b00000WwLP1AAN.png 

Regards

Shong

View solution in original post

2 Replies
Anonymous
Not applicable

Hi

Add an attribute @type to the field and set a fixed value "number", see below.

 

0695b00000WwLP1AAN.png 

Regards

Shong

Nad_s
Contributor II
Contributor II
Author

Thank you 😄