Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics AX (Archived)

Journal Voucher Lines

(0) ShareShare
ReportReport
Posted on by 85

AX-Query.JPG

Please check the attached image file for my query.

I should hide a Grid column in Child Form(Journal Voucher) based on the value selected in Parent Form(General Journal).

[If i select the Journal Name as "Daily" and go to "Lines" then the customized field "Ref Project No." in Lines Grid should be visible, else it should not be visible.]

I am a bit new to AC development, so unable to figure out the best approach to meet this requirement.

Please help me on this. Please let me know if the requirement is not clear. Thank you in advance. 

*This post is locked for comments

  • Naveen5551 Profile Picture
    Naveen5551 85 on at
    RE: Journal Voucher Lines

    Dear Bhasker,

    Please check the new thread for the same.

    community.dynamics.com/.../170706

  • Naveen5551 Profile Picture
    Naveen5551 85 on at
    RE: Journal Voucher Lines

    Not working. By default the code is taking "Daily".

  • Hariharans87 Profile Picture
    Hariharans87 4,971 on at
    RE: Journal Voucher Lines

    Please confirm me that RefProjectNo visible/invisible functionality is working for the journal "ARInvoice".

  • 5400 Profile Picture
    5400 7,160 on at
    RE: Journal Voucher Lines

    please create fresh request with minimum screen short for understanding.I am really confused.

  • Naveen5551 Profile Picture
    Naveen5551 85 on at
    RE: Journal Voucher Lines

    Also the above code, taking "Daily" as journaltype even for the "ARInvoice" General Journal.

    I mean, the below if condition is satisfying even if "Name" selected in General Journal is "ARInvoice".

    if (ledgerjournalName::find(ledgerJournalTable::find(journalNum).JournalName).JournalType == LedgerJournalType::Daily)

    I'm not getting how this is working. Can you please suggest me a solution on this. Thank you.

  • 5400 Profile Picture
    5400 7,160 on at
    RE: Journal Voucher Lines

    we did it through journal Type, so you have to hard code with || or condtion "ARInvoice" which is not good practice.

    I am not recomending to hard code where  condition. Instead of go to AR journal and do the business scenario.  

  • Naveen5551 Profile Picture
    Naveen5551 85 on at
    RE: Journal Voucher Lines

    Your point is clear.

    But now after giving the JournalType as "Daily" for ARInvioce, this is coming in the "Name" lookup of General Journal Form. Also am able to select it and create a journal.

    Now as I have created a General Journal for "ARInvoice", we should consider this in the where condition and make the lines grid field visible/invisible as we did for "Daily".

  • 5400 Profile Picture
    5400 7,160 on at
    RE: Journal Voucher Lines

    you want to access this from which journal general ledger , hope you don't have any customization. It should get display in General Journal  but it won't be display in AR journal. Already i told several time.

  • Naveen5551 Profile Picture
    Naveen5551 85 on at
    RE: Journal Voucher Lines

    AX-JournalName.PNG

  • 5400 Profile Picture
    5400 7,160 on at
    RE: Journal Voucher Lines

    ARInvoice journal name what is your journal type. can you show me your screen for journal name setup.

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