🎉Community Raffle - Win $25

An exclusive raffle opportunity for active members like you! Complete your profile, answer questions and get your first accepted badge to enter the raffle.
Join and Win

attaching event with "ParameterTypeCategory"

User: "mansoorbahrian"
New Altair Community Member
Updated by Jocelyn
Hello Everyone,


I am developing an operator for RapidMiner.

My question is how to attach an event the dropdownbox  (i.e. ParameterTypeCategory), because I want to enable or disable few textfields on basis of selection.

Find more posts tagged with

Sort by:
1 - 1 of 11
    User: "land"
    New Altair Community Member
    Hi,
    you might attach Conditions on parameters, which will hide them if the condition is not met. For example this code:
    		
    type = new ParameterTypeCategory(PARAMETER_IO_OBJECT, "The class of the object(s) which should be checked for existance.", objectArray, 0);
    type.registerDependencyCondition(new EqualStringCondition(this, PARAMETER_CONDITION_TYPE, true, CONDITION_INPUT_EXISTS));
    type.setExpert(false);
    types.add(type);
    It will create a parameter which will only be shown if the parameter CONDITION_TYPE is equal to CONDITION_INPUT_EXISTS.

    Greetings,
      Sebastian