Note that there are some explanatory texts on larger screens.

plurals
  1. POAdding a custom error to a table after a invalid search has been run when there is already text in the table
    primarykey
    data
    text
    <p>When a search is ran if there are no results a "No results found" line is added to the table. When a invalid search is ran such as a user searching for a fake country. I need to access the label database and enter the invalid country error instead of the "No results found". </p> <pre><code>if(SearchResults.empty){ searchError.add(ss.getLabel("UASJSNSER", request)); SearchResults.append(searchError); } </code></pre> <p>This doesn't override the "No results found" that happens when there are no results.<br> The SearchResults is the table and the searchError the variable that holds the error when an search error happens. </p> <p><em><strong>UPDATE</em></strong></p> <p>SearchResults is the table that is filled with the data after the search runs.</p> <pre><code>&lt;tr class="odd"&gt; &lt;td class=" sorting_1"&gt;0001UK&lt;/td&gt; &lt;td class=""&gt; &lt;td class=""&gt;Pl,anPlus Inc&lt;/td&gt; &lt;td class=""&gt;PlanPlus PlanIt&lt;/td&gt; &lt;td class=""&gt;Permanent Access&lt;/td&gt; &lt;td class=""&gt;&lt;/td&gt; &lt;td class=""&gt; &lt;a href="loadAdvisor.do?planner=0001UK"&gt;Edit&lt;/a&gt; | &lt;a href="javascript:popUp('deleteadvisor.jsp?action=&amp;planner=0001UK');"&gt;Delete&lt;/a&gt; &lt;/td&gt; &lt;/tr&gt; //this Is when a search happens that has results &lt;tr class="odd"&gt; &lt;td class="dataTables_empty" valign="top" colspan="7"&gt;No records found&lt;/td&gt; &lt;/tr&gt; &lt;/tbody&gt; //Instead of it saying No records found I need it to say the error I call from the database. </code></pre>
    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.
    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