On Friday, May 13, 2011 7:53:40 am John Fabiani wrote:

> On the surface that sounds good but I could not figure out how to do it in
> a dynamic way.  I ran into the same problem Dabo has.  How can I determine
> the datafields and provide the fake data for the first record.

You say you are pulling the data from Postgres.  psycopg2 captures the fields 
and 
type info in cursor.description. As to fake data:

select id::int, '1901-01-01::date', 'test'::varchar;

Use to create table/dataset and then insert rest of data into dataset?

Got to run, will ponder further.

> 
> I also considered creating a DataSource for the dataset.  But the Dabo
> routine does not look at the DataSource description.
> 
> I could of course change the Dabo routine to look for a DataSource
> description and use it if it was available.  But to be honest I consider
> my solution a hack!
> 
> Johnf
> _______________________________________________
> Post Messages to: [email protected]
> Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-users
> Searchable Archives: http://leafe.com/archives/search/dabo-users
> This message:
> http://leafe.com/archives/byMID/[email protected]

-- 
Adrian Klaver
[email protected]
_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-users
Searchable Archives: http://leafe.com/archives/search/dabo-users
This message: 
http://leafe.com/archives/byMID/[email protected]

Reply via email to