AnsweredAssumed Answered

Scripting a find request

Question asked by user25183 on Mar 4, 2018
Latest reply on Mar 4, 2018 by user25183

I want to find a set of invoices with 2 criteria "The Year" and "The Type".

I have this script that receive ScriptParameter  "2015" an "TYPE1" for example

 

If [$$Year&$$Type]

     Enter Find Mode [Pause : Off]

     Set field [Invoice::Date;$$Year]

     Set field [Invoice::Type;$$Type]

     Perform Find[]

Else If [$$Year]

     Enter Find Mode [Pause : Off]

     Set field [Invoice::Date;$$Year]

     Perform Find[]

Else If [$$Type]

     Enter Find Mode [Pause : Off]

     Set field [Invoice::Type;$$Type]

     Perform Find[]

Else If [$$Year=$$Type]

     Show All Records

End If

 

the Year part work fine, but not the Type.

I have try to put GetAsText($$Type) instead of just $$Type don't work it show all Type.

 

What is it I'm missing for global variable of text?

Outcomes