Hi all,
First I need to say that when it comes to Orbeon forms, I am an absolute green horn.
I've been thrown a projectthat has been partially completed that I need to bring over the line.
Basically from what I can gather, we have a series of forms to be filled out that works off a central model. They seem to be contained within a <xf:switch> tag, with <xf:case id="Introduction" selected="true()"> containing the data information for 1 form. There are 14 cases, each containing different pages.
What I need to do, is to somehow print all of the forms together to a set of paper.
What would the best way be to achieve this? I was thinking if there was some way to display all of the cases on a set of pages, this can then be printed via a window.print() Javascript command.
Am I onto the right track? Am I barking up the completely wrong tree?
Kind of a bit lost without a map and compass, so any help would be massively appreciated.
Best regards,
Bayani
-- 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
|
Bayani,
In a xforms:switch, only one xforms:case can be displayed a given point in time. If you want to show all the cases when you are in "print mode", I would replace the use of the xforms:switch/xforms:case by a series of xforms:group. For each xforms:case, you'll have an xforms:group. That xforms:group has a ref=".[condition]" where condition is an XPath expression determining of that group should be shown. This means that you'll have to store in an instance what group should be shown, or if all the groups should be shown. Does this make sense? Alex On Sun, May 16, 2010 at 7:14 AM, Bayani Portier <[hidden email]> wrote: > Hi all, > > First I need to say that when it comes to Orbeon forms, I am an absolute > green horn. > > I've been thrown a projectthat has been partially completed that I need to > bring over the line. > > Basically from what I can gather, we have a series of forms to be filled out > that works off a central model. They seem to be contained within a > <xf:switch> tag, with <xf:case id="Introduction" selected="true()"> > containing the data information for 1 form. There are 14 cases, each > containing different pages. > > What I need to do, is to somehow print all of the forms together to a set of > paper. > > What would the best way be to achieve this? I was thinking if there was some > way to display all of the cases on a set of pages, this can then be printed > via a window.print() Javascript command. > > Am I onto the right track? Am I barking up the completely wrong tree? > > Kind of a bit lost without a map and compass, so any help would be massively > appreciated. > > Best regards, > > Bayani > > -- > 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 |
Free forum by Nabble | Edit this page |