DataGrid Custom Setup Scripting

4 messages Options
Embed this post
Permalink
Mike Kerner

DataGrid Custom Setup Scripting

Reply Threaded More More options
Print post
Permalink
After the better part of 2009 off from using RR, I'm suddenly jumping back
in.

I'm messing with a general purpose ODBC data-sucking stack that I wrote, and
I was thinking of trying to redo it using the DataGrids introduced in 3.5.

The problem I'm having is that I want to write a script to custom-generate
the datagrid on the fly.  In particular, I would like to assign the number
of columns and their headings on the fly.  All the examples I've seen,
though have this information pre-determined.  Since I'm sucking data out of
an ODBC data source, I won't know until runtime how many columns will be
needed, or what their titles will be.

TIA.

Mike
_______________________________________________
use-revolution mailing list
[hidden email]
Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution
Trevor DeVore

Re: DataGrid Custom Setup Scripting

Reply Threaded More More options
Print post
Permalink
On Nov 12, 2009, at 4:33 PM, Mike Kerner wrote:

> The problem I'm having is that I want to write a script to custom-
> generate
> the datagrid on the fly.  In particular, I would like to assign the  
> number
> of columns and their headings on the fly.  All the examples I've seen,
> though have this information pre-determined.  Since I'm sucking data  
> out of
> an ODBC data source, I won't know until runtime how many columns  
> will be
> needed, or what their titles will be.

You can set the "columns" and "column labels" properties.

<http://lessons.runrev.com/spaces/lessons/manuals/datagrid/lessons/7343-Data-Grid-Properties 
 >

set the dgProp["columns"] of group "DataGrid1" to ...

--
Trevor DeVore
Blue Mango Learning Systems
ScreenSteps: http://www.screensteps.com
Releasable Revolution Resources for Developers: http://revolution.bluemangolearning.com
_______________________________________________
use-revolution mailing list
[hidden email]
Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution
mikey-2

Re: DataGrid Custom Setup Scripting

Reply Threaded More More options
Print post
Permalink
Trevor,
So if I understand, I only have to set the column labels if I want them to
be different than the column names, correct?
--
On the first day, God created the heavens and the Earth
On the second day, God created the oceans.
On the third day, God put the animals on hold for a few hours,
  and did a little diving.
And God said, "This is good."
_______________________________________________
use-revolution mailing list
[hidden email]
Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution
Trevor DeVore

Re: DataGrid Custom Setup Scripting

Reply Threaded More More options
Print post
Permalink
On Nov 12, 2009, at 5:00 PM, Mikey wrote:

> So if I understand, I only have to set the column labels if I want  
> them to
> be different than the column names, correct?

Correct.

--
Trevor DeVore
Blue Mango Learning Systems
ScreenSteps: http://www.screensteps.com
Releasable Revolution Resources for Developers: http://revolution.bluemangolearning.com
_______________________________________________
use-revolution mailing list
[hidden email]
Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution