πŸŽ‰ πŸŽ‰ RAPIDMINER 9.10 IS OUT!!! πŸŽ‰πŸŽ‰

Download the latest version helping analytics teams accelerate time-to-value for streaming and IIOT use cases.

CLICK HERE TO DOWNLOAD

attaching event with "ParameterTypeCategory"

mansoorbahrianmansoorbahrian Member Posts: 6 Contributor II
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.

Answers

  • landland RapidMiner Certified Analyst, RapidMiner Certified Expert, Member Posts: 2,531   Unicorn
    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
Sign In or Register to comment.