very bad idea. You are changing code in aot on runtime, and unless you change it back, it will be like that next time you open the form, and also all other places this field is used. There might even be a problem with missing X++ license, or if the user doesn't have access to SysDevelopment.
________________________________ Fra: [email protected] [mailto:[email protected]] På vegne af somanna gl Sendt: 5. februar 2009 04:45 Til: [email protected] Emne: Re: [development-axapta] How to show field hidden by user in X++ str Property; TreeNode TreeNode; str Name; ; Name = "CustTable"; TreeNode = TreeNode::findNode("Data Dictionary\\Tables\\" /*+ Table*/); if (TreeNode) { ttsbegin; Property = TreeNode.AOTgetProperties(); Property = SetProperty(Property, "visible", "Yes"); TreeNode.AOTsetProperties(Property); TreeNode.AOTcompile(); TreeNode.AOTsave(); } ________________________________ From: christian.myrvold <[email protected] <mailto:christian.a.myrvold%40gmail.com> > To: [email protected] <mailto:development-axapta%40yahoogroups.com> Sent: Monday, February 2, 2009 6:45:33 PM Subject: [development-axapta] How to show field hidden by user in X++ Hey everyone, I've searched both the group postings and google for this, and haven't found anything yet. I need to either: 1. Show a field in a form immediately after a user hides it (so it looks like the "hide functionality" doesn't work), or 2. Disable the hide functionality when a user right clicks on the field. I would say the the first is preferrable, if it's at all possible. Sincerely, Chris [Non-text portions of this message have been removed]

