The Altair Community is migrating to a new platform to provide a better experience for you. In preparation for the migration, the Altair Community is on read-only mode from October 28 - November 6, 2024. Technical support via cases will continue to work as is. For any urgent requests from Students/Faculty members, please submit the form linked here

"Show error dialog"

maalvarezmaalvarez Member Posts: 4 Contributor I
edited June 2019 in Help
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!
Tagged:

Answers

  • Marco_BoeckMarco_Boeck Administrator, Moderator, Employee-RapidMiner, Member, University Professor Posts: 1,996 RM Engineering
    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
  • radoneradone RapidMiner Certified Expert, Member Posts: 74 Guru
    Just throw OperatorException with a particular message (there are also some localized alternatives such as UserException etc.)

    radone
Sign In or Register to comment.