Hello,
I would like to make a link on my form by clicking which I will be able to open / close a certain section in Orbeon Forms. Is there any possibility to do this programmaticaly in Orbeon forms? Using javascript? Xpath? So far I have not found any reference to do that using XPath. Thanks a lot in advance. |
Administrator
|
<xforms:trigger appearance="minimal">
<xforms:label>Open bar</xforms:label> <xforms:toggle ev:event="DOMActivate" case="bar-case"/> </xforms:trigger> <xforms:switch> <xforms:case id="foo-case"> </xforms:case> <xforms:case id="bar-case"> </xforms:case> </xforms:switch> -Erik On Mon, Dec 3, 2012 at 8:05 AM, rovsh <[hidden email]> wrote: > Hello, > > I would like to make a link on my form by clicking which I will be able to > open / close a certain section in Orbeon Forms. > Is there any possibility to do this programmaticaly in Orbeon forms? Using > javascript? Xpath? > So far I have not found any reference to do that using XPath. > > > Thanks a lot in advance. > > > > > -- > View this message in context: http://orbeon-forms-ops-users.24843.n4.nabble.com/Working-with-sections-in-Orbeon-open-close-programmaticaly-tp4656055.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 > -- 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 |
Hello Erik,
Thanks a lot for reply. Is this solution also applicable to <fr:section> tag (from Form Runner)? In my original post I meant a section which we can create using the above tag. I tried to see the HTML output of Orbeon, and I found there are 2 cases: "case-button-closed", and "case-open". Can or Should I reuse them? Thanks a lot in advance. Rovsh
|
Administrator
|
Rovsh,
fr:section supports 2 events: fr-expand and fr-collapse. Say you have: <fr:section id="my-section"> You should be able to write: <xf:dispatch name="fr-expand" targetid="my-section"/> -Erik On Tue, Dec 4, 2012 at 12:38 AM, rovsh <[hidden email]> wrote: > Rovsh -- 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 |