Excellent!  Thanks.  Switching to parseQualification rather than 
decodeQualification fixed it.

Thanks,
Lyle

From: Action Request System discussion list(ARSList) 
[mailto:[email protected]] On Behalf Of Axton
Sent: Tuesday, January 27, 2009 11:49 AM
To: [email protected]
Subject: Re: Java API Question

** http://www.mail-archive.com/[email protected]/msg26634.html

Axton Grams

The opinions, statements, and/or suggested courses of action expressed in this 
E-mail do not necessarily reflect those of BMC Software, Inc.  My voluntary 
participation in this forum is not intended to convey a role as a spokesperson, 
liaison or public relations representative for BMC Software, Inc.
On Wed, Jan 28, 2009 at 12:00 AM, Lyle Taylor 
<[email protected]<mailto:[email protected]>> wrote:
**

Hi All,



I'm trying to get started using the Java API and am running into something I 
don't understand.



I have the following code that simply queries CMT:People for everybody that has 
Unrestricted Access:



            ARServerUser srv = new ARServerUser(<user>, <password>, null, 
<server>, <port>);

            try {

                  srv.login();



                  int fields[] = {1, 4};

                  OutputInteger nMatches = new OutputInteger();

                  List<Entry> entries = srv.getListEntryObjects("CTM:People", 
srv.decodeQualification("'Unrestricted Access' != $NULL$"), 0, 0, null, fields, 
false, nMatches);



                  if ( nMatches.intValue() > 0 ) {

                        for (Entry entry : entries) {

                              String id = entry.getEntryId();

                              String str = entry.toString();

                        }

                  }

            } catch (ARException e) {

                  e.printStackTrace();

            }



The code compiles fine and runs but throws an exception when it tries to decode 
the qualification string.  I get the following error:



ERROR (402): Incorrect format in the definition file; (missing cond op -- 
'Unrestricted Access' != $NULL$)



If I understand correctly, the qualification shouldn't need a conditional 
operator, a relational operator should be just fine.  If I remove the 
qualification and simply pass null, it works without any errors.  Has anyone 
seen this error before and have an idea of what I might be doing wrong or 
missing?



Let me know if I need to provide more information.



Thanks,

Lyle Taylor


NOTICE: This email message is for the sole use of the intended recipient(s) and 
may contain confidential and privileged information. Any unauthorized review, 
use, disclosure or distribution is prohibited. If you are not the intended 
recipient, please contact the sender by reply email and destroy all copies of 
the original message.
__Platinum Sponsor: RMI Solutions ARSlist: "Where the Answers Are" html___

__Platinum Sponsor: RMI Solutions ARSlist: "Where the Answers Are" html___

_______________________________________________________________________________
UNSUBSCRIBE or access ARSlist Archives at www.arslist.org
Platinum Sponsor: RMI Solutions ARSlist: "Where the Answers Are"

Reply via email to