
Create records from dynamic multiple choice
Hi guys,
I hit a bump trying something new:
I have a dynamic multiple choice field called 'Keuze kritieke fases'
I have a subtable 'Kritieke fases'.
I have a button that I gave following code on click:
let xCurrRec := Id;
for i in 'Keuze kritieke fases' do
let j := (create 'Kritieke fases');
j.(Omschrijving := text(i));
j.(Projecten := xCurrRec)
end
So the goal is to have the multiple choice list as an easy way to quickly input a few records (1 record per 'Kritieke fase'), but still be able to tweak the field 'Omschrijving' depending on the case.
Except I'm getting a very strange output... (Image below, I select 3 choices, I get one empty record and one with 3 completely different choices concatenated). Anyone ideas?
-
And here's the direct link: https://www.dropbox.com/s/qhrs8f6htf2sctj/Used%20Cars.ninox?dl=0
Steven