JSON key value pair

Stimulsoft Dashboards.JS discussion
Post Reply
ADev2000
Posts: 5
Joined: Tue Jul 16, 2019 8:36 pm

JSON key value pair

Post by ADev2000 » Thu Aug 08, 2019 8:06 pm

I have a JSON file something line this :
[
{ "mykey" : "eName" , "myVal" : "Jonh Doe"},
{ "mykey" : "Age" , "myVal" : "50"
}
]
I need to display this information in the report in their own text boxes. Is there a way to in the text box expression to add a filter?

Foe example in in "Name" text box, I want to say " textbox.text = myVal where mykey=eName"
Lech Kulikowski
Posts: 2036
Joined: Tue Mar 20, 2018 5:34 am

Re: JSON key value pair

Post by Lech Kulikowski » Tue Aug 13, 2019 6:46 am

Hello,

Directly in the Text component, it is not possible. You should place DataBand with necessary Filter(mykey=eName) and place Text component on it.

Thank you.
Post Reply