Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF "Technology" (Ecore Tools, EMFatic, etc)  » [EMF FORMS] Validation & Rules.(We need a rule service, that can evaluate rules and change the view's validation accordingly.)
[EMF FORMS] Validation & Rules. [message #1405010] Wed, 06 August 2014 11:20 Go to next message
Ranjeeth Rajendran is currently offline Ranjeeth RajendranFriend
Messages: 17
Registered: July 2009
Junior Member
Hello,

We need a validation rule service, that can evaluate rules and change the view/control with validation error accordingly.

something similar to show/hide, enable/disable rule.

Any suggestions?

Thanks,
Ranjeeth
Re: [EMF FORMS] Validation & Rules. [message #1405030 is a reply to message #1405010] Wed, 06 August 2014 12:12 Go to previous messageGo to next message
Jonas Helming is currently offline Jonas HelmingFriend
Messages: 699
Registered: July 2009
Senior Member
Hi,

could you give an example on the rule you want to evaluate and the
effect you expect?

Cheers

Jonas

Am 06.08.2014 13:20, schrieb Ranjeeth Rajendran:
> Hello,
>
> We need a validation rule service, that can evaluate rules and change
> the view/control with validation error accordingly.
>
> something similar to show/hide, enable/disable rule.
>
> Any suggestions?
>
> Thanks,
> Ranjeeth
Re: [EMF FORMS] Validation & Rules. [message #1405043 is a reply to message #1405030] Wed, 06 August 2014 12:39 Go to previous messageGo to next message
Ranjeeth Rajendran is currently offline Ranjeeth RajendranFriend
Messages: 17
Registered: July 2009
Junior Member
Hello Jonas,

I can think of two simple scenario-

  1. I have a model which contains maternity leave which is not mandatory field, but when i visualize the model, i want to show validation error stating that the field is mandatory only in case if gender is female
  2. Another scenario would be that i have a task with due date and i would like to show a validation error if the due date is crossed.

index.php/fa/18801/0/
Thanks,
Ranjeeth
Re: [EMF FORMS] Validation & Rules. [message #1405520 is a reply to message #1405043] Thu, 07 August 2014 14:31 Go to previous messageGo to next message
Jonas Helming is currently offline Jonas HelmingFriend
Messages: 699
Registered: July 2009
Senior Member
Hi,

you can add custom validation rules directly to the model or to the
validators generated by EMF. They are not really depending on the UI and
will just be displayed there.

Best Regards

Jonas


Am 06.08.2014 14:39, schrieb Ranjeeth Rajendran:
> Hello Jonas,
>
> I can think of two simple scenario-
>
> I have a model which contains maternity leave which is not mandatory field, but when i visualize the model, i want to show validation error stating that the field is mandatory only in case if gender is female
> Another scenario would be that i have a task with due date and i would like to show a validation error if the due date is crossed.
>
>
> Thanks,
> Ranjeeth
>
Re: [EMF FORMS] Validation & Rules. [message #1412074 is a reply to message #1405520] Mon, 25 August 2014 08:30 Go to previous message
Ranjeeth Rajendran is currently offline Ranjeeth RajendranFriend
Messages: 17
Registered: July 2009
Junior Member
Hello Jonas,

Indeed you are right validation should be part of model.

Reason i was asking for something on view is due to constant business change, so we could apply changes on the view, but i was wrong applying validation rule at view will not reflect in the model validation.

Thanks for your feedback.

Kind Regards,
Ranjeeth.
Previous Topic:[ECP] Custom Control always in a ScrolledComposite
Next Topic:[EMF Forms] Master Detail pattern using default controls
Goto Forum:
  


Current Time: Thu Apr 09 19:00:24 GMT 2020

Powered by FUDForum. Page generated in 0.01983 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top