GetFilter
Brought to you by:
jeffmurphy
|
From: Kurt S. <ku...@mi...> - 1997-01-13 10:00:54
|
Hi
Having a few problems accessing structures within ARSperl. It's more me
not understanding what is going on than anything else (I am very much a
perl novice). So, I have the following bits of code (all borrowed from
GetFilter.pl), don't quite print what I want.
(@filters=ars_GetListFilter($ctrl,$schemaname,0)) || die "can't get
filters: $a
rs_errstr";
foreach $filtername (@filters) {
print "filter: $filtername\n";
($finfo = ars_GetFilter($ctrl, $filtername))
|| die "error in GetFilter: $ars_errstr";
print "Name : \"".$finfo->{"name"}."\"\n";
print "Schema : \"".$finfo->{"schema"}."\"\n";
print "Exe on : ".Decode_opSetMask($finfo->{"opSet"})."\n";
print "Exe Order : ".$finfo->{"order"}."\n";
print "Enable : ".$finfo->{"enable"}."\n";
print "Query : ".$finfo->{"query"}."\n";
}
Example output:
Query: ARQualifierStructPtr=SCALAR(0x181498)
From GetFilter.pl we get the following output. What I would like to
understand is why field-id's are printed instead of values and sometimes
with SetField operations, the values are not printed with them.
actionList :
Action 1:
Notify:
notifyText: Your group has been assigned ticket
$1$.
It is a $536870914$ call from $536870915$.
user: $536870918$
notifyMechanism: User Default
notifyMechanismXRef: 0
subjectText: Group Assignment $1$ - $536870914$ -
$5368
70915$
fieldIdListType: Changed
Field List: ARRAY(0x19e248)
Set Fields example:
Action 2:
Set Fields:
fieldId: 536870913
Arithmetic:
Expression: + $4$ ) +
Any help would be appreciated.
bye
Kurt
|