Okcancel Box before posting

Hi

I want to show a OkCancel box in my form whenever i click postinvoice button on a form.

I wrote some validations on my form datasource validatewrite method.

If the validation is true i want to popup my OkCancel Box, and it should happen only wenever i clicks the postinvoice button my form.

please tell me where i ve to write my code to create OkCancel Box and how to show the box whenever the postinvoice button is clicked and at the sametime i want to display the box based on the validations in my form datasource validatewrite method.

The system will write the record into database only the validations in the validate method are done.

The system will through errors (based on your code) - when you try to click a button without completing the validation.

Override the clicked method…