In returning the rows (1 text , 1 reference) from a table into from:
self.repeating_panel.items = anvil.server.call('get_rows))
i always see :
<LiveObject: anvil.tables.Row> Has an Ibanez acoustic circa 1980
<LiveObject: anvil.tables.Row>. graduated from Geneseo in 2
how do i traverse the reference properly to get at the data in referenced table
Hi @jbrow57! Welcome to Anvil and to the Anvil Forum!
Iâm not really sure what is your question⌠Are you saying that the data from Table Row is not properly displaying in your repeating panels?
If this is your problem, did you try using Data Grids? When you add a Data Grid you can remove the 3 default columns it starts with, the click on âAdd Columns from Data Tableâ and select the data table that you wish to show data.
Anvil will automatically create the columns from the data table as columns in the data grid. The Data grid structure has a repeating panel inside. Setting the items property of the data grid with a search iterator of that grid will automatically display the data inside the data grid.
I recommend you reading more in the Docs for Data Grid:
If you donât want to use data grids you can edit the template for the repeating panel you added. The template will have a item property accessible with self.item.
You can then put components in the Template and use data binding to bind values from the item to them.
For instance, if you want a Label to display the content of the Column âAâ of the data table you would use a code:
Youâre seeing the live row reference because one of the fields in your table is a link to the Users table. To avoid seeing that, put a label into that spot in the row template, and then use data binding to bind the text property of that label to one of the field in the Users table, e.g. self.item[âemailâ].
Hi @jbrow57! If @jshaffstallâs answer solved your issue, can you mark his response as the solution (by clicking the dots menu, then Solution)? That way if others are searching the forum for a similar issue, theyâll see that itâs been solved!