1. Please ask your question in the Italian language forum, or ask in English.
Having said that:
2. You shouldn't use Copy & Paste; use Set Variable & Set Field
3. To implement your check, use something like:
Set Variable [ $supplierID ; SupplierPortal::supplierID ]
If [ not isempty ( Filtervalues ( $supplierID ; List ( Invoices::supplierID ) ) ) // means there already is a related record with that supplierID ]
# else go and create your new record, using $supplierID with Set Field
unfortunately nobody answer me in italian. Than I should continue discussion to you. I try what you wrote, but I find the same problem. Is a little difficult to me, beause I don't understand to well how running the variables. I'm a self taught , sorry. If I send you the file, think you possible to adjuste it for me?
sorry. If I send you the file, think you possible to adjuste it for me?
Yes, but don't send it to me; post it here, please.
Sorry, I didn't find the spot where you say you use the script, but please note the following points:
• when creating a variable, you cannot use a space in the name; you should also avoid special characters like "|" in names (tables, fields and variables)
• in the sample code, I suggested using the FilterValues() function. What you used in your script was Filter(); that will not work.
• again, instead of Copy & Paste, use the combination of
Set Variable [ $variableName ; OneTable::sourceField ] / Set Field [ OtherTable::targetField ; $variableName ]