Use the below stmt after 'super()' in Init method of the form. element.control(Control::xx).visible(false); // xx is the form control name (Group/Field).
Hope this helps! Regards, Diwakar ________________________________ From: shamika <shamik...@yahoo.com> To: development-axapta@yahoogroups.com Sent: Thursday, 17 September, 2009 10:06:02 PM Subject: [development-axapta] FormControl Declaration Problem Hello, I want to show one formcontrol based upon dataareaid. But that control is attached to respective table field group and that field group is used as is in Form Design - > Group. So basically I cannot setup "AutoDeclaration" property to Yes as it is disabled. So When I tried to declare the same in CLassDeclaration method as FormControl _nameofcontrol; and then in init() -> I wrote _nameofcontrol. visible(false) based upon dataareaid. It gives me error that " FormControl is not initialized" . How am I suppose to initilize it? Or Is there any other method to handle this situation? Please advise me. Thanks, Sam Add whatever you love to the Yahoo! India homepage. Try now! http://in.yahoo.com/trynew [Non-text portions of this message have been removed]