Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics NAV (Archived)

NAV set input parameter on screen for dll or codeunit

Posted on by Microsoft Employee

Dear friends,

I am new in NAV and currently reference a custom C# dll in my project. As the c# projects requires some input parameters like date, text and so on, how can nav pop up a parameter window for user manually input their value?

Luckily, I found one of the most popular result from Saurav

https://community.dynamics.com/nav/b/sauravdhyanimicrosoftdynamicsnav/archive/2014/09/11/discontinued-component-nav-2013-amp-later-input-box-the-input-method-is-obsolete

But it contains only one parameter and seems for string only. In my case, I would like add multiple parameters and define the data type by myself, just like AX.

Any information is welcome. Thanks in advance.

*This post is locked for comments

  • Suggested answer
    RockwithNav Profile Picture
    RockwithNav 6,562 on at
    RE: NAV set input parameter on screen for dll or codeunit

    Thats the same thing above that I was explaining you out. Anyways all the best :)

  • Verified answer
    Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: NAV set input parameter on screen for dll or codeunit

    I found a solution from standard page (684 date-time dialog)  and table (472 Job Queue Entry).

    I just need to build a variable based page and then pass the page variable from screen input to the dll reference.

    Thanks for previous answer.

  • Suggested answer
    RockwithNav Profile Picture
    RockwithNav 6,562 on at
    RE: NAV set input parameter on screen for dll or codeunit

    So whats the challenge over here, you can make any UI in NAV with the required inputs and then pass the inputs as parameters to your dll method.

    Can you tell me the challenge or show me what you tried till now?

    If any how it would be Contro addin then it make sense to be challenging as what you said but it wont be a challenge for a simple dll.

  • Suggested answer
    Stefano Demiliani Profile Picture
    Stefano Demiliani 37,162 Most Valuable Professional on at
    RE: NAV set input parameter on screen for dll or codeunit
    You can create a ProcessingOnly report that, on its Request Page, it asks for your parameters input. Then, in OnPostReport event you can call your DLL passing the parameters previously inserted.

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,235 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans