xpages - copy contents view to 2 strings -


i have view build based on search . on click of button: copy first 10 rows of column "city" 1 string. between each city add characters "\r" .so result string :"rome \r berlin \r paris ..." remaining rows (from 11 till end) should copied string.

something work:

<xp:this.data>    <xp:dominoview var="view2"         viewname="<<viewname>>">    </xp:dominoview> </xp:this.data>  <xp:inputtext>     <xp:this.value><![cdata[#{javascript:      var length = view2.getentrycount();      var entries = view2.getallentries();      var = 0;      var currententry = entries.getfirstentry();      var list = "";       while(i < length)      {         list += currententry.getcolumnvalues().elementat(1);          currententry = entries.getnextentry();         i++;      }       return list; }]]></xp:this.value> </xp:inputtext> 

replace <> name of view. add check see when have 10 values , add string , place "\r" value want @ end of string. can view inside server side script depending on how want this.

if displaying pages of data there controls such dataview can given view datasource, told columns display , told how many rows show per page.


Comments

Popular posts from this blog

java - Play! framework 2.0: How to display multiple image? -

gmail - Is there any documentation for read-only access to the Google Contacts API? -

php - Controller/JToolBar not working in Joomla 2.5 -