How to get input from user using Dialog

This is my Table


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


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 (


while select * from btm

where btm.CustName==dialogField.value()




Step 4. Now run the code the Dialog will appear


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…


Leave a Reply

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

You are commenting using your 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