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 »

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: 6198
Joined: Tue Mar 20, 2018 5:34 am

Re: JSON key value pair

Post by Lech Kulikowski »

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