Hi Paul,

On 23/06/2013 15:25, Paul McNett wrote:
On 6/23/13 3:58 AM, Werner F. Bruhin wrote:
Hi,
The RD shows me "error parsing" for this expr for an "Image" element:

self.repu.getDrinktypeImagePNG(self.Record.__dict__['dtype_id'])

It is just an RD issue as when I preview the report the image is shown 
correctly.
Are you seeing this in the "preview" report or somewhere else?
In the 'preview', but I cheat, so this is against a 'live' cursor.

    form.editor._rw.Cursor = result.all()
    form.editor._rw.UseTestCursor = False


I think/guess that at design time it does not return what RD likes to see, or 
.....?
If that function call returns a relative path to an image file name it is 
possible
that at design time that relative path doesn't match up with your current 
directory...
Should always be an absolute path, but I'll need to check.

Can/should I just return a "blank" or None or ?
I think if you return None it won't show the image or an error, but I can't 
remember.

Do I need to set an appropriate "show" condition for the Image element if there 
is no
image for a particular detail/row?
I think just None will suffice, but if that isn't enough then you could set 
Show to
check for None.

Try setting expr_def to None as well.
Thanks will play with it.

Have a nice Sunday afternoon
Werner
_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://mail.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