So far, I can get the ID value on the current row. And I can also get the selected rows. But I can't figure out how to get any other value out of the ID column besides the current value. My thought is that either I can use the row number to get the values from the selected rows, or I have to set the current row and then get the current value for each selected row.
This is what I have so far:
Code: Select all
Sub UpdateRequests(oEvent as object)
Dim oForm, oSelection, oTable, oTableControl, oSelectedRows as object
oForm = oEvent.Source.Model.Parent
oTable = oForm.getByName("Table1")
oTableControl = ThisComponent.getCurrentController().getControl(oTable)
oSelectedRows = oTableControl.getSelection()
oGridView = oForm.Parent.Parent.CurrentController.getControl(oTable)
oTablemodel=oForm.getbyname("Table1") ' Get now the table control you need
a=oTableModel.getbyname("NumericField1") ' Get now the control inside the tablecontrol
'print a.boundfield.getstring ' print now the fieldvalue
'print a.currentvalue
oGridView.select(3)
oMRI.inspect(oGridView)
End Sub