Login  Register

Re: How do I tell if an image attachement has an image attached?

Posted by Erik Bruchez on Mar 09, 2011; 6:19pm
URL: https://discuss.orbeon.com/How-do-I-tell-if-an-image-attachement-has-an-image-attached-tp3343730p3344209.html

Something like:

normalize-space($picture1)

or:

normalize-space($picture1) != ''

should do the trick.

When an image is attached, a local URL is stored as the value of the field. If it is empty, there is no attachment. If it is not empty, there is one.

-Erik

On Wed, Mar 9, 2011 at 6:49 AM, Dr. Kevin Hunt <[hidden email]> wrote:
I what to set the visibility of an image attachment (named picture2) to true, if the image attachment widget "picture1" has an image attached.

if there something like exists($picture1) that I can set the visibility attribute to for picture2?


--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws




--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws