Freezing a record

Hi All,

I’d like to know how to freeze a record by clicking on a freeze button,the record may be new or existing (in Ax 2009).

Regards,

Naveen.

Please elaborate your requirement, what do you mean by freeze record?

Hi Mr.Kranthi,

I know about the allow edit property, but there should be a button in the form as freeze if i select a particular record and press the button the record should be freezed i.e. not editable it must be done by x++ coding.

Regards,

Naveen.

Is it for the current session or for all the user sessions? what it should happen when the form is closed and opened again?

Nothing Mr.Kranthi it should be not editable once we freeze it whether closed and opened also nothing should happen to the record it can be deleted but once created it can never be changed it’ll be permanent.

Regards,

Naveen.

The simplest way is to have a field (some thing like a status field) and update it when the freeze button is clicked. Make the record editable based on the field value (you can do it in the active method of the form data source and in clicked method after the field gets updated)

yourTable_ds.enabled(write your condition here);

Hi,

There is similar blog discussed earlier, see whether you have the same requirement.

http://dynamicsuser.net/forums/t/51820.aspx

Regards,

Raghav.