Question
Virtusa
IN
Last activity: 23 Aug 2023 22:15 EDT
How to pass property name dynamically to a function
Hello Guys,
I am trying to pass a property name dynamically to IsInPageList function so that I can check if particular page is having value populated for one of the property.
Example:
@IsInPageList("Global",Param.PropertyName,PageList)
So, Param.Property name will be set conditionally like "Country","Region" etc.,. But it is not working. Also tried to use pxGetProperty function instead of passing param name but getting error as IsInPageList function is expecting string.
Any thoughts?