Hi,
I need help... It's somewhere example how to solve the problem with dynamically arranging the order of columns in B4xTable. I created new module where user can define order of all columns in B4XTable; but I don't have any idea how to set data (b4xtable.setData) in same order as is defined in reordered b4xtable...
Any idea how to find which column is on which place and how to connect data in result set with existing columns...
For example (pseudo code):
Initial setup:
User change order in b4xTable into:
B4Xtable.column1 = “ID”
B4xTable.column2 = “Street”
B4Xtable.column3 = “Name”
How to find which column match to which resultset?
Thanks, Darko
I need help... It's somewhere example how to solve the problem with dynamically arranging the order of columns in B4xTable. I created new module where user can define order of all columns in B4XTable; but I don't have any idea how to set data (b4xtable.setData) in same order as is defined in reordered b4xtable...
Any idea how to find which column is on which place and how to connect data in result set with existing columns...
For example (pseudo code):
Initial setup:
Example:
B4Xtable.column1 = “ID”
B4Xtable.column2 = “Name”
B4xTable.column3 = “Street”
Select from SqlServer in resultset:
rs.GetInt(“tableID”)
rs.getString(“tableName”)
rs.getstring(“tableStreet”)
Query = "select * from myTable"
Dim rs As ResultSet = Main.MsSql.ExecQuery(Query)
B4xtable.setdata(Array(rs.GetInt(“tableID”), rs.getString(“tableName”), rs.getstring(“tableStreet”))
User change order in b4xTable into:
B4Xtable.column1 = “ID”
B4xTable.column2 = “Street”
B4Xtable.column3 = “Name”
How to find which column match to which resultset?
Thanks, Darko