Ag12 - Hi Team I am trying to pass 2 runtime fi...

Hi Team I am trying to pass 2 runtime filter while using the visual/embed sdk for embedding the dashboard in our web app sharing the code snippet but it is taking the first one not the second one do I need to change something ----------------------------------
const runtimeFilters = []; if (columnName && filterValues?.length) { runtimeFilters.push({ columnName, operator: RuntimeFilterOp.EQ, values: filterValues }); } if (columnName2 && filterValues2?.length === 2) { runtimeFilters.push({ columnName: columnName2, operator: RuntimeFilterOp.EQ, values: filterValues2 }); }
--------------------------------
1 Reply
sandeep
sandeep3mo ago
Hi @Ag12 : if (columnName2 && filterValues2?.length === 2) { …means the second filter will only be added if there are exactly 2 values in filterValues2. Did we check if this condition is getting true.

Did you find this page helpful?