[Nav2013] Missing trigger "OnAfterInput"

peterchenpanpeterchenpan Member Posts: 2
edited 2012-08-20 in NAV Three Tier
Hello everyone.

At first of all I am new in Navision in general. I am missing a trigger which was very useful in 2009 but to be disappeared in 2013. My issue is to catch an input before it is validated because it is maybe necessary to filter and modify it – otherwise I will get an error by handling the input. In 2009 I used the trigger “OnAfterInput” but unluckily I am missing this trigger (it was set on forms) and cannot reproduce it just with pages and actions in Navision 2013.

The trigger „OnValidation“ reacts to late; there will be thrown an error in case of an invalid input without filtering or modifying. I need an option to react right after the input and right before the validation.

I would be very thankful for any advice or maybe better any kinds of solution. Thank you very much for your effort.

With best regards,
Patrick

Answers

  • EgnazEgnaz Member Posts: 111
    There is also no "OnAfterInput" trigger in NAV2009 pages, just for information.
    I think this is technical because of 3-tier architecture.
  • vijay_gvijay_g Member Posts: 884
    I can expect performance issue with this trigger.
  • deV.chdeV.ch Member Posts: 543
    You need to rethink your implementation, i guess i want to enter any kind of value in a input field, then do something with it without checking it's datatype, relation validation etc. Well that can be achieved very simply by using a text variable as SourceExpr instead of the real field you would set. This way you can use the OnValidate() Trigger and do what you want and after you do your processing you can still call a validate to the table field.

    In fact that is the only and the right way to achieve something like this. If you are moving from classic client to Role Tailord Client you will find many such small changes where you're forced to rethink your implementation. Thinking outside the box is the key!
Sign In or Register to comment.