🎉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

"Show error dialog"

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

I am developing an operator and I want that a dialog error appears when user enter an invalid data.
How can i do it?

Thanks!

Find more posts tagged with

Sort by:
1 - 2 of 21
    User: "Marco_Boeck"
    New Altair Community Member
    Hi,

    you can specifiy the type of the ParameterType, e.g. ParameterTypeDouble. Then RapidMiner makes sure the value entered is at least numeric. Otherwise, if you want for example to make sure a parameter is between 0 and 1, you can make the operator throw an error when it is not.
    However, if you want to add some sort of input verification right when the user has entered something, you will need to create one yourself, there is no mechanism in RapidMiner that you could use for that. I suggest having a look at the ParameterType implementations and the PropertyValueCellEditor interace with its implementations and continue from there.

    Regards,
    Marco
    User: "radone"
    New Altair Community Member
    Just throw OperatorException with a particular message (there are also some localized alternatives such as UserException etc.)

    radone