Thanks for the responses. I tried what somanna suggested, but it didn't work. I talked with our client, and they said that it's good enough that the whole form cannot be altered (which can be done with parameters in the form). At least it solves the problem, although it's a little like beating a fly with a sledgehammer.
But it would be nice to know if it's even possible to do such a thing at runtime, denying the ability to alter a form field instead of the whole form. --- In [email protected], "Dahlsgaard Jan" <j...@...> wrote: > > 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 <christian.a.myrv...@... <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] >

