xpages dojo filteringselect partial update onChange -


i'm trying partial update on edit box ("room") on server onchange event of dojo filteringselect control ("from_name") on xpage. so, use simple modify field action computed value:

nm = getcomponent("from_name").value; @dblookup("names.nsf", "full name", nm, 10); 

the onchange event partial update "room" element.

the problem there couple of more filteringselect controls on form, , try partial update lookup address book person's room number, gives me yellow exclamation point error other filteringselects on xpage. if other filteringselect controls on page filled out first, partial update works. how around , update room field when, from_name changed?

the code control:

<xe:djfilteringselect id="from_name" value="#{document1.from_name}"     readonly="# {javascript:!document1.isnewnote()}">     <xe:this.defaultvalue><![cdata[#{javascript:         @name("[cn]", @username())}]]>     </xe:this.defaultvalue>     <xp:selectitems>         <xp:this.value><![cdata[#{javascript:             db = new array("server", "names.nsf");              @unique(@dbcolumn(db, "full name", 1))         }]]></xp:this.value>     </xp:selectitems>     <xp:eventhandler event="onchange" submit="true"         refreshmode="partial" refreshid="room">         <xe:this.action>             <xp:modifyfield name="room">                 <xp:this.value><![cdata[#{javascript:                     nm = getcomponent("from_name").value;                      @dblookup("names.nsf", "full name", nm, 10);                 }]]></xp:this.value>             </xp:modifyfield>         </xe:this.action>     </xp:eventhandler> </xe:djfilteringselect> 

add dojo attribute required value false other djfilteringselect controls:

  <xe:this.dojoattributes>      <xp:dojoattribute         name="required"         value="false">      </xp:dojoattribute>   </xe:this.dojoattributes> 

enter image description here

with additional client side attribute won't yellow exclamation point errors anymore.


Comments

Popular posts from this blog

android - Get AccessToken using signpost OAuth without opening a browser (Two legged Oauth) -

org.mockito.exceptions.misusing.InvalidUseOfMatchersException: mockito -

google shop client API returns 400 bad request error while adding an item -