Good Day,
I would like to find out if it is possible to use a multi-select drop down ReportVariables in a Relational List. (We use On-prem 2022-09 version)
If possible, will the XML variable be ok to be used or do I need to convert the ReportVariables field to another piped defined variable or with quotes surrounding each element selected?? I tried both options as per below without success.
So my SQL in plain terms looks like this:
SELECT *
FROM [Table_XXX]
WHERE workcenter in ('F00','F01')
My ReportVariable (ReportVariables.lv_WC.Text) looks like this:
<?xml version="1.0" encoding="utf-16"?>
<MultiSelect xmlns:xsd="">www.w3.org/.../XMLSchema" xmlns:xsi="">www.w3.org/.../XMLSchema-instance">
<Hierarchy>[WO_WORKCENTER]</Hierarchy>
<AggregationFunction>Sum</AggregationFunction>
<StructureSelection>
<Member>
<MemberUName>[WO_WORKCENTER].[F00].[1]</MemberUName>
</Member>
<Member>
<MemberUName>[WO_WORKCENTER].[F01].[1]</MemberUName>
</Member>
</StructureSelection>
</MultiSelect>
So I tried the following but I receive no data.
="SELECT [workCenter]
FROM [XXX].[dbo].[Table_XXX]
WHERE workcenter in ('" & ReportVariables.lv_WC.Text & "') "
Can someone please help??
Thanks so much!
Ansa