Form closing automatically after showing ERROR dialog

2»

Comments

  • David_SingletonDavid_Singleton Member Posts: 5,479
    Daveus wrote:
    I'm using NAV 5.0 SP1, maybe it's a bit outdated compare with NAV 2009 ( ...we're using that version because of a particular add-on module made by a third party company, Pebblestone, and they're not yet ready, as of today (2010-02-08), to release their module updated and compatible with NAV 2009 ).

    Again, thanx


    Pebble stone do some funky stuff with how they launch their html based configurator. If I remember correctly there is a trigger in the sales line table that can launch this. This would indicate that the Sales Line Table and the Subform are modified.

    I would look again, since I think Daniel is correct in that your tables/forms are not standard. Compare the version numbers against a cronus database.
    David Singleton
  • absolutelyfreewebabsolutelyfreeweb Member Posts: 104
    shedman already gave the right answer to this:

    use OnQueryCloseForm() with message() and exit(false), instead of error()
  • jversusjjversusj Member Posts: 489
    edit = I realized that I made an error in my testing that invalidated my original post. Thanks.
    kind of fell into this...
  • jigneshdhandhajigneshdhandha Member Posts: 41
    Hi All........

    I want to make Validation on Status Field on Sales Order.
    When I moving One Sales Order to Another I am Checking Sales Order Status = Released and IF Status is not Released then
    It will Give an error and After that user can change Status = released

    But When I got error and after pressing ok then sales order form is closed I dont want to close Sales Order Form.

    and I also put message instead of error but through message sales order is not closed but record move to next record. This i dont want to do.

    Thanks..............
  • BeliasBelias Member Posts: 2,998
    move your code to the table if possible. I guess you put the error in the onvalidate of the form.
    -Mirko-
    "Never memorize what you can easily find in a book".....Or Mibuso
    My Blog
Sign In or Register to comment.