And the problem was gone!!!

Thank you, Sebastian!!

de Man Sebastiaan wrote:

Hi Rafael,

I can't really see where the problem is, however here is my method of getting a 
QualifierInfo, which I've copied and pasted several times over different 
projects and always works, perhaps you're not getting all the fields?

In my example the String GuiNr has the GUID field value in it, and I use it to 
find the entry. This compiles and works for v7.0

NameID Schema_name = new SchemaKey("AR System Email Messages")); FieldFactory fieldFactory = FieldFactory.getFactory();
        FieldCriteria fCrit = new FieldCriteria();
        fCrit.setRetrieveAll(true);
        // We'd like all types of fields
        Timestamp timestamp = new Timestamp(0);
        FieldListCriteria fListCrit = new FieldListCriteria(Schema_name, 
timestamp, FieldType.AR_ALL_FIELD);
        Field[] field = FieldFactory.findObjects(context, fListCrit, fCrit);
QualifierInfo qal = Util.ARGetQualifier(context, "'179' = \"" + GuiNr + "\"", field, null, Constants.AR_QUALCONTEXT_DEFAULT);
Hope this helps,

Sebastiaan de Man
Softlab Schweiz AG

-----Original Message-----
From: Action Request System discussion list(ARSList) [mailto:[EMAIL PROTECTED] 
On Behalf Of Rafael Bertolini
Sent: Donnerstag, 2. November 2006 18:33
To: [email protected]
Subject: Re: Java API - ARGetQualifier

Hi Jarl!

Got the same problem using condition = "\'Status\' = \"New\"";

MessageType: 2
MessageNum: 10000
MessageText: Error while parsing the qualifier (Error Code: 6)
AppendedText: Error position: 8
   at com.remedy.arsys.api.Proxy.ARGetQualifier(Native Method)
   at com.remedy.arsys.api.Util.ARGetQualifier(Util.java:1822)
   at br.com.icaro.ars.data.ARSForm.findEntries(ARSForm.java:271)
   at br.com.icaro.ars.data.ARSForm.main(ARSForm.java:388)

:(

Jarl Grøneng wrote:

Try this:
condition = "\'Status\' = \"New\"";

--
Jarl

On 11/2/06, Rafael Bertolini <[EMAIL PROTECTED]> wrote:

Hello guys!

I'm having problems to do a qualificated search using java api (ARS 6.3). Here is the code:

.
.
.
condition = "'Status' = \"New\"";
       try {
           QualifierInfo qualifier =
Util.ARGetQualifier(server, condition, fields, fields, Constants.AR_QUALCONTEXT_DEFAULT);
.
.
.

And here is the exception:

MessageType: 2
MessageNum: 10000
MessageText: Error while parsing the qualifier (Error Code: 6)
AppendedText: Error position: 8
   at com.remedy.arsys.api.Proxy.ARGetQualifier(Native Method)
   at com.remedy.arsys.api.Util.ARGetQualifier(Util.java:1822)
   at br.com.icaro.ars.data.ARSForm.findEntries(ARSForm.java:271)

It's complainning in the single quote after field's name. I've already try with field ID like this:
condition = "'7' = \"New\"";

but then it's complain at position 3.

I could print the fields of the form using api, and yes, there is the status field (7) there ;)

Any ideas?
--

       * Rafael Bertolini *
System Analyst
Ícaro Technologies
http://www.icaro.com.br         *Work:* +55 19 3731 8308
*E-mail:* [EMAIL PROTECTED]

*Fax:* +55 19 3731 8304
/
A informação transmitida destina-se apenas à pessoa ou entidade a quem foi endereçada e pode conter informação confidencial, legalmente protegida e para conhecimento exclusivo do destinatário. Se o leitor desta advertência não for o seu destinatário, fica ciente de que sua leitura, divulgação, distribuição ou cópia é estritamente proibida. Caso a mensagem tenha sido recebida por engano, favor comunicar ao remetente e apagar o texto do computador. Este ambiente está sujeito a monitoramento.

//The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. If you received this in error, please contact the sender and delete the material from any computer. This environment is subject to monitoring. /

_____________________________________________________________________
__________

UNSUBSCRIBE or access ARSlist Archives at www.arslist.org ARSlist:"Where the Answers Are"

______________________________________________________________________
_________

UNSUBSCRIBE or access ARSlist Archives at www.arslist.org ARSlist:"Where the Answers Are"






--

        * Rafael Bertolini *
System Analyst
Ícaro Technologies
http://www.icaro.com.br         *Work:* +55 19 3731 8308
*E-mail:* [EMAIL PROTECTED]

*Fax:* +55 19 3731 8304
/
A informação transmitida destina-se apenas à pessoa ou entidade a quem foi endereçada e pode conter informação confidencial, legalmente protegida e para conhecimento exclusivo do destinatário. Se o leitor desta advertência não for o seu destinatário, fica ciente de que sua leitura, divulgação, distribuição ou cópia é estritamente proibida. Caso a mensagem tenha sido recebida por engano, favor comunicar ao remetente e apagar o texto do computador. Este ambiente está sujeito a monitoramento.

//The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. If you received this in error, please contact the sender and delete the material from any computer. This environment is subject to monitoring. /

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

Reply via email to