Hello all I am having an issue with multiple image attachments within a repeated section.
I did see this: But it has been dated 2010 and since it's 2012 I figured I give it another shout out. My Model is as follows: <model> <advertisement>
<description/> <imageAttachment filename="" mediatype="" size=""/>
</advertisement> <advertisement>
<description/> <imageAttachment filename="" mediatype="" size=""/>
</
advertisement> </model> I have a section bound to //advertisement nodes and inside that I reference the image attachment:
<xforms:bind id="advertisement-bind" nodeset="mclu" name="
advertisement " relevant="true()" readonly="false()"> <xforms:bind id="description-bind" nodeset="description" name="description" type="xs:string"
required="true()"/> <xforms:bind id="imageAttachment-bind" nodeset="imageAttachment" type="xs:anyURI"
name="imageAttachment" required="true()"/> </xforms:bind> And inside my section template I have: <!-- MCLU repeats -->
<xforms:repeat nodeset="instance('fr-form-instance')/advertisements[position()>1]" id="mclu-repeat"> <fr:section id="advertisement-section-repeater">
... ... <fr:image-attachment xmlns="http://orbeon.org/oxf/xml/form-builder"
xmlns:xbl="http://www.w3.org/ns/xbl" xmlns:fb="http://orbeon.org/oxf/xml/form-builder"
xmlns:xxbl="http://orbeon.org/oxf/xml/xbl" xmlns:pipeline="java:org.orbeon.oxf.processor.pipeline.PipelineFunctionLibrary"
bind="imageAttachment-bind" class="fr-attachment" ref="./imageAttachment">
<xforms:label ref="$form-resources/imageAttachment/label"/> <xforms:hint ref="$form-resources/imageAttachment/hint"/>
<xforms:help ref="$form-resources/imageAttachment/help"/> <xforms:alert ref="$fr-resources/detail/labels/alert"/>
<xforms:filename ref="@filename"/> <xforms:mediatype ref="@mediatype"/> <xxforms:size ref="@size"/>
</fr:image-attachment> ... ... </fr:section>
</xforms:repeat> For whatever reason sometimes when I submit (and this saves) only the last image is stored, sometimes non of the images are stored, and sometimes both images are stored. I'd say 80% of the time only a single image is stored. Checking the ExistDB I see the image being attached (only one of them).
Considering the older thread on this - is multiple images supported - and I should investigate further on my end or is this something I should wait for another version (or maybe volunteer some of my time to implement).
Thank You, Terrance -- 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 |
Administrator
|
Terrance,
That sounds like a bug to me. Can you send a simple complete form that reproduces this, plus exact steps? Thanks, -Erik On Tue, Mar 13, 2012 at 2:02 PM, Terrance Snyder <[hidden email]> wrote: > Hello all I am having an issue with multiple image attachments within a > repeated section. > > I did see this: > http://orbeon-forms-ops-users.24843.n4.nabble.com/Uploading-multiple-images-with-fr-image-attachment-td2231349.html > > But it has been dated 2010 and since it's 2012 I figured I give it another > shout out. > > My Model is as follows: > > <model> > <advertisement> > <description/> > <imageAttachment filename="" mediatype="" size=""/> > </advertisement> > <advertisement> > <description/> > <imageAttachment filename="" mediatype="" size=""/> > </ advertisement> > </model> > > I have a section bound to //advertisement nodes and inside that I reference > the image attachment: > > <xforms:bind id="advertisement-bind" nodeset="mclu" name=" > advertisement " relevant="true()" readonly="false()"> > <xforms:bind id="description-bind" nodeset="description" > name="description" type="xs:string" > required="true()"/> > <xforms:bind id="imageAttachment-bind" > nodeset="imageAttachment" type="xs:anyURI" > name="imageAttachment" > required="true()"/> > </xforms:bind> > > And inside my section template I have: > > <!-- MCLU repeats --> > <xforms:repeat > nodeset="instance('fr-form-instance')/advertisements[position()>1]" > id="mclu-repeat"> > <fr:section id="advertisement-section-repeater"> > ... > ... > <fr:image-attachment > xmlns="http://orbeon.org/oxf/xml/form-builder" > > xmlns:xbl="http://www.w3.org/ns/xbl" > > xmlns:fb="http://orbeon.org/oxf/xml/form-builder" > > xmlns:xxbl="http://orbeon.org/oxf/xml/xbl" > > xmlns:pipeline="java:org.orbeon.oxf.processor.pipeline.PipelineFunctionLibrary" > > bind="imageAttachment-bind" > > class="fr-attachment" > > ref="./imageAttachment"> > <xforms:label > ref="$form-resources/imageAttachment/label"/> > <xforms:hint > ref="$form-resources/imageAttachment/hint"/> > <xforms:help > ref="$form-resources/imageAttachment/help"/> > <xforms:alert > ref="$fr-resources/detail/labels/alert"/> > <xforms:filename ref="@filename"/> > <xforms:mediatype ref="@mediatype"/> > <xxforms:size ref="@size"/> > </fr:image-attachment> > > ... > ... > </fr:section> > </xforms:repeat> > > For whatever reason sometimes when I submit (and this saves) only the last > image is stored, sometimes non of the images are stored, and sometimes both > images are stored. I'd say 80% of the time only a single image is stored. > Checking the ExistDB I see the image being attached (only one of them). > > Considering the older thread on this - is multiple images supported - and I > should investigate further on my end or is this something I should wait for > another version (or maybe volunteer some of my time to implement). > > Thank You, > Terrance > > > > > -- > 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 |
Free forum by Nabble | Edit this page |