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

Announcements

No record found.

News and Announcements icon
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.

  • Suggested answer
    IB-29041624-0 Profile Picture
    1,191 Moderator on at

    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

    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
    IB-29041624-0 Profile Picture
    1,191 Moderator on at

    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
    103,280 Super User 2026 Season 2 on at

    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

    Thanks a lot Inge,

    Everything seems to be ok now.

    Kind regards,

    TONI SALA.

  • Toni Sala Profile Picture
    10 on at

    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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the August Top 10 Community Leaders

These are the community rock stars!

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

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 715 Super User 2026 Season 2

#2
YUN ZHU Profile Picture

YUN ZHU 452 Super User 2026 Season 2

#3
AndrewThomas81 Profile Picture

AndrewThomas81 371 Super User 2026 Season 2

Last 30 days Overall leaderboard

Featured topics

Microsoft Training Manuals

Product updates

Dynamics 365 release plans