Hi!
In ignition perspective I have a text field binded to a data from a table
.../TablaInventario.props.data[0]['Clase equipo']
so it shows the data from column "Clase equipo" in row 0
I want to add a "next" button so this text field change to next row and show its data
.../TablaInventario.props.data[1]['Clase equipo']
also a back button
<
For now I added expression to the text filed:
try({../TablaInventario.props.data}[{../custom.currentIndex}]['Clase equipo'], "")
And this to the next button:
def runAction(self, event):
totalRows = len(self.getSibling("TablaInventario").props.data)
if self.view.custom.currentIndex < totalRows - 1:
self.view.custom.currentIndex += 1
and back button:
if self.view.custom.currentIndex > 0:
self.view.custom.currentIndex -= 1