Okay, I've created the QREL. That took some work to get it created without it throwing an error. However, when I try to use the QREL in the tab, it crashes the entire system. I've tried first on a different tab because the lrel_attachments_requests table does not contain the delete_flag, it's in the attmnt table and I wanted to try it in a simpler situation first.
This is the tab that CA Global Services built for us when we first implemented:
<PDM_MACRO name=tab title="Impact Customers ($args.z_brel_impact_customer.length)" height=300 src="OP=SEARCH+FACTORY=zlrel_impact_customer+QBE.EQ.tkt_persid=$args.persistent_id+QBE.EQ.delete_flag=0+KEEP.TKT_PERSID=$args.persistent_id+KEEP.parentFac=$prop.factory">
I changed the $args.z_brel_impact_customer.length to z_qrel_impact_customer.length.
The QREL, z_qrel_impact_customer, has the Query Information set to:
DYNAMIC {
WHERE "delete_flag = 0 AND tkt_persid = ?" ;
}
I had tried creating it with the Query Information as follows, but it errored on Save and set to Test Mode until I changed it to the above.
DYNAMIC {
WHERE delete_flag = 0 AND tkt_persid = ? ;
PARAM_NAMES persistent_id ;
}
Thanks!