Home > Forum > Database > How to present more than one "Item list" in Webcon report or any other report in Excel/RS

How to present more than one "Item list" in Webcon report or any other report in Excel/RS
0

I know that in webcon report there is only possibility to show only one "Item list" attribute but is there any possibility to create some technical data table or atribute to show more than one list?
Or maybe you can give some example of SQL function which select more than one "Item list".

Thank you in advance for your help.

MVP

Hi Stanisław,
it really depends on your needs, you can do join on elements, filter the WFElementDetails table by DET_WFCONID column etc. there are many possibilities.
Play around with SQL, database documentation will be helpful - https://developer.webcon.com/2021/resources/db/

For example, if you want to select column from 2 separate items lists:
SELECT DET_Att1 FROM WFElementDetails WHERE DET_WFCONID in ({WFCON:<id1>}, {WFCON:<id2>})

You can use such queries in data table atributes.

Hi Stan,
In version 2021 you can generate a report with all rows of item list I believe.
In SQL/RS I use (for predefined number of rows and rows names) separate SELECTs, example for 2-column list:

(SELECT DET_Value3 FROM WFElementDetails
WHERE DET_WFDID=WFD_ID /*binds with element*/
and DET_WFCONID=xxx
and DET_Att1='ROW_NAME_1') AS ROW_NAME_1
,(SELECT DET_Value3 FROM WFElementDetails
WHERE DET_WFDID=WFD_ID
and DET_WFCONID=xxx
and DET_Att1='ROW_NAME_2)') AS 'ROW_NAME_2'
,(SELECT DET_Value3 FROM WFElementDetails
WHERE DET_WFDID=WFD_ID
and DET_WFCONID=760
and DET_Att1='ROW_NAME_3') AS 'ROW_NAME_1'