Quantcast
Channel: Apache Timeline
Viewing all articles
Browse latest Browse all 5648

Displaying 'No record Found' in the form widget

$
0
0
hi,

my objective is to put a message stated 'No record found' when the
searching criteria does not return any result.

i had tried the below option, but it is not working

Option 1
<set field="listItSize" value="${groovy:listIt.nextIndex()}"
type="Integer"/>
<field use-when="listItSize == null"

Option 2
use-when="${groovy:org.ofbiz.base.util.UtilValidate.isEmpty(listIt)}"

are there any workaround on this ?
It seem the widget or the engine would not render the <field> when it is
empty result from the

<service service-name="performFind" result-map="result"
result-map-list="listIt">

thus causing the "use-when" not evaluated.

Viewing all articles
Browse latest Browse all 5648

Trending Articles