abrar22
9 years agoFrequent Contributor
Getting the Property Name
Hi All,
I am creating the getter function to get the value of property which I am passing in the parameter but I am getting error as it is not recognising the property name:
vGetComboBoxValue(Aliases.Cube.CubeTransitionBox.HedgeAndQuoteStyleView.HedgeType_Cbx,'wItemList');
function vGetComboBoxValue(NameMapAlias,strProperty)
{
return NameMapAlias.strProperty;
Log.Message(NameMapAlias.strProperty)
}
Can someone help ?
Thanks
Instead of
NameMapAlias.strProperty
use any of these:
NameMapAlias[strProperty]
// or
aqObject.GetPropertyValue(NameMapAlias, strProperty)