xpages FTsearch to excel not working for input fields being blank -


my xpage creating excel file is:

  <?xml version="1.0" encoding="utf-8"?> <xp:view xmlns:xp="http://www.ibm.com/xsp/core" rendered="false">     <xp:this.afterrenderresponse><![cdata[#{javascript:   // conditions  qstring = tmparray.join(" , ").trim();  sessionscope.querystring = qstring;  myview.ftsearch(qstring);  var vec:notesviewentrycollection = myview.getallentries()    // code write  // code  </xp:view> 

what noticed: example if let input fields blank, excel file should contain documents saved in xpinc application, redirect me blank xpage : ( http://domain/xb.nsf/export_hidden.xsp ).

i use ftsearch modulo within button, search ( letting input fields blank ) expected, works: displays documents via viewpanel.

i appreciate time.

if search fields empty don't need execute ftsearch(). myview.getallentries() still work , return documents in view without calling ftsearch().

... if (cterms > 0) {     qstring = tmparray.join(" , ").trim();      sessionscope.querystring = qstring;      myview.ftsearch(qstring); }  var vec:notesviewentrycollection = myview.getallentries(); ... 

Comments

Popular posts from this blog

commonjs - How to write a typescript definition file for a node module that exports a function? -

openid - Okta: Failed to get authorization code through API call -

ios - Change Storyboard View using Seague -