Dit script werkt prima met tekstvelden, maar niet wanneer ik wil zoeken op een getal.
Het script moet de zoekactie uitvoeren in een calculatieveld dat als resultaat een numerieke waarde heeft.
Het globale veld van waaruit de zoekactie start is ook van het numerieke type.
Ook als ik de zoekactie uitvoer vanuit de find mode, dus zonder script, krijg ik de melding "no records match this find criteria", terwijl die er wel degelijk zijn.
Hieronder het script.
Wat zie ik over het hoofd ?
Alvast bedankt voor jullie input.
#PURPOSE: To filter the current found set of Transaction by filter criteria inputted by the user.
#Start, End Context: Transaction, Transaction
#Globals: None
#Parameters: None
#Results: None
#2014-06-20, EB, Created script.
#2017-04-28, JH, Now using JSON to pass parameters.
#2017-09-01,jk, duplicated from find.CON, adapted
#2017-09-09, jk, adapted variables to global variables so perform script (sort) could be integrated
#----------TRAP INTERFACE ERRORS-----------
Allow User Abort [ Off ]
Set Error Capture [ On ]
#----------POPULATE SCRIPT PARAMETERS AND VARIABLES-----------
Set Variable [ $$selectionSelectionSize; Value:Get( ActiveSelectionSize ) ]
Set Variable [ $$selectionStartPosition; Value:Get( ActiveSelectionStart ) ]
Set Variable [ $$transactionnumber; Value:bTRANS_start_dsc::zzgTransactionnumber ]
// Set Variable [ $$transactiontype; Value:bTRANS_start_dsc::zzgTransactiontype ]
Set Variable [ $$amount; Value:bTRANS_start_dsc::zzgAmount ]
Set Variable [ $$vendor; Value:bTRANS_start_dsc::zzgVendor ]
Set Variable [ $$transactionstate; Value:bTRANS_start_dsc::zzgTransactionstate ]
#----------FILTER LIST OF INSPECTORS BASED ON FILTER CRITERIA-----------
Freeze Window
#Omit all records if the user didn't enter anything into filter fields
Set Variable [ $criteriaPresentFlag; Value:Case( not IsEmpty ( $$transactionnumber) or not IsEmpty ( $$vendor) or not IsEmpty ( $$amount) or not IsEmpty ( $$transactionstate ) ; 1 ; "" ) ]
If [ $criteriaPresentFlag = 1 ]
Enter Find Mode [ ]
Set Field [ bTRANS_start_dsc::Transactionnumber; $$transactionnumber ]
// Set Field [ bAPP_Transactiontype::Codevalue; $$transactiontype ]
Set Field [ bCON.vendor::NameFirst_NameLast; $$vendor ]
Set Field [ bBUYline::zzcTotalofBUYlines_VATin; $$amount ]
Set Field [ bAPP_Buystate::Codevalue; $$transactionstate ]
Question
idmix.be
Kan iemand me helpen met het volgende ?
Ik heb een script, die een perform find uitvoert.
Dit script werkt prima met tekstvelden, maar niet wanneer ik wil zoeken op een getal.
Het script moet de zoekactie uitvoeren in een calculatieveld dat als resultaat een numerieke waarde heeft.
Het globale veld van waaruit de zoekactie start is ook van het numerieke type.
Ook als ik de zoekactie uitvoer vanuit de find mode, dus zonder script, krijg ik de melding "no records match this find criteria", terwijl die er wel degelijk zijn.
Hieronder het script.
Wat zie ik over het hoofd ?
Alvast bedankt voor jullie input.
Edited by idmix.be4 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.