Page 1 of 1
Question
Posted: Tue Oct 11, 2022 5:04 pm
by guilhermetti
Hello,
I have a question in Stimulsoft Reports.JS Designer, I have a data file in JSON format.
In the data there is an array, I want to put all the information in this array inside just one column.
It's possible?
Re: Question
Posted: Tue Oct 11, 2022 7:55 pm
by Lech Kulikowski
Hello,
Please send us your JSON file for analysis.
Thank you.
Re: Question
Posted: Tue Oct 11, 2022 8:12 pm
by guilhermetti
{
"header": {
"title": "Relatório de Área",
"subtitle": "Filtrado pelo Nome (MARIA OLIVEIRA), pelo Documento (RG 12345678) e ordenado por Nome",
"periodo": "Periodo: 11/04/2021 08:00 - 11/04/2021 23:59",
"organizacao": "NEXCODE SYSTEMS",
"contador": "Total de registros: 1000",
"logoAplicacao": "",
"logoOrganizacao": ""
},
"data": {
"reparticaoArea": {
"nodes": [
{
"id": 1191,
"name": "AREA ALPHA",
"type": 1,
"sectorId": 108,
"sector": {
"id": 108,
"name": "ALPHA DELTA"
},
"blockages": [
{
"areaId": 1191,
"name": "BLOQUEIO ALPHA"
},
{
"areaId": 1191,
"name": "BLOQUEIO BRAVO"
},
{
"areaId": 1191,
"name": "BLOQUEIO CHARLIE"
},
{
"areaId": 1191,
"name": "BLOQUEIO DELTA"
}
]
}
]
}
}
}
Re: Question
Posted: Wed Oct 12, 2022 8:32 am
by Lech Kulikowski
Hello,
You can add your JSON as data source and then create report as you need.
Thank you.
Re: Question
Posted: Thu Oct 13, 2022 12:28 pm
by guilhermetti
If I knew how to create, I wouldn't be asking for support, right? haha.
My json is already added to the Data Source, I just need to know expression or some column type that supports JSON arrays and list.
Thank you.
Re: Question
Posted: Fri Oct 14, 2022 8:24 am
by Lech Kulikowski
Hello,
To show an array of records, you should use the DataBand component. To display nested objects, you can use the master-detail construction:
https://www.stimulsoft.com/en/documenta ... report.htm
Thank you.
Re: Question
Posted: Mon Oct 17, 2022 5:09 pm
by guilhermetti
Hi it's me again hahahaha
I swear it's the last time! xD
I have a question about conditions, I read the documentation but didn't find the solution.
I'm trying to put the condition "is not null" in a column and assign expression but it doesn't work.

- Example1.jpg (316.6 KiB) Viewed 1555 times

- Example2.jpg (193.46 KiB) Viewed 1555 times
Thank you!
Re: Question
Posted: Mon Oct 17, 2022 10:21 pm
by Lech Kulikowski
Hello,
For string columns please try to check by empty values not by null:
datasource.column == ""
Thank you.