SBX - Search With Button

SBX - Forum Post Title

Error : 'Dialog' does not contain a definition for 'INPUT'

Dynamics 365 Business Central Forum

Manikanta Adabala asked a question on 13 Jun 2019 1:31 AM

Question Status

Suggested Answer

I Declared Variable like below


InputWindow: Dialog;


And using this variable in my code.

UserSingleInstance.GetParam(ExternalP, UserP);
InputWindow.OPEN(Text001);
InputWindow.INPUT(1, "ICS Document Type");  //Getting error here
InputWindow.INPUT(2, "SourceNo"); //Getting error here
InputWindow.UPDATE(1, "ICS Document Type");
InputWindow.UPDATE(2, SourceNo);
PackageMgmt.LoadScannedOrder("ICS Document Type", "SourceNo", Rec, UserP);
InputWindow.CLOSE;
CurrPage.PackageLineBuffer.PAGE.InitShipmentDetails(Rec);
CurrForm.UPDATE;

And Getting error "'Dialog' does not contain a definition for 'INPUT'".

Could you please Suggest me the Solution.

Reply
Hannes Holst responded on 13 Jun 2019 3:40 AM
My Badges

Hello,

This is not supported anymore (I think since NAV2017 - not entirly sure).
Dialogs can be used to show information only.

To input data, you have to create a page with the controls you need.

Reply
Teddy Herryanto responded on 13 Jun 2019 3:23 PM
My Badges
Suggested Answer

Input is not available in Business Central. You need to create a page to get user input.

Reply
Teddy Herryanto responded on 13 Jun 2019 3:23 PM
My Badges
Suggested Answer

Input is not available in Business Central. You need to create a page to get user input.

Reply

SBX - Two Col Forum

SBX - Migrated JS