Update Forms

oioi007oioi007 Member Posts: 41
Hey..
I have a question

Im using MODIFY function and want to Update form, but not Current form,
On Push
CurrForm.CLOSE;

something like this

Form.39(Update)

How can I code this?

Comments

  • DaveTDaveT Member Posts: 1,039
    Hi

    If I understand you correctly you can update a sub-form by creating a function with an update call in it, in the sub-form and call it from the main form. Otherwise if you are call a form to modify the data - put the update in the calling form. If these are not what you want then play around with a update in the ontimer trigger on the form you want to update.

    Search the forum there are lots of posts and tips
    Dave Treanor

    Dynamics Nav Add-ons
    http://www.simplydynamics.ie/Addons.html
  • oioi007oioi007 Member Posts: 41
    All I want is to update form:General Journal , from the sub-form, with BUTTON PUSH

    WHEN I push the button, Form:General Journal must update. thats all
    8)

    I think it's very simpe but I cannt do that :(
  • DaveTDaveT Member Posts: 1,039
    Hi

    Then put a currform.update in a condition of the Form:General Journal on the ontimer trigger. A form can see a sub-form but not the other way around. :(
    Dave Treanor

    Dynamics Nav Add-ons
    http://www.simplydynamics.ie/Addons.html
  • oioi007oioi007 Member Posts: 41
    I dont know how to work with Ontimer.. please write a simple example please
Sign In or Register to comment.