Hello All, I am trying to display page numbers like 1,2,3 … etc
each page having ten entries I have used <xforms:variable
name="countrows"
select="count(instance('events-instance')/Event[contains(translate(ShortDescription,
'ABCDEFGHIJKLMNOPQRSTUVWXYZ', 'abcdefghijklmnopqrstuvwxyz'),
translate(instance('queryname')/getevent, 'ABCDEFGHIJKLMNOPQRSTUVWXYZ',
'abcdefghijklmnopqrstuvwxyz')) and instance('queryname')/getevent!='' and
string-length(instance('queryname')/getevent) > 2 and (ExpirationDate=''
or ExpirationDate > current-date())])"/>
<xforms:output value="$countrows"/> <xforms:repeat
nodeset="(instance('events-instance')/Event[contains(translate(ShortDescription,
'ABCDEFGHIJKLMNOPQRSTUVWXYZ', 'abcdefghijklmnopqrstuvwxyz'),
translate(instance('queryname')/getevent, 'ABCDEFGHIJKLMNOPQRSTUVWXYZ', 'abcdefghijklmnopqrstuvwxyz'))
and instance('queryname')/getevent!='' and
string-length(instance('queryname')/getevent) > 2 ])[position() * 10
< $countrows ]" >
<a href="http://localhost:8080/web/guest/search?Search={instance('queryname')/getevent}&p_p_id=searchxpl_WAR_searchxpl_INSTANCE_eVKL&p_p_lifecycle=0&p_p_state=maximized&p_p_col_count=1&p_p_col_id=column-2&x=36&y=5&page={position()}"><xforms:output
value="position()"/></a>
</xforms:repeat> But the page number is
always displaying as 1 Can we display page numbers
dynamically using xforms trigger and by clicking that page number trigger
it should display Entries Thanks, Srikanth A -- 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
|
Srikanth,
Using <xforms:output value="position()"/> inside an <xforms:repeat> should work and give you the expected result. Could you send us an example that we can run the XForms sandbox? (Also see: http://www.orbeon.com/ops/doc/home-faq#reporting-issues) Alex |
Hello Alex,
I have created an example that displays number of entries, page number, and ten values per each page. It should display page numbers 1 2 as per the example used but it is displaying page number 1 Please find the attachment with this mail. Thanks, Srikanth A -----Original Message----- From: Alessandro Vernet [mailto:[hidden email]] Sent: Wednesday, March 18, 2009 12:30 AM To: [hidden email] Subject: [ops-users] Re: Displaying page numbers Srikanth, srikanth.prodigy wrote: > > I am trying to display page numbers like 1,2,3 . etc each page having ten > entries I have used > Using <xforms:output value="position()"/> inside an <xforms:repeat> should work and give you the expected result. Could you send us an example that we can run the XForms sandbox? (Also see: http://www.orbeon.com/ops/doc/home-faq#reporting-issues) Alex ----- Orbeon Forms - Web 2.0 Forms, open-source, for the Enterprise Orbeon's Blog: http://www.orbeon.com/blog/ Personal Blog: http://avernet.blogspot.com/ Twitter - http://twitter.com/avernet -- View this message in context: http://www.nabble.com/Displaying-page-numbers-tp22561196p22565684.html Sent from the ObjectWeb 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 limitedrec.xhtml (2K) Download Attachment |
In reply to this post by srikanth.prodigy
Srikanth,
Can your problem be solved with below simplified implementation? May be I could ve not got 100% what you are trying to solve at? <xforms:instance id='dummy'> <dummy xmlns=''> <counter id='1'/> <counter id='2'/> <counter id='3'/> <counter id='4'/> <counter id='5'/> <counter id='6'/> <counter id='7'/> <counter id='8'/> <counter id='9'/> <counter id='10'/> </dummy> </xforms:instance> <xforms:repeat nodeset="instance('dummy')/counter"> <a href="urlpage&page={position()}"><xforms:output value="position()"/></a> </xforms:repeat> Let me know if I was be useful for any extent/ Regards Arun On Tue, Mar 17, 2009 at 8:30 PM, Srikanth A <[hidden email]> wrote:
-- 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
|
In reply to this post by srikanth.prodigy
Srikanth,
$countrows = 13, and you show the values, such as position() * 10 < $countrows. So only the first one shows (1*10 < 13, but not( 2*20 < 13 )). So I don't think there is a bug here (or at least not in the XForms engine). Alex |
Free forum by Nabble | Edit this page |