This is non-trivial. I have described my function on the list in the past
but cannot find that post (perhaps in an archive?). I use it in a binary
that "dumps" an ARS server's workflow and table structures into an ASCII
file that I can then search in an editor.
>From the function pre-amble:
// builds a text string from an AR Qualifier Struct
ArUtErr
ArQualDecode ( // decodes a qualifier structure
ArSch * pS, // a loaded schema
ARQualifierStruct * pQ, // returned string must be freed
char * * vTgt // by caller and can be used
) // in ARLoadARQualifierStruct()
{
// this is pretty recursive.
// first, the structure of pQ:
// op
// left, right (two new, same structs)
// not (one more same struct)
// relopstruct (a simpler field / value struct)
// so how do we do it?
// we will always produce a string something like
// ( ?? AND ?? ) or
// ( ?? OR ?? ) or
// ( NOT ?? ) or
// ( A <= B )
// the ?? is returned by a recursive call to this routine
:Good luck!
Ben Chernys
Senior Software Architect
Software Tool House Inc.
Canada / Deutschland / Germany
Mobile: +49 162 175 0956 GMT + 1 + [ DST ]
Email: <mailto:[EMAIL PROTECTED]>
mailto:[EMAIL PROTECTED]
Web: <http://www.softwaretoolhouse.com/>
http://www.softwaretoolhouse.com
A free notepad for Diary fields:
<http://www.softwaretoolhouse.com/downloads/DiaryFieldEditor.htm>
http://www.softwaretoolhouse.com/downloads/DiaryFieldEditor.htm
An ARS integration, import, migration, batch facility:
http://www.softwaretoolhouse.com/
_____
From: Action Request System discussion list(ARSList)
[mailto:[EMAIL PROTECTED] On Behalf Of LJ Longwing
Sent: January 25, 2008 8:55 PM
To: [email protected]
Subject: Java 7.1 API Assistance
**
I'm trying to write something for Remedy in the 7.1 Java API. I'm trying to
use the QualifierInfo object and having difficulty translating it to
something 'readable'. I'm hoping someone has written something that takes
care of parsing the qual and turns what it gives you into something like
'Submitter' = "Demo" AND 'Create Date' > "1/1/2008"
Any and all assistance is appreciated in this endeavor
__Platinum Sponsor: www.rmsportal.com ARSlist: "Where the Answers Are"
html___
_______________________________________________________________________________
UNSUBSCRIBE or access ARSlist Archives at www.arslist.org
Platinum Sponsor: www.rmsportal.com ARSlist: "Where the Answers Are"