dear all
Could any one help me ? Now I am coding for a application. On the first page, user can enter a number to search some data. Whether there are one or many items, an ambiguity page must be shown to allow the user to select the specific item. then user can go to the final page with three parameters which user get them during that ambiguity page. a possible result page as followed: <trs DataDate="2006-06-26" > <trsc> <trsr RequestId=""> <trs-nodes> <trs-node Mode="16"> <trs-code>132</trs-code> <trs-number>X22</trs-number> <trs-direct>I</trs-direct> <trs-name>name3</trs-name> <trs-desc>city3</trs-desc> <trs-index>164</trs-index> </trs-node> <trs-node Mode="16"> <trs-code>FC</trs-code> <trs-number>X22</trs-number> <trs-direct>O</trs-direct> <trs-name>name2</trs-name> <trs-desc>city2</trs-desc> <trs-index>119</trs-index> </trs-node> <trs-node Mode="16"> <trs-code>FC</trs-code> <trs-number>X22</trs-number> <trs-direct>I</trs-direct> <trs-name>name1</trs-name> <trs-desc>city1</trs-desc> <trs-index>457</trs-index> </trs-node> </trs-nodes> </trsr> </trsc> </trs> my instance is like ... <trp> <rts> <rt/> <selection/> <name/> <direct/> <code/> <description/> </rts> </trp> ... in that ambiguity page I code that dropdown list as followed: <xforms:group ref="instance('instance')/trp"> <xforms:select1 ref="rts/selection"> <xforms:itemset nodeset="instance'instance')/trp/rts/rt/*:Trper/*:Responses/*:Response/*:ServicesResponse/*:Services/*:Service"> <xforms:label ref="*:Desc"/> <xforms:value ref="*:Index"/> </xforms:itemset> </xforms:select1> </xforms:group> As the codes above, I have to set Index to make every value of dropdown is unique.So where and how can I pass those parameters which I need. thanks ahead. -- 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 ObjectWeb mailing lists service home page: http://www.objectweb.org/wws |
Sorry , the required three parameters are 'number' ,'code' ,'direct' .
Thanks ahead. Cheers. kevin -----Original Message----- From: [hidden email] [mailto:[hidden email]] Sent: 18 July 2006 17:59 To: [hidden email] Subject: [ops-users] how can I pass more than one parameters between pages dear all Could any one help me ? Now I am coding for a application. On the first page, user can enter a number to search some data. Whether there are one or many items, an ambiguity page must be shown to allow the user to select the specific item. then user can go to the final page with three parameters which user get them during that ambiguity page. a possible result page as followed: <trs DataDate="2006-06-26" > <trsc> <trsr RequestId=""> <trs-nodes> <trs-node Mode="16"> <trs-code>132</trs-code> <trs-number>X22</trs-number> <trs-direct>I</trs-direct> <trs-name>name3</trs-name> <trs-desc>city3</trs-desc> <trs-index>164</trs-index> </trs-node> <trs-node Mode="16"> <trs-code>FC</trs-code> <trs-number>X22</trs-number> <trs-direct>O</trs-direct> <trs-name>name2</trs-name> <trs-desc>city2</trs-desc> <trs-index>119</trs-index> </trs-node> <trs-node Mode="16"> <trs-code>FC</trs-code> <trs-number>X22</trs-number> <trs-direct>I</trs-direct> <trs-name>name1</trs-name> <trs-desc>city1</trs-desc> <trs-index>457</trs-index> </trs-node> </trs-nodes> </trsr> </trsc> </trs> my instance is like ... <trp> <rts> <rt/> <selection/> <name/> <direct/> <code/> <description/> </rts> </trp> ... in that ambiguity page I code that dropdown list as followed: <xforms:group ref="instance('instance')/trp"> <xforms:select1 ref="rts/selection"> <xforms:itemset nodeset="instance'instance')/trp/rts/rt/*:Trper/*:Responses/*:Response/* :ServicesResponse/*:Services/*:Service"> <xforms:label ref="*:Desc"/> <xforms:value ref="*:Index"/> </xforms:itemset> </xforms:select1> </xforms:group> As the codes above, I have to set Index to make every value of dropdown is unique.So where and how can I pass those parameters which I need. thanks ahead. This message has been scanned for viruses by MailControl - (see http://bluepages.wsatkins.co.uk/?4318150) This email and any attached files are confidential and copyright protected. If you are not the addressee, any dissemination of this communication is strictly prohibited. Unless otherwise expressly agreed in writing, nothing stated in this communication shall be legally binding. -- 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 ObjectWeb mailing lists service home page: http://www.objectweb.org/wws |
Administrator
|
In reply to this post by Zhou, Kevin
Hi Kevin,
> Now I am coding for a application. On the first page, user can > enter a number to search some data. Whether there are one or many > items, an ambiguity page must be shown [...] One or many items where? > to allow the user to select the specific item. then user can go to > the final page with three parameters which user get them during > that ambiguity page. a possible result page as followed: What is the "result page"? It looks like an XML document more than an HTML page. Would that be the instance filled out by the user on the "ambiguity page", which is then submitted to a third page? > As the codes above, I have to set Index to make every value of > dropdown is unique.So where and how can I pass those parameters > which I need. It looks to me like your use case is fairly complex to explain. I am not sure if this is possible in this case, but it would be great if you could simplify this in a single XForms file that we can run in the XForms sandbox, and get down to a problem like "I would like this value to be displayed in this <xforms:select1>". Alex -- Blog (XML, Web apps, Open Source): http://www.orbeon.com/blog/ -- 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 ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
--
Follow Orbeon on Twitter: @orbeon Follow me on Twitter: @avernet |
In reply to this post by Zhou, Kevin
Hi Alex
cheers Kevin -----Original Message----- From: [hidden email] [[hidden email]] On Behalf Of Alessandro Vernet Sent: 21 July 2006 05:41 To: [hidden email] Subject: Re: [ops-users] how can I pass more than one parameters between pages Hi Kevin, > Now I am coding for a application. On the first page, user can enter a > number to search some data. Whether there are one or many items, an > ambiguity page must be shown [...] One or many items where? Here one or many items means some items belong to the dropdown list which come from the first searching. And the related xml data as followed: <trs DataDate="2006-06-26" > <trsc> <trsr RequestId=""> <trs-nodes> <trs-node Mode="16"> <trs-code>132</trs-code> <trs-number>X22</trs-number> <trs-direct>I</trs-direct> <trs-name>name3</trs-name> <trs-desc>city3</trs-desc> <trs-index>164</trs-index> </trs-node> <trs-node Mode="16"> <trs-code>FC</trs-code> <trs-number>X22</trs-number> <trs-direct>O</trs-direct> <trs-name>name2</trs-name> <trs-desc>city2</trs-desc> <trs-index>119</trs-index> </trs-node> <trs-node Mode="16"> <trs-code>FC</trs-code> <trs-number>X22</trs-number> <trs-direct>I</trs-direct> <trs-name>name1</trs-name> <trs-desc>city1</trs-desc> <trs-index>457</trs-index> </trs-node> </trs-nodes> </trsr> </trsc> </trs> Be careful items in Italic are the parameters for requesting next page, and the items in Bold is the value of dropdown list . My question is if I can update those three Italic parameters into my instance when I make the choice on dropdown list. Then in my xpl file I can process my flow according to the correct parameters. That's all . Thanks for your attention on my issues . Thank you very much.
Sorry for my misadvise, Here the 'result page' is that ambiguity page, and I need to render those xml-based data into a dropdown list ,like below. <xforms:group
ref="instance('instance')/trp">
> As the codes above, I have to set Index to make every value of > dropdown is unique.So where and how can I pass those parameters which > I need. It looks to me like your use case is fairly complex to explain. I am not sure if this is possible in this case, but it would be great if you could simplify this in a single XForms file that we can run in the XForms sandbox, and get down to a problem like "I would like this value to be displayed in this <xforms:select1>". Alex -- Blog (XML, Web apps, Open Source): http://www.orbeon.com/blog/ This message has been scanned for viruses by MailControl - (see http://bluepages.wsatkins.co.uk/?4318150) This email and any attached files are confidential and copyright protected. If you are not the addressee, any dissemination of this communication is strictly prohibited. Unless otherwise expressly agreed in writing, nothing stated in this communication shall be legally binding. -- 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 ObjectWeb mailing lists service home page: http://www.objectweb.org/wws |
Free forum by Nabble | Edit this page |