Hi ARSListers,
I have been looking at the Java API but am stumped by Qualifiers.
String name1 = "Demo";
String swd = "etno";
String sname = "dclha002";
Integer tcpport = 8001;
Integer rpcnum = 0;
ARServerUser context=new ARServerUser(name1,swd,"",sname, tcpport);
// Check and verify user login:
try {
// If User Pass/Acct name is wrong, this gens an error.
context.login();
} catch( ARException e ) {
System.out.println( "Login Error : " + " Possible Bad password or
acct name. " );
//This return ends all further processing and exits...
return;
}
List<ActiveLink>
aLinkObjs=context.getListActiveLinkObjects("AST:WorkLog");
int x = 0;
for (int i = 0; i < aLinkObjs.size(); i++) {
System.out.format("\n%20s%60s\n\n", i, aLinkObjs.get(i).getName());
//ActiveLink alink = aLinkObjs.get(x);
try{
QualifierInfo encryptedQual =
aLinkObjs.get(i).getQualifier();
System.out.println(encryptedQual.toString() );
RelationalOperationInfo qualEnglish =
encryptedQual.getRelationalOperationInfo();
System.out.println("Qual : "+ qualEnglish.toString());
} catch (Exception e){
System.out.println("no Qualification\n");
}
if (aLinkObjs.get(i).toString().contentEquals("ASI:AWL:Close_100") )
{
x = i ;
// System.out.println(x);
}
}
context.logout();
}
I can get the names of the Active links associated with the named form
(in this example I used AST:WorkLog)
But I cannot seem to decode the Qualifier. All I get from the output is
:-
1
SHR:SHR:Help_003_CheckOnlineHelpInstall_E
[Operation=4,Operand Left=[Operation=2,Operand Left=[Operand
Type=[type=2],Operand=$LASTCOUNT$],Operand Right=[Operand
Type=[type=2],Operand=0]],Operand Right=<null>]
Qual : [Operation=2,Operand Left=[Operand
Type=[type=2],Operand=$LASTCOUNT$],Operand Right=[Operand
Type=[type=2],Operand=0]]
I just need some help in decoding the Qualifier. Anyone got any ideas?
Thanks in advance!!
David Morgan
Senior Technical Consultant
Tiberone Technologies Limited
Golden Cross House
8 Duncannon Street
London WC2N 4JF
Ph: +44 (0) 207 484 5069
Fax: +44 (0) 870 8310 381
Mob: +44 (0) 7876 450102
www.tiberone.com <http://www.tiberone.com/>
_______________________________________________________________________________
UNSUBSCRIBE or access ARSlist Archives at www.arslist.org
Platinum Sponsor:[email protected] ARSlist: "Where the Answers Are"