Create records from dynamic multiple choice
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)
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?
Maybe these cascading dynamic choice fields could help you Joren :