0

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?

6replies Oldest first
  • Oldest first
  • Newest first
  • Active threads
  • Popular
Like Follow
  • 1 mth agoLast active
  • 6Replies
  • 67Views
  • 2 Following