load( local!categories:{ "Strategy and Governance", "Design and Data Understanding", "Model and Training", "Secure Deploy and Evolve" }, local!dataSubset:{ { mdlName:"Regression Model",strategy:40,design:30,model:10,deploy:20}, { mdlName:"Multi-Level Classifier",strategy:10,design:50,model:20,deploy:20}, { mdlName:"Assistant",strategy:30,design:20,model:40,deploy:10}, { mdlName:"Multi-Variable Regression",strategy:50,design:20,model:25,deploy:5} }, local!selectedDropdown, with( local!value: wherecontains( local!selectedDropdown, index(local!dataSubset,"mdlName",{}) ), local!allValues:index(local!dataSubset,local!value,{}), a!sectionLayout( label:"Report", contents:{ a!dropdownField( label:"Select a Value", choiceLabels: local!dataSubset.mdlName, choiceValues: local!dataSubset.mdlName, value:local!selectedDropdown, placeholderLabel: "---select a Value---", saveInto: local!selectedDropdown ), rule!EAF_Report_BarChart( category:local!categories, allocation:{local!allValues.strategy,local!allValues.design,local!allValues.model,local!allValues.deploy} ), a!textField(value:local!allValues) } ) ))
getting this error while executing above piece of code but first time its working fine.
interface Definition: Expression evaluation error at function 'wherecontains' [line 22]: Invalid types, can only act on data of the same type (Text, Any Type)
Please help.TIA
Discussion posts and replies are publicly visible