Link tables during import CSV
Does anyone know if this is possible - or do I have to run a script after import ?
I know how to link two tables from button where they both have for example same type of field for a member number , but would be excellent if I could do it via the import to the child.
Rgds
Leo
11 replies
-
I was not able to get Ninox to recognized a number in a CSV to be the record Id of a reference field. It looks like you will need to import the reference record Id into another field then use a button to create the links.
-
sorry Fred is occupied the 172 hour then I return
-
Hi again Fred I am all yours now.
I did your script (changed members yo medlemmer) - buy iy doesn't do anything.
To further explain - I only want to link the records from Betalinggsliste for members who are present in medlemmer. The rest of the imported records should only be in the table Betalingsliste for information purpose - these records are members who once were members of this union but we need to store their payment history.
Hope this gives sense,
Maybe we could have an if statement in the original link script which sys something ala if the Betalingsliste,Medlemsnr does not exist in meters then skip the linkingscript and go to next record, but how to do that I don't know. I think that you in Ninox can say if exist then link else skip - so maybe this is a way.
Any suggestions ?
-
SOLVED
I changed the original script to following :
for j in select medlemmer do
let myText := j.Medlemsnr;
for i in (select Betalingsliste where Medlemmsnr = myText) do
i.(medlemmer := j)
end
endnow I have all the existing records in medlemmer linked to the correct records in Betalingsliste, and all the non existing still resides in Betalingsliste.
Thanks for you help until now - probably not the last time.
Have a nice evening
Leo
Content aside
- 10 hrs agoLast active
- 11Replies
- 27Views
-
2
Following