|
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.
--
Disclaimer : This E-mail is intended only for the use of the individual or
entity named above and may contain information that is confidential. If you
are not the intended recipients, please immediately notify us by return
email and delete it from your system. Any unauthorised dissemination,
distribution or copying of this email is strictly prohibited. Thank You.
|