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

Notifications

Announcements

No record found.

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,111 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
    Inge M. Bruvik Profile Picture
    1,111 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
    95,681 Super User 2025 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

Responsible AI policies

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

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

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

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 2,606

#2
YUN ZHU Profile Picture

YUN ZHU 931 Super User 2025 Season 2

#3
Jainam M. Kothari Profile Picture

Jainam M. Kothari 773 Super User 2025 Season 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans