On 3/30/11 11:46 AM, Nate Lowrie wrote:
> On Wed, Mar 30, 2011 at 14:43, Nate Lowrie<[email protected]> wrote:
>
>> > On Wed, Mar 30, 2011 at 14:40, Paul McNett<[email protected]> wrote:
>> >
>>> >> On 3/30/11 11:15 AM, Nate Lowrie wrote:
>>>> >> > For some of the items in my report, I am using preferences stored
>>>> >> in the
>>>> >> > preference manager to drive some of the header expressions. To do
>>>> >> this,
>>>> >> > I needed to add a Application object instance to the report writer.
>>>> >> I
>>>> >> > would like to make the application object instance available by
>>>> >> default
>>>> >> > in the ReportWriter.
>>> >>
>>> >> This is already there as 'self.Application' in report expressions.
>>> >>
>> >
>> > Cool!
>> >
> I take that back. I get an error ("Can't get attribute Application") when I
> reference self.Application in report expressions.
>
> Platform: Win
> Python Version: 2.6.6 on Win
> Dabo Version: Version 0.9.3; Revision 6510M
> UI Version: 2.8.11.0 on wxMSW
I've been doing this for years in my reports. Do your expr's in the rfxml look
something like:
<expr>self.Application.getAppinfo("companyName")</expr>
Are you instantiating dabo.dReportWriter.dReportWriter() as opposed to
dabo.lib.reportWriter.ReportWriter()? The latter knows nothing about Dabo and
has no
Application property.
Paul
_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-dev
Searchable Archives: http://leafe.com/archives/search/dabo-dev
This message: http://leafe.com/archives/byMID/[email protected]