web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

how to make the customise lookup in invoice journal

(0) ShareShare
ReportReport
Posted on by 371

have he 1 enum "no yes id" drag it in to the vend table now some account number i select the enum value "yes"

on the next step  in Accounts payable/Area page/invoice journal.. when i select the vendor the look up comes only the account number i select the enum value "yes". 

*This post is locked for comments

I have the same question (0)
  • Martin Dráb Profile Picture
    239,932 Most Valuable Professional on at

    Do you mean Accounts payable > Invoices > Invoice journal? From there, do you click the Lines button and on lines, do you mean the Account field when Account type = Vendor? Do you want the same for the Offset account? (For reference, this is LedgerJournalTransVendInvoice form.)

    Or do you mean something else?

  • CU02060633-1 Profile Picture
    371 on at

    @Martin Dráb....yes when the lines in that we select the vendor the account number look up come so in that look i want to see those customer whose i make the enum yes only not the full list of the vendor

  • Suggested answer
    Rohin Profile Picture
    4,624 on at

    What  i am understanding is you want to show only those vendor account in lookup on LedgerJournalTransVendInvoiceForm having enum value "Yes" (setup in vend master) as same Martin understanding .

    If So, then have a look of class:

    1. LedgerJournalTransType_Vend

    this class calls the table method as below:

    1. LedgerJournalTrans.findVendTable()

    you can do something there acc. to your requirement.

    Correct me Martin if i am wrong ? I would appreciate.

  • CU02060633-1 Profile Picture
    371 on at

    @Visvash Walia ..yes what i want...i have done it with some other way

    like 1st i make a query  "and drag the vendtable" an in the range section i select the yes

    then make for and in data souce i put this query and in the form method of init i write

    public void init()

    {

       super();

       element.selectMode(StringEdit);

    }

    then i go through the class and there is one class lookupVendor "args.name(formStr(vendtablelookupform));" here i call my form adn its working

    ================================================

    but now the senario is that it show the yes vendor i have to see the no vendor on selection of enum so i put a no yes in form

    but when i select the yes it show the yes vendor and when i select no it show the yes only ..can you please help me in this issue....

  • Rohin Profile Picture
    4,624 on at

    Do you want to do all this on LedgerJournalTransVendInvoiceForm or your customized form ? can you please confirm

  • CU02060633-1 Profile Picture
    371 on at

    @Visvash Walia yes all i want to make in this form only..look up is showing the vendor whose enum value is yes now i have to make a filter..so that i put the button no yes on this form if the user select the no the vendor account number show whose value is no and if he user select yes the vendor account number shows the account number whose value is yes

  • Rohin Profile Picture
    4,624 on at

    Can you please show us your code how you did it for Enum "yes" ?

  • Suggested answer
    Martin Dráb Profile Picture
    239,932 Most Valuable Professional on at

    The standard logic is implemented in LedgerJournalEngine.accountNumLookup(). This is used by all journals, therefore if you want your logic only in the vendor invoice journal, override accountNumLookup() in LedgerJournalEngine_VendInvoice and handle your custom logic there (call your own lookup if AccountType is Vend and call super() in all other cases).

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

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
Sanhthosh.Kumar.K Profile Picture

Sanhthosh.Kumar.K 2

#2
Raed Salah Bzour Profile Picture

Raed Salah Bzour 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans