Quantcast
Channel: Microsoft Dynamics AX Forum - Recent Threads
Viewing all articles
Browse latest Browse all 72043

conditions to check before writing into the table

$
0
0

Hi all,

I have a form with bounded data source fields. I enter the data and i click a button which passes these records to the report.

I need to check few conditions before sending it to the report,

Field1 = XX                                   

Field2 = YY

Field3 = ZZ

PRINT// Button

If the field1 && field2 && field3 already exists in the table,then i need a dialog with Ok and Cancel.

If i press OK, it should continue to print the report.

If i press CANCEL, it should not print the report.

Since, my fields are bounded, i do these validations in the table insert() method before the super() call.

My issue is , eventhough i press cancel,it prints the report.

Since my validations and Ok and cancel dialog in insert method, how can i able to block the super of the PRINT button to restrict printing.

Or is there any other way?


Viewing all articles
Browse latest Browse all 72043

Trending Articles