opening a form on basis of menuitem

i have 2 menuitem of same Form, i want to disable some fields while calling from first menuitem…

http://objectmix.com/axapta/787699-extract-menuitemname-calling-form.html

There is another thread of the same in another forum; I guess it’s yours. You got some answers there.

In general, you should add a parameter to the menu item (an enum is recommended), read the value in the form and set Visible to No for the datasource field (in code).