⚠ In case you've missed it, we have migrated to our new website, with a brand new forum. For more details about the migration you can read our blog post for website migration. This is an archived forum. ⚠

  •     

profile picture

relation table with itself



bendiro

bendiro
  • profile picture
  • Member

Posted 10 June 2020 - 20:35 PM

Hi,
I'm trying to learn how to use the Grocery CRUD and I'm a beginner.
I have a "TABLES" table with the ID, NAME and JOIN_WITH fields.
I show the table on the screen without problems, but now I would like to add a multi select field populated with an array (ID, NAME).
To get an array that contains all the records of "TABLES" and that uses ID as key and uses NAME as value, do I have to create a separate function or is there an easier way?
Thanks
Roberto