How to get input from user using Dialog

This is my Table

 Bill_TableData

Step 1.First we have to create Dialog object for the Dialog Class.

Step 2.Then create object for Dialog group and Dialog field.

Step 3.Use extendedTypeStr for every dialog field

CODE:

static void SQLNameByID(Args _args)

{

Bill_TabMethod btm;

Dialog dialog;

dialogGroup dialogGroup;

dialogField dialogField;

dialog = new Dialog(“Johnkrish Dialog”);

dialogGroup = dialog.addGroup(“Customer Name”);

// while select * from btm

dialogField = dialog.addField(extendedTypeStr(CustName));

if (dialog.run())

{

while select * from btm

where btm.CustName==dialogField.value()

Box::info(btm.ItemName);

}

}

Step 4. Now run the code the Dialog will appear

DialogInputDialogOutput

Step 5. Input the Customer name then click OK. It will give the output of Item name as Keyboard

for the given Customer name Gopal

Yes you have done…

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s