Skip to main content

Notifications

Microsoft Dynamics AX (Archived)

how to update field values in vend Table form to vendor transaction form when an purchase order form post status invoiced

Posted on by Microsoft Employee

Hi ..

create a new filed in vendor table field name is remarks . create the same field in vendor transaction .. i mean vendor form - transaction button . when we post purchase order invoice, i want vendor table remarks to be flown to vendor transaction form ..
 for this where i need write coding to insert r update the field values .. any one suggest me some information for this 

*This post is locked for comments

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: how to update field values in vend Table form to vendor transaction form when an purchase order form post status invoiced

    Hi Ganesan .. thanks for your information .. i got solution for this one ..

    i use this coding in class---> vendvoucher---->

    protected void initFromPostingProfile(VendTrans            vendTrans,

                                         VendPostingProfile   _vendPostingProfile)

    {

       ;

       VendTrans.Remarks = VendTable::find(VendTrans.AccountNum).Remarks;

       vendTrans.initFromPostingProfile(_vendPostingProfile);

    }

  • Saravanaa Profile Picture
    Saravanaa 765 on at
    RE: how to update field values in vend Table form to vendor transaction form when an purchase order form post status invoiced

    Okay  Ganesan,

    Thanks  , i will check and reach you back.......

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: how to update field values in vend Table form to vendor transaction form when an purchase order form post status invoiced

    Saravanaa,

    Please check your code, in the last line,

    vendVoucherPurch.parmRemarks(custTable::find(PurchTable.AccountNum).remarks

    I think you made a mistake there, instead of using vendTable::find() you are using CustTable::find()

    please check your code.

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: how to update field values in vend Table form to vendor transaction form when an purchase order form post status invoiced

    Hi Kavin,

    If you are using the map, then first verify that you have added the Remarks field to the map object.

  • Saravanaa Profile Picture
    Saravanaa 765 on at
    RE: how to update field values in vend Table form to vendor transaction form when an purchase order form post status invoiced

    HI Ganesh,

    I tried following way but nothing happen.

    am declared variable as in custVendVoucher

    abstract custVendVoucher

    {

     Description remarks;

    }

    in that i create a new method

    public Description parmRemarks(Description _remarks = remarks)

    {

         _remarks = remarks;

         return _remarks;

    }

    And Initializing the Remark values in    initCustVendTrans () method

       custVendTrans.Remarks = remarks;

    And then in VendVoucher class am add following line in newVendVoucherPurch() method

    vendVoucherPurch.parmRemarks(custTable::find(purchTable.AccountNum).Remarks;

    i did like that but VendTrans Table  field hasn't changed....can you tell me the correct way to do that.......

  • Saravanaa Profile Picture
    Saravanaa 765 on at
    RE: how to update field values in vend Table form to vendor transaction form when an purchase order form post status invoiced

    Hi Ganesh,

    Is it write any method in  CustVendTrans Mapping?Am write CustVendTrans.Remarks == VendTrans.Remarks. is it correct way to create?

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: how to update field values in vend Table form to vendor transaction form when an purchase order form post status invoiced

    like this i try but vales not inserted in vendTrans after the po form status posted invoiced ...

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: how to update field values in vend Table form to vendor transaction form when an purchase order form post status invoiced

    Hi Ganesan .. and here i using mapping for CustVendTable.Remarks == VendTable.Remarks

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: how to update field values in vend Table form to vendor transaction form when an purchase order form post status invoiced

    Hi Kavin,

    you have to write this method in Purchformletter_invoice > CreateVendtTrans class, not in insert method of VendTrans table

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: how to update field values in vend Table form to vendor transaction form when an purchase order form post status invoiced

    Hi Ganesan ,,

    i try with ( this.Remarks = vendTable::find(this.OrderAccount).Remarks;)

    for inserted the field values from vendTable to vendTrans .. but i want to write coding in class for insert field values from vendTable to vendTrans while po form will posted invoiced .. that's problem for asking you for where to write coding class for insert the values when po form will posted invoice ......................

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

November Spotlight Star - Khushbu Rajvi

Congratulations to a top community star!

Forum Structure Changes Complete!

🔔 Be sure to subscribe to the new forums you are interested in to stay up to date! 🔔

Dynamics 365 Community Platform update – Oct 28

Welcome to the next edition of the Community Platform Update. This is a status …

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,113 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 229,918 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans