Dynamic Dropdown Items

Hi @shaun - while working with my students we noticed erroneous behaviour in tutorials Storing and Displaying Data tutorial and Multi-User Apps. The code which doesn’t work as it should is for example:

new_row = app_tables.reminders.add_row(description=self.new_reminder_box.text, done=False)
l = self.repeating_panel_1.items + [new_row]
    
self.repeating_panel_1.items = l

The solution is similar to the tip you gave to @walter.anson.327. The code can be replaced by

app_tables.reminders.add_row(description=self.new_reminder_box.text, done=False)self.repeating_panel_1.items = app_tables.reminders.search()

For beginners, the tutorials are a bit misleading at that point.

1 Like