On 3/30/11 3:17 PM, Paul McNett wrote:
> On 3/30/11 2:45 PM, Nate Lowrie wrote:
>> >  I think that design is the best.  It allows the developer to see a
>> >  better representation in the designer.  +1 from me and I'll help you
>> >  implement it.  Is there a simple way to auto-generate all of the
>> >  property definitions at run-time for the table so if we ever want to add
>> >  new properties they will automatically have defaults included?
> I should probably do most of this. I don't think the changes to ReportWriter 
> will be
> huge, and I'd implement it in a way to work for future properties 
> automatically, and
> also to not cruft up the rfxml with empty Defaults.

It needs lots of testing, but r6533 has this change, and it works at least for 
the 
expr property. Instead of DefaultX I decided on x_def so that the default value 
of 
the given property would sort next to the actual one in the designer.

Editing existing reports will show slightly different behavior than new 
reports, in 
that properties that have already been changed will have _def property values 
that 
don't track with the property value. You can get around this by explicitly 
setting 
the _def property. Probably no biggie.

At runtime or design-time, if the property can't be evaluated, the writer will 
try 
the default property. If that can't be evaluated, the base default will be 
used. This 
differs from the prior behavior in that for expr's, the exception string would 
be 
printed instead. I've always thought that was suboptimal anyway although I 
should 
probably write those exceptions to dabo.errorLog so the appdev has some 
feedback on 
what's wrong with their expressions.

> And ReportDesigner is sort of hackish it'll probably be more efficient for me 
> to
> sprinkle the right stuff in the proper places. I'll try to get to this soon.

Turns out no changes were needed to ReportDesigner.

Let me know how this works for you, Nate!

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]

Reply via email to