Edit method

Hii I have a checkbox field in a form .The data method associated is a Edit method.I mark the check box and close the form.Now,when I reopen the same form checkbox is unmarked.

SO,I want to set this checkbox field in my edit method through X++

And what’s the problem?

The first parameter of edit methods indicates whether a value is being set. That’s when you should save the value (you have to implement it by yourself).

Nevertheless if you don’t need any transformation, can’t you simply bound the checkbox directly to a datasource field. You wouldn’t have to write any code at all.;