Question
Values of field returned with ColumnList
Odd that I have not encountered this before, but here it
goes..
I used a select all statement with a maxrows attribute of 1 to return a single record where TransactionID = xxxx. Simple enough..
I used query.ColumnList to return a list of the columns in returned. Works great.
Now I want to display the values associated with the fields. Essentially, I want the dynamic value of a dynamic value.
I want to loop over the table, showing the fieldname, the current value of that field, and an input box allowing the user to change the value. I can do this manually because I know the field names and have access to the backend table, but I want this form to continue working whenever I change the underlying database table for whatever reason. I figured doing it dynamically was the way to go.
I am sure there is an elegent solution that is eluding me.
I used a select all statement with a maxrows attribute of 1 to return a single record where TransactionID = xxxx. Simple enough..
I used query.ColumnList to return a list of the columns in returned. Works great.
Now I want to display the values associated with the fields. Essentially, I want the dynamic value of a dynamic value.
I want to loop over the table, showing the fieldname, the current value of that field, and an input box allowing the user to change the value. I can do this manually because I know the field names and have access to the backend table, but I want this form to continue working whenever I change the underlying database table for whatever reason. I figured doing it dynamically was the way to go.
I am sure there is an elegent solution that is eluding me.
