Hi Harsh, I tried this , but does not have any impact. When i restart the axapta , the property backs to original.
regards Akash --- "Harry (Harshawardhan Deshpande" <[EMAIL PROTECTED]> wrote: > hi > > export the class, change property in the xpo file > and reimport the class. > > regards > > harshawardhan > > Akash <[EMAIL PROTECTED]> wrote: > 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 > > 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 the > Yahoo! Terms of Service. > > > > --------------------------------- > Yahoo! Mail > Stay connected, organized, and protected. Take the tour __________________________________ Yahoo! Mail Mobile Take Yahoo! Mail with you! Check email on your mobile phone. http://mobile.yahoo.com/learn/mail ------------------------ Yahoo! Groups Sponsor --------------------~--> Has someone you know been affected by illness or disease? Network for Good is THE place to support health awareness efforts! http://us.click.yahoo.com/Rcy2bD/UOnJAA/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/