Updating selected values of a multi select field via Deluge
Hello,
I have a form with a multi select field with a couple of options. My form already has a few thousand entries, and now I need to add and select a third option for that multi select field. This is the code I'm trying to use:
- //Fetching all records of the form Nueva_venta
- todas = Nueva_venta[ID != 0];
- //Go through each record and select the new option
- for each entry in todas
- {
- entry.Acceso.select ("operaciones@simstore.ec");
- }
The error I get is: 'Acceso' does not exist in this form
I was also thinking that instead of entry.Acceso.select ("
operaciones@simstore.ec"); I could use entry.Acceso = "
operaciones@simstore.ec" but then the other selected records would be erased. What is the proper way to select a new option on a multi select field for old records?