Hello,
Im trying to filter invoices left list based on two entry transactions.
Here is what I came up with:
$ACTION #************************************************************************************************************** Case ACTION When "FILTRE" : Gosub ZFILTRE Endcase Return ZFILTRE If GUSER = "ADMIN" and GFONCTION1 = "GESSIH" Then Case GFLAG When "FC1" CRITERE+= " [F:SIH]SIVTYP = 'FC'" When "FC2" CRITERE+= " [F:SIH]SIVTYP = 'RE'" Endcase Endif Return
It works well and the left list only displays invoices of the desired type.
the problem is that the selections no longer work:
I can't add more filter in advanced selection, let's say [F:SIV]INVSTA=3 for example.
Only what is defined in SPESIH will be used.
To summarize, I would like to use SPESIH in order to add a filter to the existing selection rather than overwriting everything.
Is it possible ?
Thanks in advance for your precious help