How to update ?

navuser1navuser1 Member Posts: 1,329
Hi all,

I have added a new field in The Item Table and want to update it thru a Codeunit. The Codeunit is called via Function Menu Button in The Item Card.

Function (Menu Button)
> New Menu ( Copy Zob ) ---->Run Object Call the Codeunit.
Now or Never

Comments

  • DaveTDaveT Member Posts: 1,039
    Hi,

    What the problem?
    Dave Treanor

    Dynamics Nav Add-ons
    http://www.simplydynamics.ie/Addons.html
  • navuser1navuser1 Member Posts: 1,329
    DaveT wrote:
    Hi,

    What the problem?

    The field is not getting updated which I want. :-k
    Now or Never
  • DaveTDaveT Member Posts: 1,039
    Hi,

    I suspect that you are displaying the field and there is confict between the coddeunit update and the form update. Try getting the record again after the codeunit update.
    Dave Treanor

    Dynamics Nav Add-ons
    http://www.simplydynamics.ie/Addons.html
  • kapamaroukapamarou Member Posts: 1,152
    Do you call modify?
    Do you call CurrForm.UPDATE?

    This could be anything. You need to give us more info.
  • navuser1navuser1 Member Posts: 1,329
    Dear all,

    Actual Scenario
    I have added a new field Estimated Job in the Job table and want to updated this field from the Function (Menu Button) ----Copy Job.Estimated Job No. should be Copy from Job No.
    Now or Never
  • RawHeatRawHeat Member Posts: 63
    Hi,

    once u assign the value Job."Estimate Job No." := "job no.";
    use Job.Modify; if u are entering/ modifying the existing record.

    or if new records is being inserted then write Job.Insert in the end.

    this should solve ur issue
Sign In or Register to comment.