#1
|
|||
|
|||
Programmatically change xml option
Hello
Is possible to change programmatically an xml option? I mean during for example an action.I see that WMConfig class hasn't set methods... Alessandro
__________________
alessandro niccoli pescia(PT)-italy |
#2
|
|||
|
|||
Re: Programmatically change xml option
Yes, it is possible. but this require to start a distribution task that save the file back to the server.
a java example: MMBuild build MMBuildUtil.getCurrentBuild(); Element options = build.getOptionsElement(); tree=new Element("Test"); options.addContent(tree); build.addChangeDescription("Remember to click Distribute now!"); build.apply(true); |
#3
|
|||
|
|||
Re: Programmatically change xml option
I mean during execution,not changing xml files.
For example I'd like to change at run time scan bom levels, but in some cases and not for all users.
__________________
alessandro niccoli pescia(PT)-italy |
#4
|
|||
|
|||
Re: Programmatically change xml option
try something like:
List<Element> optionsAsElements =WMConfig.getInstance().getOptionsAsElements("MyOption"); optionsAsElements.get(0).setText("myValue"); |
Currently Active Users Viewing This Thread: 2 (0 members and 2 guests) | |
|
|