Disable editing after confirmation

Dear all,

in transfer order form i customized some fields and added one confirmation button… once it is clicked the items lines could not be modified… how to do this… can any one help… working in ax 2009

thanks in advance

When an order is confirmed, save the information to a field. Then override active() method of the form and set allowEdit(false) if the order has been confirmed. You may also want to add a check to validateWrite() on the table.

Dear Mr. Martin there is no active method in the form… am using ax 2009…

Sorry, I wanted to write “the datasource”, not “the form”.

thanks martin i tried for fields allowedit it worked… but for button group i dono how to set allowedit(false) in code with the validation.

And can you help me how to add a check to validateWrite() on the table… am new to AX…

please help…

I assumed that you wanted to disable the whole datasource, not only selected fields. You didn’t mention any field group before.

Please explain what exactly you’re trying to achieve, so we don’t waste time discussing some other problem.

i want to disable the whole datasource only. once i clicked the button it has to disable the DataSource fields… i said i don’t no how to disable the DataSource fields using the button group…

My scenario is once i clicked the button i need to disable the inventtransLine fields…

I don’t see how any button group is related to the problem, so I thought it was a mistake on your side. You should have explained what you intended to do with some button group, because I have no idea.

In the active() method, you can To enable and disabled editing, simply call this.allowEdit(true) or this.allowEdit(false) inside the active() method.

yeah its working now thanks Mr. martin…

Please mark the helpful reply or replies as the verified answer. It will make clear that this thread has been closed and people with the same question will be able to easily locate the answer.