Page 1 of 1

changing from a table to a datagrid

Posted: Wed Aug 24, 2011 1:43 am
by melhiatt
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?

Re: changing from a table to a datagrid

Posted: Wed Aug 24, 2011 12:00 pm
by Klaus
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

Re: changing from a table to a datagrid

Posted: Wed Aug 24, 2011 1:16 pm
by bangkok
-Use the filter command... on a variable

-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