Welcome,
Guest
. Please
login
or
register
.
Did you miss your
activation email?
Home
Help
Search
Login
Register
Rapid-I
Rapid-I Forum
»
RapidMiner
»
Development
»
Show error dialog
Pages: [
1
]
« previous
next »
Print
Author
Topic: Show error dialog (Read 292 times)
Miguel Ángel Álvarez
Newbie
Posts: 4
Show error dialog
«
on:
March 28, 2012, 01:01:08 PM »
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!
Logged
Marco Boeck
Administrator
Sr. Member
Posts: 457
Re: Show error dialog
«
Reply #1 on:
April 04, 2012, 01:09:30 PM »
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
Logged
Did you try our new Marketplace? Upload or download new Extensions, add comments, and organize your operators. Have a look at
http://marketplace.rapid-i.com
radone
Jr. Member
Posts: 73
Re: Show error dialog
«
Reply #2 on:
April 04, 2012, 01:12:01 PM »
Just throw OperatorException with a particular message (there are also some localized alternatives such as UserException etc.)
radone
Logged
Pages: [
1
]
Print
« previous
next »
Jump to:
Please select a destination:
-----------------------------
General Community
-----------------------------
=> News and Updates
=> Data Mining
=> Chit Chat
-----------------------------
RapidMiner
-----------------------------
=> Getting Started
=> Data Mining / ETL / BI Processes
=> Problems and Support
=> Feature Requests
=> Development
-----------------------------
RapidAnalytics
-----------------------------
=> Getting Started
=> Applications and Integration
-----------------------------
RapidNet
-----------------------------
=> Getting Started
=> Problems and Support
Loading...