> > "Total Cost Delivery + Installation: %s" % self.Record['amountdelivered'] > if > self.Record['amountdelivered'] is not None else "Installed Cost: %s" % > self.Record['amountinstalled'] > > That is one long single line of python code that can be evaluated at > runtime, which > is what the report writer needs in the expr property of objects. > > I hope this gets you started! > > Paul >
That did get me started Paul ... Thanks. Your expression (after I changed it accordingly) didn't work because, I believe that a blank record (dTextBox) does not = None. However, the follow worked just grand after I figured my way around the syntax errors the various tries I made kept giving me (python noobs are us) : "Total Cost Delivery + Installation: $ %s.00" % self.Record['amountinstalled'] if len(self.Record['amountinstalled'])>0 else "Total Cost Delivery + Installation: $ N/A" Thanks for the shove in the right direction! -- Carey --- StripMime Report -- processed MIME parts --- multipart/alternative text/plain (text body -- kept) text/html --- _______________________________________________ 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]
