To disable the action button "OK" when the PO screen in loaded(in PuchCreateFromSalesOrder)

I am trying to disable the Action button “OK” when ever the Purchase Order Creation screen is loaded(in the form ‘PuchCreateFromSalesOrder’) . Only when user click “VALIDATE” button system should enable “OK” button.

I am trying to add code in the ACTIVE method of the corresponding data source.But not getting it right…Could some one please help me.

If you want to enable ‘OK’ button when you click ‘Validate’ then write the code under ValidateButton>Modified method. It should be in such a way that initially when you open the form make it 'enabled(False) and when ‘Validate’ clicked should be enabled(True).

Hi Vishal,

I have tried the way you suggested.Under the ValidateButton button I have created new modified method(already method ‘clicked’ is present). Could you please explain the simple way to write the code here. Am new to AX2012.Thanks