I figured it out.
If you click on a value that is EMPTY (no field contents whatever), then it will not function with Error Capture.
There needs to be some value that is "tested" in Find Mode, and only then will Error Capture work.
Instead, I set up a Script Step that uses "IsEmpty" first. If the field is empty, then it display a Custom Dialogue as an "If".
It now works.
The problem was trying to Search/Find when copying an Empty Field.
I see no need for the Commit step.
Could be improved. There are several problems with using the clipboard, for one thing.
Consider the following mods.
Note that it is not necessary to show all records before performing a find.
But why do you have tables Factures and Factures 2?
If [ isEmpty( Factures 2::facture tracking no )]
Show Custom Dialog [ "No search results."]
Set Variable [ $trackingNumber; Factures 2::facture Tracking No ]
Close Window [ Name: "Factures"; current file]
New Window ( etc etc)
Go to Layout [ "Factures - All - (concise)" (Factures)]
Enter Find Mode [ Pause : Off ]
Set Field [ Factures::facture tracking no; $trackingNumber ]
Perform Find [ ]
Thanks so much, Bruce
I didn't know you do not need to show all records before a Find.
And I will use Set Variable instead of clipboard paste from now on.
Thanks again. Cheers.