Hello All, When try to click on a trigger which sets the value to an
instance and that instance is used in repeat. The trigger works fine for
certain clicks When I click on trigger its giving following exception. org.orbeon.saxon.value.StringValue cannot be cast to
org.orbeon.saxon.om.NodeInfo trigger <xforms:trigger appearance="minimal"
style="text-decoration: none;font-family:Arial;" >
<xforms:label><p
style="color:#4E4098;font-size:11px;"><xforms:output value="instance('positions')/more"
/></p></xforms:label>
<xforms:action ev:event="DOMActivate" >
<xforms:variable name="pages"
select="ceiling(count(instance('events-instance')/Event[CreatedAt<=now()])
div 10)"/> <xforms:setvalue
ref="instance('page')" value="if(instance('page') <
$pages - 1) then . + 1 else '0' "/>
</xforms:action>
</xforms:trigger> Repeat <xforms:repeat id="event-repeat1"
nodeset="(instance('events-instance')/Event[CreatedAt<=now()],'CreatedAt','text','descending','lower-first')[(position()
gt number(instance('page'))* 10 and position() le number(instance('page')+1)*
10)]" > Thanks, Srikanth -- 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 |
I have fixed this issue the repeat condition is to be changed. Thanks, Srikanth From: Srikanth A
[mailto: Hello All, When try to click on a trigger which sets the value to an
instance and that instance is used in repeat. The trigger works fine for
certain clicks When I click on trigger its giving following exception. org.orbeon.saxon.value.StringValue cannot be cast to
org.orbeon.saxon.om.NodeInfo trigger <xforms:trigger appearance="minimal"
style="text-decoration: none;font-family:Arial;" >
<xforms:label><p
style="color:#4E4098;font-size:11px;"><xforms:output value="instance('positions')/more"
/></p></xforms:label>
<xforms:action ev:event="DOMActivate" >
<xforms:variable name="pages"
select="ceiling(count(instance('events-instance')/Event[CreatedAt<=now()])
div 10)"/>
<xforms:setvalue
ref="instance('page')" value="if(instance('page') <
$pages - 1) then . + 1 else '0' "/>
</xforms:action>
</xforms:trigger> Repeat <xforms:repeat id="event-repeat1"
nodeset="(instance('events-instance')/Event[CreatedAt<=now()],'CreatedAt','text','descending','lower-first')[(position()
gt number(instance('page'))* 10 and position() le number(instance('page')+1)*
10)]" > Thanks, Srikanth -- 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 |