Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics NAV (Archived)

Search Mode

Posted on by 75

Folks, I have received a question from one of my customers (as per below) and was hoping someone could help. Thanks in advance.

"This is a very frequently occurring issue and I am seriously over it . I believe this happens to almost everyone in the company who so ever is operating Navision . Every time we click on a table , say , POSTED INVOICE or sales Invoice or History ,resource Sales or chart of account , NAV goes in to this “SEARCH “ mode and takes its time to come back to normal before we can do anything . I have raised this in past and was thinking lately that Microsoft must have come with some solution for this issue (if it is a bug)  . If we think about the collective time all employees spend on “waiting “ then you can estimate the amount of inefficiency we have because of this issue . Could you plz shed some light on it and whether this can be rectified."

*This post is locked for comments

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Search Mode

    There could be many reasons for this.  Slow or bad setup hardware, Customizations, massive data, etc.

    We have a million Posted Invoices so I feel your pain.  And I hate going into Posted invoices.

    So we made two changes to help us get to an invoice immediately.

    One is a text box on the menu called "Quick Find Invoice" where you can enter or scan any invoice # and it brings you right to the invoice.  The code on this textbox is as follows:

    OnAfterValidate()
    IF InvSearch = ''THEN BEGIN
        MESSAGE('You Cannot Search A Blank Number!');
    END ELSE BEGIN
        SalesInvoiceHeader.SETCURRENTKEY("No.");
        SalesInvoiceHeader.SETRANGE("No.",InvSearch);
        IF SalesInvoiceHeader.FIND('+') THEN BEGIN
            CLEAR(InvoiceForm);
            InvoiceForm.LOOKUPMODE(TRUE);
            InvoiceForm.SETTABLEVIEW(SalesInvoiceHeader);
            InvoiceForm.RUNMODAL;
            CLEAR(InvSearch);
        END ELSE BEGIN
           MESSAGE('Order Not Found');
           CLEAR(InvSearch);
           CurrForm.UPDATE;
       END;
    END;

    The second change is on the Customer Ledger Entry Form (#25).  When you click on the "Document No" it has a lookup that brings you right there in a flash.  The code behind that is:

    OnLookup(VAR Text : Text[1024];) : Boolean
    CASE "Document Type" OF "Document Type"::"Credit Memo":
    BEGIN
       CLEAR(PostedCreditForm);
       PostedCreditInv.SETCURRENTKEY("Sell-to Customer No.","No.");
       PostedCreditInv.SETFILTER(PostedCreditInv."No.","Document No.");
       PostedCreditForm.LOOKUPMODE(TRUE );
       PostedCreditForm.SETTABLEVIEW(PostedCreditInv);
       PostedCreditForm.RUNMODAL;
    END
    END;
    CASE "Document Type" OF "Document Type"::Invoice:
    BEGIN
       CLEAR(PostedSalesForm);
       PostedSalesInv.SETCURRENTKEY("Sell-to Customer No.","No.");
       PostedSalesInv.SETFILTER(PostedSalesInv."No.","Document No.");
       PostedSalesForm.LOOKUPMODE(TRUE );
       PostedSalesForm.SETTABLEVIEW(PostedSalesInv);
       PostedSalesForm.RUNMODAL;
    END
    END;
    CASE "Document Type" OF "Document Type"::Payment:
    BEGIN
       CLEAR(PostedPaymentForm);
       PostedPaymentInv.SETFILTER(PostedPaymentInv."No.","Document No.");
       PostedPaymentForm.LOOKUPMODE(TRUE );
       PostedPaymentForm.SETTABLEVIEW(PostedPaymentInv);
       PostedPaymentForm.RUNMODAL;
    END
    END;

  • Mohana Yadav Profile Picture
    Mohana Yadav 59,139 Super User 2024 Season 2 on at
    RE: Search Mode

    Please check your server configaration also.

    this post can helo you

    dynamicsuser.net/.../21475.aspx

  • Ritzley Profile Picture
    Ritzley 75 on at
    RE: Search Mode

    Hi Mohana, thanks for the quick reply. The Search screen my client gets is below. I am not sure if OnOpen has been customized but will check.

     

  • Mohana Yadav Profile Picture
    Mohana Yadav 59,139 Super User 2024 Season 2 on at
    RE: Search Mode

    Is it a table or form/page?

    Have you done any customization on OnOpen form trigger?

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 Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,214 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans