 |
SoftTree Technologies
Technical Support Forums
|
|
Author |
Message |
swapswire
Joined: 22 Jun 2007 Posts: 7
|
|
Java API - method JobPropertyEx |
|
Hi,
I am attempting to use the method JobPropertyEx and retrieve values for a configurable set of properties and am coming across the following problem. If I specify the property list "ACCOUNT,COMMAND,HOST" I am getting back something along the lines of:
<Command>tab<Host>
I was anticipating that it would return:
tab<Command>tab<Host>
The issue is that unless I can parse the StringHolder using getToken and get back a number of tabs consistent with the number of properties requested I cannot use this method. I would never know which value relates to which property.
Any suggestions or advice welcome?
Can I also put in an enhancement request that there are methods returning lists of jobs/folders/properties etc return an array of values (or even HashTable or TreeMap) as well as StringHolder.
Thanks
Peter
|
|
Wed Apr 30, 2008 7:45 am |
|
 |
SysOp
Site Admin
Joined: 26 Nov 2006 Posts: 7949
|
|
|
|
I guess it should return tab<Command>tab<Host> in case ACCOUNT is empty. This could be a bug.
As a suggestion, you can fetch one property at a time, using either JobProperty or JobPropertyEx. The result will be a single value and you will not need to parse packed strings returned for multi-property results.
BTW, as a status update for your other post regarding web-browser refresh issues with the web interface, this issue is still in the queue. I don't have an ETA as we don't yet know the cause of it and so cannot estimate what is required to fix it.
|
|
Wed Apr 30, 2008 10:58 am |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|
|