Could you try following method? Make modifications, export the modified class, restart axapta -:) and import the modified class; Best luck.
-----Original Message----- From: Axapta-Knowledge-Village@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Akash Sent: Tuesday, May 10, 2005 3:59 AM To: Axapta-Knowledge-Village@yahoogroups.com Subject: [Axapta-Knowledge-Village] Modify the Class property Hi All, I need to change the Class property from "Server" to "Client" of a class in the Customer Application. But the customer licence doesnot have access/rights to modify any class properties. Hence i wrote a job using the tree node class to modify the class property. When i run the job, the property changes from "Server" to "client" , but this does not saves/refreshes permanently , as when i close and re-open the axapta the property change is back again to "Server" . Is there any otherway to modify the class property? Here is the job : static void ChangeClassProperties(Args _args) { xInfo xInfo = new xInfo(); treeNode t = xInfo.rootNode().AOTfindChild("Classes"); treeNode child; treenodeIterator it; str properties; str properties1; str classes; str searchType = "Client"; ; it = t.AOTiterator(); child = it.next(); while (child) { classes = child.treeNodeName(); if(classes == "My Class") { properties = child.AOTgetProperties(); info(properties); properties1 = setProperty(child.AOTgetProperties(),"RunOn",searchType); info(properties1); child.AOTsetProperties(properties1); child.AOTsave(); child.AOTrefresh(); } child = it.next(); } } Regards Akash __________________________________ Do you Yahoo!? Yahoo! Mail - Helps protect you from nasty viruses. http://promotions.yahoo.com/new_mail Sharing the knowledge on Axapta. Yahoo! Groups Links ------------------------ Yahoo! Groups Sponsor --------------------~--> What would our lives be like without music, dance, and theater? Donate or volunteer in the arts today at Network for Good! http://us.click.yahoo.com/Tcy2bD/SOnJAA/cosFAA/kGEolB/TM --------------------------------------------------------------------~-> Sharing the knowledge on Axapta. Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/Axapta-Knowledge-Village/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/