Re: Java API 7.1 retrieve example
Thanks for your pointer. I also wanted to share with the list a snippet that I received in a private reply: public class Entries { public static void main(String[] args) throws ARException { ARServerUser context = new ARServerUser("Demo", "", Locale.getDefault().toString(), "localhost"); List fields = context.getListFieldObjects("User"); int[] ids = new int[fields.size()-1]; int index = 0; for (Field field : fields) { if (field.getFieldID() != 15) { ids[index++] = field.getFieldID(); } } List entries = context.getListEntryObjects("User", (QualifierInfo) context.parseQualification("User", "'101'=\"Demo\""), 0, 0, null, ids, false, null); System.out.println(entries.size()); } } Regards, Michiel On 10/30/07, Carey Matthew Black <[EMAIL PROTECTED]> wrote: > Michiel, > > Point the Java programmer at the JavaDriver source code. Be warned, I > found the v7.1 windows install to be missing two class files. So if > your missing them then he will not be able to compile the JavaDriver > himself, but it also comes pre-compiled in a JavaDriver.jar file in > the windows install too. So he can use it, and look at most of the > code. In the specific case that your talking about I think he should > have access to all of the ARS API java code that he would need to look > at. > > YMMV. > > -- > Carey Matthew Black > Remedy Skilled Professional (RSP) > ARS = Action Request System(Remedy) > > Love, then teach > Solution = People + Process + Tools > Fast, Accurate, Cheap Pick two. > > > On 10/30/07, Michiel Beijen <[EMAIL PROTECTED]> wrote: > > Good morning dear listers, > > > > I'm not a Java guy but mere a simple Remedy consultant... currently I'm > > working on a project in which we'll be interfacing with a middleware > > solution and I have to explain to a java programmer how to retrieve > > records from a form in Remedy. > > > > I already have a sample script for creating new records, that works. I > > also know how to retrieve one record. But does anybody have a sample > > script for retrieving multiple records from a form based on a > > qualification that he or she wants to share? > > > > Many thanks in advance! > > > > -- > > Met vriendelijke groet / Kind regards > > Michiel Beijen > ___ UNSUBSCRIBE or access ARSlist Archives at www.arslist.org ARSlist:"Where the Answers Are"
Re: Java API 7.1 retrieve example
Michiel, Point the Java programmer at the JavaDriver source code. Be warned, I found the v7.1 windows install to be missing two class files. So if your missing them then he will not be able to compile the JavaDriver himself, but it also comes pre-compiled in a JavaDriver.jar file in the windows install too. So he can use it, and look at most of the code. In the specific case that your talking about I think he should have access to all of the ARS API java code that he would need to look at. YMMV. -- Carey Matthew Black Remedy Skilled Professional (RSP) ARS = Action Request System(Remedy) Love, then teach Solution = People + Process + Tools Fast, Accurate, Cheap Pick two. On 10/30/07, Michiel Beijen <[EMAIL PROTECTED]> wrote: > Good morning dear listers, > > I'm not a Java guy but mere a simple Remedy consultant... currently I'm > working on a project in which we'll be interfacing with a middleware > solution and I have to explain to a java programmer how to retrieve > records from a form in Remedy. > > I already have a sample script for creating new records, that works. I > also know how to retrieve one record. But does anybody have a sample > script for retrieving multiple records from a form based on a > qualification that he or she wants to share? > > Many thanks in advance! > > -- > Met vriendelijke groet / Kind regards > Michiel Beijen ___ UNSUBSCRIBE or access ARSlist Archives at www.arslist.org ARSlist:"Where the Answers Are"
Java API 7.1 retrieve example
Good morning dear listers, I'm not a Java guy but mere a simple Remedy consultant... currently I'm working on a project in which we'll be interfacing with a middleware solution and I have to explain to a java programmer how to retrieve records from a form in Remedy. I already have a sample script for creating new records, that works. I also know how to retrieve one record. But does anybody have a sample script for retrieving multiple records from a form based on a qualification that he or she wants to share? Many thanks in advance! -- Met vriendelijke groet / Kind regards Michiel Beijen __ MANSOLUTIONS Energieweg 60-62 3771 NA Barneveld The Netherlands Tel. +31-(0)612968592 Mail [EMAIL PROTECTED] Internet http://bsm.mansolutions.nl ___ UNSUBSCRIBE or access ARSlist Archives at www.arslist.org ARSlist:"Where the Answers Are"