Skip to main content
sivanagamalleswarit0001
Inspiring
March 17, 2023
Solved

Custom Picker Field inside a editableGrid/gridlayout

  • March 17, 2023
  • 6 replies
  • 0 views

Any suggestions around it:

I have requirement where user want to edit a column in editable grid and that column should be pickerfield.

I have a table to store existing data and pulling from it on grid. For picker data, i have a reference table that pulls all the populating data as needed.

I am getting an error while i try to remove the existing column data and fetch new data.

I tried different ways to define this but somehow ended up facing different issue for each attempt.

ONE ATTEMP:

Below code is one way of my attempts!!

TWO ATTEMPT:

This is working fine if I do something like below but is not appropriate for business use case: 

local!existingdata: 

Record type uuid: 5bf7f7cb-2b7c-430f-93b1-102a13b4f3af from error is the Record that pulls existing data.

Best answer by stefanhelzle0001

So you have a list of record in that local? You cannot store a single value in a list of records. Using fvitem is the right way. Add a condition to the selectedLabels parameter to prevent that error.

6 replies

stefanhelzle0001
Brainy
March 18, 2023

Remove that dot and it should work.

sivanagamalleswarit0001
Inspiring
March 18, 2023

Thank you responding.

That was my first attempt and it dint work either.

stefanhelzle0001
Brainy
March 18, 2023

What data type is local!newData? Why do you save to a different variable?