On Sep 1, 2007, at 1:27 PM, johnf wrote:

> The report designer uses test records to aid in the design of a  
> report.
> Normally, the report designer uses test records created from  
> AppWizard.  The
> problem of course is the sql statements have to be adjusted within  
> AppWizard
> to create the correct test records.  So I was hoping there was an  
> easier way
> to create the test records from a complex select statement with  
> joins etc.

        Look at the code in lib/datanav2/Form.py, starting at line 670:

testCursor = rf.addElement(TestCursor)
for rec in self.getBizobj().getDataSet(rows=10):
        tRec = {}
        for fld, val in rec.items():
                tRec[fld] = repr(val)
        testCursor.addRecord(tRec)
return rw._getXMLFromForm(rf)

        So it looks like you can just add a TestCursor element, and the add  
the records to that. This will then be persisted in the rfxml file.


-- Ed Leafe
-- http://leafe.com
-- http://dabodev.com




_______________________________________________
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/dabo-users/[EMAIL PROTECTED]

Reply via email to