Note that there are some explanatory texts on larger screens.

plurals
  1. POinputText onchange event not called after inactivity
    primarykey
    data
    text
    <p>I have a typeahead enabled on an inputText field which triggers an onChange event. This works fine unless the page has not been refreshed for a period of time (in testing, it stops working after 1 hour but may be less). Refreshing the page completely fixes the issue.</p> <p>The code for the inputText field is as follows;</p> <pre><code>&lt;xp:inputText id="quickSelectEntry" style="width:170px;"&gt; &lt;xp:this.dojoAttributes&gt; &lt;xp:dojoAttribute name="placeHolder" value="Enter name"&gt; &lt;/xp:dojoAttribute&gt; &lt;/xp:this.dojoAttributes&gt; &lt;xp:typeAhead mode="none" minChars="2" ignoreCase="true" var="searchValue" valueMarkup="true"&gt; &lt;xp:this.valueList&gt;&lt;![CDATA[#{javascript:return nameTypeAhead(searchValue)}]]&gt;&lt;/xp:this.valueList&gt; &lt;/xp:typeAhead&gt; &lt;xp:eventHandler event="onchange" submit="true" refreshMode="norefresh"&gt; &lt;xp:this.action&gt; &lt;xp:actionGroup&gt; &lt;xp:executeScript&gt; &lt;xp:this.script&gt;&lt;![CDATA[#{javascript:var searchVal:string = getComponent("quickSelectEntry").getValue(); if (searchVal.substr(0,1).equals("?")) { context.redirectToPage("xCheckSecurityGroup.xsp?group=" + searchVal.substr(1)); return false; } else { var doc:NotesDocument = quickLookupView.getDocumentByKey(searchVal, true); if (null != doc) { viewScope.lookupKey = doc.getUniversalID(); viewScope.lookupForm = doc.getItemValueString("form"); return true; } else { viewScope.lookupKey = "" viewScope.lookupForm = "" return false; } } ]]&gt;&lt;/xp:this.script&gt; &lt;/xp:executeScript&gt; &lt;xp:actionGroup&gt; &lt;xp:this.condition&gt;&lt;![CDATA[#{javascript:viewScope.lookupKey != ""}]]&gt;&lt;/xp:this.condition&gt; &lt;xp:openPage target="openDocument" documentId="#{javascript:return viewScope.lookupKey}"&gt; &lt;xp:this.name&gt;&lt;![CDATA[#{javascript:return "x" + viewScope.lookupForm + ".xsp" }]]&gt;&lt;/xp:this.name&gt; &lt;/xp:openPage&gt; &lt;/xp:actionGroup&gt; &lt;/xp:actionGroup&gt; &lt;/xp:this.action&gt; &lt;/xp:eventHandler&gt; </code></pre> <p></p> <p>So far I've tried doing a timed partial refresh of the containing panel with no joy, I've set the typeahead mode from none to full. No difference. </p> <p>Aside from refreshing the page every 10 minutes, is there anything else that couple be causing the problem. FYI The actual typeahead is working correctly consistently, its just the onchange event that stops firing.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload