Skip to main content
Known Participant
Sep 19, 2022 9:39 AM UTC
Question

pickerFieldRecords issue when updating

I'm using a pickerfieldrecords. When i'm updating the interface and unselect one of the choices that came from the create, I save but it doesn't change the data when I access it again.


9 replies

Participating Frequently
Sep 19, 2022 9:41 AM UTC

I think the values are not getting updated in your database when you are removing them it is having that particular entry there try to remove the mappings from the database.

joaoc1131Author
Known Participant
Sep 19, 2022 9:42 AM UTC

how do you suggest doing it 

Participating Frequently
Sep 19, 2022 9:44 AM UTC

I will suggest to delete the entries every time you are changing anything before inserting the new ones if you need them for audit you can have a Active flag in your database which you mark to false before creating a new entry.

harshitb6843
Brainy
Sep 19, 2022 9:42 AM UTC

Interface only saved the code. Not the state of the components, unless you hard code the values in the local variables or set them as default values in the rule inputs. 

joaoc1131Author
Known Participant
Sep 19, 2022 9:45 AM UTC

why doesn't this problem happen when using for example, dropdown?