Xpages repeat control division by zero -


I'm using a repeat control display names. Content is checked in, but I need a pager because it can be more than 30 entries.

As soon as I add a pager to this repeat control and press the partial refresh button on the site. I get a "zero division" error.

This is my repeat control:

  & lt; Xp: repeat id = "repeat1" rows = "30" var = "namesList" repeat control = "true" indexVar = "line index" & gt; & Lt; XP: Table & gt; & Lt; XP: TR & gt; & Lt; XP: TD & gt; & Lt; Xp: link escape = "true" id = "employee" & gt; & Lt; XP: this.text & gt; & Lt; [CDATA [# {Javascript: namesList.getItemValueString ("employee")}]]! & Gt; / XP; & Lt: this.text & gt; & Lt; / XP: Link & gt; & Lt; / XP: TD & gt; & Lt; / XP: TR & gt; & Lt; / XP: table & gt; & Lt; Xp: this.value & gt; & Lt ;! [CDATA [# {Javascript: Try {var wfDoc: NotesDocument = docApplication.getDocument (true); Var dcNoAnswer: NotesDocumentCollection = database.createDocumentCollection (); Var number: integer = 0; / / All feedback is documented, but only connects them to the collection of documents, if for non-relative / feedback (wfDoc.getResponses ()! = Null) {var dc: NotesDocumentCollection = wfDoc.getResponses (); Var Doctor: Notes document = dc.getFirstDocument (); While (doctor! = Null) {if (doc.getItemValueString ("feedback") == "") {dcNoAnswer.addDocument (doc); } Doctor = dc.getNextDocument (); } Dc.recycle (); } DocApplication.replaceItemValue ("MissingSportsCount", dcNoAnswer.getCount ()); WfDoc.recycle (); Return DC NoSer; } Hold (e) {dBar.error ("Show a response double control data:" + E); }}]] & Gt; & Lt; / XP: this.value & gt; & Lt; / XP: Repeat & gt;  

And here's my pager:

  & lt; Xp: pager layout = "previous group next" id = "pager3" = "repeat1" & gt; & Lt; / XP: Pager & gt;  

As I said, partial refresh on the Site Orders Panel, I get this error:

I was looking for an error for some time, but I can not see anything wrong here. Is anyone else having such a problem and maybe it can be resolved?

You have set repeat control = "correct". It means "control never once again", so that you can not use pagers to navigate, as told here. Remove RepeatControls = "true" and it will work.

If you look at the stack trace, then it will fail on getStart ().


Comments

Popular posts from this blog

winforms - C# Form - Property Change -

javascript - amcharts makechart not working -

java - Algorithm negotiation fail SSH in Jenkins -