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.
Thanks a lot ZHU.
Kind regards,
TONI.
Thanks a lot Inge,
Everything seems to be ok now.
Kind regards,
TONI SALA.
Hi, here are two simple examples that hopefully give you some hints.
Thanks.
ZHU
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:
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.
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.
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 291,240 Super User 2024 Season 2
Martin Dráb 230,149 Most Valuable Professional
nmaenpaa 101,156