This is an automated email from the ASF dual-hosted git repository.
dixitdeepak pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/ofbiz-framework.git
The following commit(s) were added to refs/heads/trunk by this push:
new 4226b60676 Replaced the application-specific example for the optional
andCondition parameter in LookupScreens.xml with a self-contained
example.(OFBIZ-13305)
4226b60676 is described below
commit 4226b606764b1ed54a3ebf80f667e43613356924
Author: Deepak Dixit <[email protected]>
AuthorDate: Wed Jul 1 12:39:33 2026 +0530
Replaced the application-specific example for the optional andCondition
parameter in LookupScreens.xml with a self-contained example.(OFBIZ-13305)
---
framework/common/widget/LookupScreens.xml | 25 +++++++++++++++++++------
1 file changed, 19 insertions(+), 6 deletions(-)
diff --git a/framework/common/widget/LookupScreens.xml
b/framework/common/widget/LookupScreens.xml
index c2f0cb699c..543b766990 100644
--- a/framework/common/widget/LookupScreens.xml
+++ b/framework/common/widget/LookupScreens.xml
@@ -42,9 +42,16 @@ under the License.
<!-- optional: fields to display in the given order, default
is searchFields -->
<set field="displayFields" value="[geoId, geoName, geoCode]"/>
-
- <!-- optional: additional entity condition (named
andCondition) added to search query -->
- <!-- example : script
location="component://party/src/main/groovy/org/apache/ofbiz/party/party/StatusCondition.groovy"
/-->
+
+ <!-- Optional: Add an additional entity condition
(`andCondition`) to the search query.
+ Create the condition in a Groovy script and
expose it in the screen context. -->
+ <!-- Example:
+ exprList = [
+ EntityCondition.makeCondition("geoTypeId",
EntityOperator.NOT_EQUAL, "PROVINCE"),
+ EntityCondition.makeCondition("geoCode",
EntityOperator.NOT_EQUAL, null)
+ ]
+ context.andCondition =
EntityCondition.makeCondition(exprList, EntityOperator.AND)
+ -->
</actions>
<widgets>
<decorator-screen name="LookupDecorator"
location="component://common/widget/CommonScreens.xml">
@@ -80,9 +87,15 @@ under the License.
<!-- optional: fields to display in the given order, default
is searchFields -->
<set field="displayFields" value="[geoId, geoName, geoCode]"/>
- <!-- optional: additional entity condition (named
andCondition) added to search query -->
- <!-- example : script
location="component://party/src/main/groovy/org/apache/ofbiz/party/party/StatusCondition.groovy"
/-->
-
+ <!-- Optional: Add an additional entity condition
(`andCondition`) to the search query.
+ Create the condition in a Groovy script and expose it
in the screen context. -->
+ <!-- Example:
+ exprList = [
+ EntityCondition.makeCondition("geoTypeId",
EntityOperator.NOT_EQUAL, "PROVINCE"),
+ EntityCondition.makeCondition("geoCode",
EntityOperator.NOT_EQUAL, null)
+ ]
+ context.andCondition =
EntityCondition.makeCondition(exprList, EntityOperator.AND)
+ -->
</actions>
<widgets>
<decorator-screen name="LookupDecorator"
location="component://common/widget/CommonScreens.xml">