Hi Larry, As far as i know, you will be able to control the "AND 'distribution' != "Internal" " from qualification bar, however you will be relying on client for "Qualification' string. Clients will be responsible for completing the brackets appropriately otherwise meaning of entire qualification might change.
This goes back to what your requirements are and you will need to educate clients of the web-services accordingly e.g. 1. Client can pass this in XPATH qualification(notice incomplete bracket) Workgroup="REMEDY" AND ( word="email" OR word="remedy" You append this "AND 'distribution' != "Internal" making your entire qualification look like this Workgroup="REMEDY" AND ( word="email" OR word="remedy" AND 'distribution' != "Internal" 2. Client can pass this in XPATH qualification(notice brackets are completed) Workgroup="REMEDY" AND ( word="email" OR word="remedy") You append this "AND 'distribution' != "Internal" making your entire qualification look like this Workgroup="REMEDY" AND ( word="email" OR word="remedy") AND 'distribution' != "Internal" -->I believe this might be the qualification you would be looking for. In a nutshell, you would be dependent on client of web-service for XPATH-Qualification piece. Hoping I did not confuse you :). Thanks Chintan. --- On Wed, 6/8/11, L G Robinson <n...@ncsu.edu> wrote: From: L G Robinson <n...@ncsu.edu> Subject: Re: Compound qualification for a GetList web service To: arslist@ARSLIST.ORG Date: Wednesday, June 8, 2011, 12:09 PM ** Hi Chintan, Thanks for the reply. I realize that I can mix and match fields from the form and from the XPATH but I am unclear on how to combine them to achieve the desired result. Maybe an example will help: Suppose that XPATH(/ROOT/qualification) is something like the following: <urn:qualification>Workgroup="REMEDY" AND ( word="email" OR word="remedy")</urn:qualification> What I want to actually send to the server as the query is the following: Workgroup="REMEDY" AND ( word="email" OR word="remedy" AND 'distribution' != "Internal" But I can not figure out how to combine XPATH(/ROOT/qualification) with the additional clause to achive the desired result. Thanks.Larry Larry Robinson Remedy Admin/DeveloperNC State University On Tue, Jun 7, 2011 at 8:32 PM, Chintan Shah <cbss...@yahoo.com> wrote: ** Hi Larry, Yes you can do it. In qualification bar, you should have an option of using either the field from the form or an element from XPATH. What you mentioned below should work. Thanks Chintan. --- On Tue, 6/7/11, L G Robinson <n...@ncsu.edu> wrote: From: L G Robinson <n...@ncsu.edu> Subject: Compound qualification for a GetList web service To: arslist@ARSLIST.ORG Date: Tuesday, June 7, 2011, 12:23 PM ** Hi Folks, I need some help formulating a qualification for a GetList web service. Simplistically, I want to do the following: (XPATH(/ROOT/Qualification)) AND ('distribution' != "Internal") But this is not syntactically correct. In words, I want to take whatever qualification the user has supplied and add the: ('distribution' != "Internal") clause to the qualification that gets passed to the service. 'distribution' is a field on the form being searched. Is there a syntax for this? Is it possible to build something like this using EXTERNAL()? I am just learning about creating and consuming ARS web services so any guidance and/or insights will be greatly appreciated. ARS 7.6.03Solaris 10Oracle 11.2.0.1.0 - 64bit Thanks.Larry _attend WWRUG11 www.wwrug.com ARSlist: "Where the Answers Are"_ _______________________________________________________________________________ UNSUBSCRIBE or access ARSlist Archives at www.arslist.org attend wwrug11 www.wwrug.com ARSList: "Where the Answers Are"