Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
THRUST SERVICES & TOOLS
CLOUD EDITIONS
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Intelligence (Analytics)
IScalarParameterDefn and allow multiple values
cypherdj
Hi there,
Is there a method on the IScalarParameterDefn interface or any parent interface/class that returns a boolean indicating whether the given parameter allows multiple values?
I've just gone through the API documentation without any luck,
Cheers,
Cedric
Find more posts tagged with
Comments
cypherdj
Right, finally managed to locate this by digging into the plugin source code, so for anyone out there that might need this info:
IScalarParameterDefn curParamDef = (IScalarParameterDefn) curParam;
ScalarParameterHandle spHandle = (ScalarParameterHandle) curParamDef.getHandle();
if (spHandle.getParamType() == DesignChoiceConstants.SCALAR_PARAM_TYPE_MULTI_VALUE){
// handle multi-value
}
cypherdj
Slight mistake in code above, it should actually be:
if (spHandle.getParamType().equals(DesignChoiceConstants.SCALAR_PARAM_TYPE_MULTI_VALUE)){
// handle multi-value
}