opening a dialog from saleseditform?

Hi,

I have created a dialog, i want to open the dialog from sales edit line form.

when i click ok it will open the dialog.

is it possible?then what code i need to write to open the dialog in closeok of saleseditline form?

You need to write a new class and extend it from RunBaseBatch class then override the dialog and getFromDialog methods in the new class.Moreover you can take the help from Tutorial_RunbaseForm class in AX.