Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics NAV (Archived)

Sub cost centre

(0) ShareShare
ReportReport
Posted on by 3,099

Hi

  In a report I have Input field Sub Cost Centre . I want list should also appear so that user can select also. Table is Requistion line. Similarly I want for Item Code.

Thanks

*This post is locked for comments

  • Suggested answer
    Amol Salvi Profile Picture
    18,696 on at
    RE: Sub cost centre

    You can write as follows

    mitem.setfilter (mitem."no.",'<>%1','');

    fItemList.fLimitAllowedItems(mSalesHeader);

    fItemList.LOOKUPMODE(TRUE);

    IF fItemList.RUNMODAL=ACTION::LookupOK THEN

    BEGIN

    fItemList.GETRECORD(mItem);

    VALIDATE("No.",mItem."No.");

    END;

    Define variables

  • jsshivalik Profile Picture
    3,099 on at
    RE: Sub cost centre

    Hi

     Can u pls help with some code. In case of item also this has to be done.

    Thanks

  • Verified answer
    Amol Salvi Profile Picture
    18,696 on at
    RE: Sub cost centre

    Write a codd om onlookup trigger to get the list

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

🌸 Community Spring Festival 2025 Challenge Winners! 🌸

Congratulations to all our community participants!

Adis Hodzic – Community Spotlight

We are honored to recognize Adis Hodzic as our May 2025 Community…

Kudos to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard > Microsoft Dynamics NAV (Archived)

Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans