Regarding Dialog box

Hi,

i need to open a dialog box to get the input when i clicked the new button in a form and i want to store the datas in tat form …

plz help me by providing code…

With Regards,

M.Madhan Kumar

Override the Create() method of the for data source - and call a dialog there - add the dialog fields and pass those dialog field values into the form data source…

hi kranthi,

can u provide the full codings for this… as i entered the ax field before a month ly…

help me regarding this…

With Regards,

M.Madhan Kumar

Here is a sample code

dialog dialog;
DialogField yourdlgfield;
;

dialog = new Dialog(“Your Caption”);
yourdlgfield= dialog.addField(typeid(yourFieldType)," Label"," Label");
dialog.run();

if (dialog.closedOk())

{
yourTable.yourField= yourdlgfield.value();

/// if any code…

}