Skip to main content

Notifications

Announcements

No record found.

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

(0) ShareShare
ReportReport
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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Verified Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,445 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans