Corrections to navigation to related records.
authorMurray Cumming <murrayc@murrayc.com>
Tue, 15 May 2012 11:20:21 +0000 (13:20 +0200)
committerMurray Cumming <murrayc@murrayc.com>
Tue, 15 May 2012 11:20:21 +0000 (13:20 +0200)
commitbc86d6c6e4e4dc377114c6b978617d472809d106
tree12dcd5704dfe14ed76bc14476d8929c33277b832
parent813a00b226843fc00c0669d763f98792d384de4f
Corrections to navigation to related records.

* src/main/java/org/glom/web/client/OnlineGlomService.java:
* src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
* src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
getRelatedListData(), getSortedRelatedListData)(), getRelatedListRowCount(),
getSuitableRecordToViewDetails(): Take a LayoutItemPortal instead of a
relationship name, because the relationship name is not necessarily unique
on the layout.
TOOD: This is inefficient, because it passes the whole list of
child field items back to the server, but it is more correct, and happens
to fix a bug with the primary key being lost after a few navigations.
There is probably a chance to make this more efficient anyway in some
more basic way.

* src/main/java/org/glom/web/client/activity/DetailsActivity.java
* src/main/java/org/glom/web/client/ui/details/RelatedListTable.jav
* src/main/java/org/glom/web/server/ConfiguredDocument.java
* src/main/java/org/glom/web/server/database/DBAccess.java
* src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
* src/main/java/org/glom/web/server/database/RelatedListNavigation.java:
Adapted.
ChangeLog
src/main/java/org/glom/web/client/OnlineGlomService.java
src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java
src/main/java/org/glom/web/client/activity/DetailsActivity.java
src/main/java/org/glom/web/client/ui/details/RelatedListTable.java
src/main/java/org/glom/web/server/ConfiguredDocument.java
src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java
src/main/java/org/glom/web/server/database/DBAccess.java
src/main/java/org/glom/web/server/database/RelatedListDBAccess.java
src/main/java/org/glom/web/server/database/RelatedListNavigation.java