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

Community site session details

Session Id :
Small and medium business | Business Central, N...
Suggested answer

How to replace dialog.input in business central ?

(0) ShareShare
ReportReport
Posted on by 10

Hello,

We used to use Dialog.INPUT in Microsoft Dynamics Nav but now it seems that Dialog windows are only for output, not for input. How can we ask the user a very basic question in business central ?

Thanks a lot.

I have the same question (0)
  • Suggested answer
    Inge M. Bruvik Profile Picture
    1,045 Moderator on at
    RE: How to replace dialog.input in business central ?

    The way to do it is to create a page of type StandardDialog there you can have fields both for output and input. A little more work than it used to be in C/AL.

    docs.microsoft.com/.../devenv-page-types-and-layouts

  • Toni Sala Profile Picture
    10 on at
    RE: How to replace dialog.input in business central ?

    Thanks a lot Inge,

    Does it mean that we have to create a Temp table to store the value and develop some code to get this value or is there another way to do this ?

    Thanks again.

  • Suggested answer
    Inge M. Bruvik Profile Picture
    1,045 Moderator on at
    RE: How to replace dialog.input in business central ?

    age 50102 "Dialog"
    {
        Caption = 'Dialog';
        PageType = StandardDialog;
        SourceTable = "Integer";
        SourceTableView = where(number = filter(1));
    
        layout
        {
            area(content)
            {
                field(MyInputText; MyInputText)
                {
                    Caption = 'Give me the value';
                }
            }
        }
        var
            MyInputText: text;
    
    }
    

    I guess that depends what you wanna do with the data. I usually just keep the input in variables on the page until i decide what to do with them.

    You can use the integer table as the data item for the page and set tableview to integer 1.

    Here is a small sample:

  • Suggested answer
    YUN ZHU Profile Picture
    93,024 Super User 2025 Season 2 on at
    RE: How to replace dialog.input in business central ?

    Hi, here are two simple examples that hopefully give you some hints.

    https://yzhums.com/17574/

    https://yzhums.com/16284/

    Thanks.

    ZHU

  • Toni Sala Profile Picture
    10 on at
    RE: How to replace dialog.input in business central ?

    Thanks a lot Inge,

    Everything seems to be ok now.

    Kind regards,

    TONI SALA.

  • Toni Sala Profile Picture
    10 on at
    RE: How to replace dialog.input in business central ?

    Thanks a lot ZHU.

    Kind regards,

    TONI.

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Abhilash Warrier – Community Spotlight

We are honored to recognize Abhilash Warrier as our Community Spotlight honoree for…

Leaderboard > Small and medium business | Business Central, NAV, RMS

#1
Rishabh Kanaskar Profile Picture

Rishabh Kanaskar 3,808

#2
Sumit Singh Profile Picture

Sumit Singh 2,554

#3
Nimsara Jayathilaka. Profile Picture

Nimsara Jayathilaka. 2,140

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans