[
https://issues.apache.org/jira/browse/OFBIZ-1921?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12622808#action_12622808
]
lukeprentice edited comment on OFBIZ-1921 at 8/14/08 10:09 PM:
----------------------------------------------------------------
i propose sorting on the constructed (title + relEntityName). patch attached.
was (Author: lukeprentice):
i propose sorting on the constructed (title + relEntityName). patch below:
Index:
framework/webtools/webapp/webtools/WEB-INF/actions/entity/ViewGeneric.groovy
===================================================================
---
framework/webtools/webapp/webtools/WEB-INF/actions/entity/ViewGeneric.groovy
(revision 111)
+++
framework/webtools/webapp/webtools/WEB-INF/actions/entity/ViewGeneric.groovy
(working copy)
@@ -308,6 +308,7 @@
mapRelation.put("type", relation.getType());
mapRelation.put("title", relation.getTitle());
mapRelation.put("relEntityName", relation.getRelEntityName());
+ mapRelation.put("sortName", relation.getTitle() +
relation.getRelEntityName());
mapRelation.put("relatedTable", relatedEntity.getEntityName());
mapRelation.put("relCreate", relCreate);
@@ -422,5 +423,5 @@
}
}
}
-context.put("relationFieldList", relationFieldList);
+context.put("relationFieldList", UtilMisc.sortMaps(relationFieldList,
UtilMisc.toList("sortName")));
context.put("relSize", relationFieldList.size() + 2);
> Sort related entities in ViewGeneric
> ------------------------------------
>
> Key: OFBIZ-1921
> URL: https://issues.apache.org/jira/browse/OFBIZ-1921
> Project: OFBiz
> Issue Type: Improvement
> Components: framework
> Affects Versions: SVN trunk
> Environment: ubuntu 8.04
> Reporter: Luke Prentice
> Priority: Minor
> Attachments: ViewGeneric.groovy.diff
>
> Original Estimate: 0.02h
> Remaining Estimate: 0.02h
>
> when viewing an entity the related entities under "View" are sorted in any
> meaningful way. (eg,
> https://localhost:8443/webtools/control/ViewGeneric?entityName=Party&partyId=10000)
> i propose sorting them in ViewEntity.groovy
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.