I have a table set up and want to switch to a datagrid. I have a filter set up in a field for my current table:
filter field "info" with "*" & field "First" & "*"& tab & "*"
that works great.
When I change to a datagrid with the same name and try this code to filter:
filter group "info" with "*" & field "First" & "*"& tab & "*"
it doesn't work. What am I doing wrong?
changing from a table to a datagrid
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller
Re: changing from a table to a datagrid
Hi mel,
a DataGrid is NOT a field (but a very complex best and not really beginners stuff!),
so you cannot use "filter" here directly.
Please check the PDF from the URL that someone posted in your other threads, it
is very important to re-create and understand every example in the DataGrid docs PDF.
Get it here:
http://lessons.runrev.com/s/lessons/m/datagrid
Best
Klaus
a DataGrid is NOT a field (but a very complex best and not really beginners stuff!),
so you cannot use "filter" here directly.
Please check the PDF from the URL that someone posted in your other threads, it
is very important to re-create and understand every example in the DataGrid docs PDF.
Get it here:
http://lessons.runrev.com/s/lessons/m/datagrid
Best
Klaus
Re: changing from a table to a datagrid
-Use the filter command... on a variable
-then inject the variable into the datagrid
-then inject the variable into the datagrid
Code: Select all
filter myResult with "*" & field "First" & "*"& tab & "*"
put false into pFirstLineContainsHeaders
set the dgText [ pFirstLineContainsHeaders ] of group "myDataGrid" to myResult