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
Not working. By default the code is taking "Daily".
Please confirm me that RefProjectNo visible/invisible functionality is working for the journal "ARInvoice".
please create fresh request with minimum screen short for understanding.I am really confused.
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.
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.
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".
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.
ARInvoice journal name what is your journal type. can you show me your screen for journal name setup.
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 291,219 Super User 2024 Season 2
Martin Dráb 230,056 Most Valuable Professional
nmaenpaa 101,156