IScalarParameterDefn and allow multiple values

cypherdj
edited February 11, 2022 in Analytics #1
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

Comments

  • cypherdj
    edited December 31, 1969 #2
    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
    edited December 31, 1969 #3
    Slight mistake in code above, it should actually be:

    if (spHandle.getParamType().equals(DesignChoiceConstants.SCALAR_PARAM_TYPE_MULTI_VALUE)){
    // handle multi-value
    }