When the user choose which dataset they want to view, I'm taking the data from one of those fields and putting it into a Data Grid Table. The problem is that the hidden field contains more columns of data than I need to display. So I think my only option is to loop through all the records, manually adding the data only from the fields I want to a new container. This seems really inefficient.
What would be better would be a way to delete columns. For example:
Even better would be a way to specify what columns I want to import when setting dgtext:put field data into theList
delete column 3 of theList
delete column 7 of theList
set the dgtext of group "displayData" to theList
So, my questions are:set the dgtext of group "displayData" to columns 1,2,4,5,6,8,9,10 of theList
(1) Is there actually a one-liner that deletes columns from a container?
(2) Is there actually a way to specify only certain columns when populating a Data Grid Table?
(3) If no to both of the above, is there a better way to excise the unwanted columns besides looping through each record and building a new container? (And let's assume that I don't want to have to use an external database just to solve this problem.)
If #'s 1 and 2 don't actually exist, I'll add them as feature requests.
Thanks for your help!