Uploading multiple images with fr:image-attachment

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Uploading multiple images with fr:image-attachment

gino-m
Looked closely at the FR persistence model, it seems that for each bind we are only able to only upload one image.  For example,
			<xforms:instance id="fr-form-instance">
				<data xmlns="">
					<photo filename="" mediatype="" size=""/>
					<photo filename="" mediatype="" size=""/>
					<photo filename="" mediatype="" size=""/>
				</data>
			</xforms:instance>

			<xforms:bind id="photo-bind" nodeset="photo" type="xs:anyURI" required="false()"/>
...
			<fr:image-attachment bind="photo-bind" class="fr-attachment">
				<xforms:filename ref="@filename" />
				<xforms:mediatype ref="@mediatype" />
				<xxforms:size ref="@size" />
			</fr:image-attachment>

..only uploads one (the first) image.  Putting a repeat around the image-attachment doesn't work because image-attachment/@bind must refer to the bind/@id.

Are there any plans to add this functionality?  It will be definitely be required by our project in the future.

Many thanks,
Gino
Gino Miceli
Forest Information Systems Specialist
Food and Agriculture Organization of the United Nations
FAO-Finland Cooperation Programme
Sustainable Forest Management in a Changing Climate
Forest Management Division, Rm. D-406
Viale delle Terme di Caracalla, s.n.c.
00153 Rome, Italy
http://www.fao.org/forestry
Reply | Threaded
Open this post in threaded view
|

Re: Uploading multiple images with fr:image-attachment

Alessandro  Vernet
Administrator
Gino,

Yes, we would like to add the support for repeats in Form Builder, but
this is not on our immediate plan, unless a client moves forward to
sponsor this feature.

Alex

On Wed, May 26, 2010 at 3:16 AM, gino-m <[hidden email]> wrote:

>
> Looked closely at the FR persistence model, it seems that for each bind we
> are only able to only upload one image.  For example,
>
>                        <xforms:instance id="fr-form-instance">
>                                <data xmlns="">
>                                        <photo filename="" mediatype="" size=""/>
>                                        <photo filename="" mediatype="" size=""/>
>                                        <photo filename="" mediatype="" size=""/>
>                                </data>
>                        </xforms:instance>
>
>                        <xforms:bind id="photo-bind" nodeset="photo" type="xs:anyURI"
> required="false()"/>
> ...
>                        <fr:image-attachment bind="photo-bind" class="fr-attachment">
>                                <xforms:filename ref="@filename" />
>                                <xforms:mediatype ref="@mediatype" />
>                                <xxforms:size ref="@size" />
>                        </fr:image-attachment>
>
>
> ..only uploads one (the first) image.  Putting a repeat around the
> image-attachment doesn't work because image-attachment/@bind must refer to
> the bind/@id.
>
> Are there any plans to add this functionality?  It will be definitely be
> required by our project in the future.
>
> Many thanks,
> Gino
>
> -----
>
> Gino Miceli
>
> Forestry Information Systems Specialist
>
> Food and Agriculture Organization of the United Nations
>
> FAO-Finland Cooperation Programme
>
> Sustainable Forest Management in a Changing Climate
>
> Forest Management Division, Rm. D-406
>
> Viale delle Terme di Caracalla, s.n.c.
>
> 00153 Rome, Italy
>
> http://www.fao.org/forestry http://www.fao.org/forestry
>
>
> --
> View this message in context: http://orbeon-forms-ops-users.24843.n4.nabble.com/Uploading-multiple-images-with-fr-image-attachment-tp2231349p2231349.html
> Sent from the Orbeon Forms (ops-users) mailing list archive at Nabble.com.
>
>
> --
> 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
>
>


--
Orbeon Forms - Web forms, open-source, for the Enterprise -
http://www.orbeon.com/
My Twitter: http://twitter.com/avernet


--
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
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet