Skip to main content

Notifications

Announcements

No record found.

Small and medium business | Business Central, N...
Suggested answer

Report for adding code in existing procedure/ trigger custom field in the code of process report

(1) ShareShare
ReportReport
Posted on by 54
Hi  ,
 
I have custom field  XY in  /Bank Acc. Reconciliation Line/. when I want to transfer to /Gen. Journal Line/ which has custom field X.
there is a report to insert data into /Gen. Journal Line/ from  /Bank Acc. Reconciliation Line/. report name is  /Trans. Bank Rec. to Gen. Jnl./
 
how to add code like this /Gen. Journal Line/ .xy:= /Bank Acc. Reconciliation Line/.xy.
 
please give me hint.
 
Warm regards
  • Community member Profile Picture
    Community member 22 on at
    Report for adding code in existing procedure/ trigger custom field in the code of process report

    To transfer the custom field value from the /Bank Acc. Reconciliation Line/ table to the /Gen. Journal Line/ table in the report "Trans. Bank Rec. to Gen. Jnl.", you'll need to customize the code of the report.

    Here's a hint to guide you:

    Inside the "Trans. Bank Rec. to Gen. Jnl." report code, locate the section where it processes each record from /Bank Acc. Reconciliation Line/ and inserts data into /Gen. Journal Line/.

    Within this section, after the data from the /Bank Acc. Reconciliation Line/ has been processed and before it's inserted into /Gen. Journal Line/, you'll need to add code to transfer the value of custom field XY.

    Utilize the appropriate syntax for accessing custom fields in the code. Depending on the programming language and platform you're working with, this syntax may vary.

    Typically, it involves referencing the field by its name, preceded by the table name. Assign the value of /Bank Acc. Reconciliation Line/.XY to /Gen. Journal Line/.XY.

    The exact syntax for this assignment will depend on the programming language or scripting language you're using. Test your code thoroughly to ensure that the custom field values are transferred accurately from /Bank Acc.

    Reconciliation Line/ to /Gen. Journal Line/ for each record processed by the report. If you encounter any specific issues or need further assistance with the code, feel free to provide more details, and I can offer additional guidance.

  • KK-20050817-0 Profile Picture
    KK-20050817-0 54 on at
    Report for adding code in existing procedure/ trigger custom field in the code of process report
    Hi ZHU, BR,
     
    Thank you for the support and that too right help.
    You are great  and hope best for you
  • Suggested answer
    YUN ZHU Profile Picture
    YUN ZHU 75,802 Super User 2024 Season 2 on at
    Report for adding code in existing procedure/ trigger custom field in the code of process report
    Hi, I just did a simple test, I hope the following information can also give you some help.
     
    Thanks
    ZHU
  • Suggested answer
    gdrenteria Profile Picture
    gdrenteria 13,011 Most Valuable Professional on at
    Report for adding code in existing procedure/ trigger custom field in the code of process report
    Hi
    In the report there is an event that you can subscribe to to add some more fields.
     
    BR
    GR

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

Congratulations 2024 Spotlight Honorees

Kudos to all of our 2024 community stars! 🎉

Meet the Top 10 leaders for December

Congratulations to our December super stars! 🥳

Start Your Super User Journey

Join the ranks of our community heros! 🦹

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,433 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans