xpages - @Name within repeat -


i have app build allow users enter approvers each document manually. wanted put in repeat control instead of hard coding fields in xpage. working want, except names stored in document in canonical format. don't want present user, want show abbreviated name. can't seem working. below repeat. want put , @name around value of approvername_#

thanks in advance

walt

<xp:repeat    id="repeat4"     var="rowitem"     indexvar="indexvar">    <xp:this.value><![cdata[#{javascript:["1", "2", "3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18"]}]]></xp:this.value>  <xp:panel>        <xp:repeat            id="repeat3"            var="fieldname">                        <xp:label id="label31"><xp:this.value><![cdata[#{javascript:"approver - " + rowitem}]]></xp:this.value></xp:label><xp:label id="label33" value="name"></xp:label>            <xp:this.value><![cdata[#{javascript:["approvername_"+rowitem]}]]></xp:this.value>            <xp:inputtext id="nameinputtext"             value="#{document1[fieldname]}"             style="width:333.0px" rendered="#{javascript:!document1.iseditable()}">             </xp:inputtext> <xp:inputtext id="inputtext9" value="#{document1[fieldname]}" style="width:333.0px">            </xp:inputtext>            <xe:namepicker id="namepicker1"                 for="nameinputtext">                 <xe:this.dataprovider>                 <xe:dominonabnamepicker                 namelist="peoplebylastname"                 addressbooksel="db-name" groups="false"                 people="true">                 <xe:this.addressbookdb><![cdata[#{javascript:@subset(@dbname(), 1) + "!!names.nsf"}]]></xe:this.addressbookdb>                 </xe:dominonabnamepicker>                 </xe:this.dataprovider>                 </xe:namepicker></xp:repeat>        <xp:repeat id="repeat5" var="fieldname">         <xp:this.value><![cdata[#{javascript:["title_"+rowitem]}]]></xp:this.value>         <xp:label id="label32" value="title"></xp:label>          <xp:inputtext id="inputtext10"         value="#{document1[fieldname]}">         </xp:inputtext>        </xp:repeat>        <xp:repeat            id="repeat6"            var="fieldname">            <xp:this.value><![cdata[#{javascript:["approvalflag_"+rowitem]}]]></xp:this.value>                 <xp:inputtext id="inputtext11" value="#{document1[fieldname]}">                 </xp:inputtext>                 </xp:repeat>          <xp:repeat            id="repeat7"            var="fieldname">            <xp:this.value><![cdata[#{javascript:["reason"+rowitem]}]]></xp:this.value>                 <xp:inputtext id="inputtext12" value="#{document1[fieldname]}">                 </xp:inputtext>                 </xp:repeat>         </xp:panel> </xp:repeat> 

use dojo name text box instead of input field. prevents typing, gives better ux removing entries, , want out-of-the-box.

enter image description here


Comments

Popular posts from this blog

account - Script error login visual studio DefaultLogin_PCore.js -

xcode - CocoaPod Storyboard error: -