You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ofbiz.apache.org by jl...@apache.org on 2009/04/26 00:12:51 UTC
svn commit: r768616 - in /ofbiz/trunk/framework/webtools/webapp/webtools:
WEB-INF/actions/entity/EntityMaint.groovy entity/EntityMaint.ftl
Author: jleroux
Date: Sat Apr 25 22:12:50 2009
New Revision: 768616
URL: http://svn.apache.org/viewvc?rev=768616&view=rev
Log:
A patch from Ritika Somani "Add Tiny Text Box for Entity Name Search" (https://issues.apache.org/jira/browse/OFBIZ-2273) - OFBIZ-2273
Modified:
ofbiz/trunk/framework/webtools/webapp/webtools/WEB-INF/actions/entity/EntityMaint.groovy
ofbiz/trunk/framework/webtools/webapp/webtools/entity/EntityMaint.ftl
Modified: ofbiz/trunk/framework/webtools/webapp/webtools/WEB-INF/actions/entity/EntityMaint.groovy
URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/webtools/webapp/webtools/WEB-INF/actions/entity/EntityMaint.groovy?rev=768616&r1=768615&r2=768616&view=diff
==============================================================================
--- ofbiz/trunk/framework/webtools/webapp/webtools/WEB-INF/actions/entity/EntityMaint.groovy (original)
+++ ofbiz/trunk/framework/webtools/webapp/webtools/WEB-INF/actions/entity/EntityMaint.groovy Sat Apr 25 22:12:50 2009
@@ -31,6 +31,9 @@
filterByGroupName = parameters.filterByGroupName;
context.filterByGroupName = filterByGroupName;
+filterByEntityName = parameters.filterByEntityName;
+context.filterByEntityName = filterByEntityName;
+
reader = delegator.getModelReader();
entities = new TreeSet(reader.getEntityNames());
@@ -43,6 +46,9 @@
if (filterByGroupName && !filterByGroupName.equals(delegator.getEntityGroupName(entity.getEntityName()))) {
return;
}
+ if (filterByEntityName && !((String)entity.getEntityName()).toUpperCase().contains(filterByEntityName.toUpperCase())) {
+ return;
+ }
viewEntity = "N";
if (entity instanceof ModelViewEntity) {
Modified: ofbiz/trunk/framework/webtools/webapp/webtools/entity/EntityMaint.ftl
URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/webtools/webapp/webtools/entity/EntityMaint.ftl?rev=768616&r1=768615&r2=768616&view=diff
==============================================================================
--- ofbiz/trunk/framework/webtools/webapp/webtools/entity/EntityMaint.ftl (original)
+++ ofbiz/trunk/framework/webtools/webapp/webtools/entity/EntityMaint.ftl Sat Apr 25 22:12:50 2009
@@ -33,6 +33,8 @@
<option value="${group}" <#if filterByGroupName?exists><#if group = filterByGroupName>selected</#if></#if>>${group}</option>
</#list>
</select>
+ <b>${uiLabelMap.WebtoolsEntityName}:</b>
+ <input type= "text" name= "filterByEntityName" value="${parameters.filterByEntityName?if_exists}">
<input type="submit"/>
</form>
</p>