Opened 2 years ago

Closed 2 years ago

#2282 closed enhancement (fixed)

Add support for extension columns when adding parent/child item columns

Reported by: Nicklas Nordborg Owned by: everyone
Priority: major Milestone: BASE 3.19.4
Component: web Version:
Keywords: Cc:

Description

The current parent/child item column feature (implemented in #2202 and #2218) include support for some simple properties such as name, external id, etc. and annotations.

It would be nice to have the possibility to add support for columns that are created/handled by extensions.

Change History (19)

comment:1 by Nicklas Nordborg, 2 years ago

In 8055:

References #2282: Add support for extension columns when adding parent/child item columns

The "Add parent or child item column" dialog now supports selecting extension columns.

The RelatedItemColumn implementation has been updated to create a column definition but it lacks functionality for actually calling the extension.

comment:2 by Nicklas Nordborg, 2 years ago

In 8056:

References #2282: Add support for extension columns when adding parent/child item columns

Added functionality for calling the extension and retrieve the values. This seems to work pretty well, but more error handling is needed and the extensions never get the chance to add anything to the current JspContext.

comment:3 by Nicklas Nordborg, 2 years ago

In 8057:

References #2282: Add support for extension columns when adding parent/child item columns

This file should have been included in [8056].

comment:4 by Nicklas Nordborg, 2 years ago

In 8058:

References #2282: Add support for extension columns when adding parent/child item columns

Extensions should now be able to add scripts and stylesheets to the main JSP context.

comment:5 by Nicklas Nordborg, 2 years ago

In 8059:

References #2282: Add support for extension columns when adding parent/child item columns

The lazy-item placeholder tag is replaced with the new content generated by the extension instead of putting the content inside the placeholder. This will fix issues with CSS rules that doesn't work as expected due to the extra level that is not there if lazy-loading is not used.

comment:6 by Nicklas Nordborg, 2 years ago

In 8060:

References #2282: Add support for extension columns when adding parent/child item columns

Implemented support for selecting an existing any-to-any column from the parent/child list.

comment:7 by Nicklas Nordborg, 2 years ago

In 8061:

References #2282: Add support for extension columns when adding parent/child item columns

Implemented support for filtering on extension columns.

comment:8 by Nicklas Nordborg, 2 years ago

In 8062:

References #2282: Add support for extension columns when adding parent/child item columns

Lazy-loading should now work also for extensions that use "context attributes" for temporary storage of settings while the page is being loaded. The attributes that have been set are stored in the current ItemContext instance (which is session-scoped) and can then be used also by the lazy-loading code.

comment:9 by Nicklas Nordborg, 2 years ago

In 8063:

References #2282: Add support for extension columns when adding parent/child item columns

Fixes a NullPointerException when the lazy column doesn't return a formatter instance.

comment:10 by Nicklas Nordborg, 2 years ago

In 8064:

References #2282: Add support for extension columns when adding parent/child item columns

Added ListColumnAction.getCollectionFormatter() method so that extensions can control how multi-valued results are combined. The default is to use comma-separated list.

Added getter methods to the Specification class so that extensions can access more information via the ClientContext.getCurrentItem().

comment:11 by Nicklas Nordborg, 2 years ago

In 8065:

References #2282: Add support for extension columns when adding parent/child item columns

Improved error handling and moved code for setting title/tooltip etc to subclasses of RelatedItemColumn.

comment:12 by Nicklas Nordborg, 2 years ago

In 8066:

References #2282: Add support for extension columns when adding parent/child item columns

Fixing issues with setting up the correct columns and filters when working with an item list that has a synchronization filter that uses extension and/or related-item columns. There may still be some issues but seems to work in the tested cases.

comment:13 by Nicklas Nordborg, 2 years ago

In 8067:

References #2282: Add support for extension columns when adding parent/child item columns

Added support for selecting another related-item column when selecting a column from a parent item. The limitation is that the path must be child -> parent -> child.

This special case is handled internally by the RelatedItemColumn extension which knows how to extend the transform to load the correct parent and child items.

comment:14 by Nicklas Nordborg, 2 years ago

In 8068:

References #2282: Add support for extension columns when adding parent/child item columns

Fixing one issue with displying a nicely formatted string for multi-hop parent/child relations.

Fixing a similar issue when creating a multi-hop column definition which failed when adding filters from an item list with synchronization filters.

comment:15 by Nicklas Nordborg, 2 years ago

In 8069:

References #2282: Add support for extension columns when adding parent/child item columns

Added a new icon for multi-hop parent/child links.

comment:16 by Nicklas Nordborg, 2 years ago

In 8071:

References #2282: Add support for extension columns when adding parent/child item columns

Do not include columns that would create invalid multi-hop specifications. For example two PARENT hops or a CHILD-PARENT.

comment:17 by Nicklas Nordborg, 2 years ago

In 8072:

References #2282: Add support for extension columns when adding parent/child item columns

Changed how a multi-hop link is displayed so that the arrow icons pointing up/down are separated and just before the name of the parent/child item type.

comment:18 by Nicklas Nordborg, 2 years ago

In 8073:

References #2282: Add support for extension columns when adding parent/child item columns

Fixes some display issues when the column title has HTML elements.

comment:19 by Nicklas Nordborg, 2 years ago

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.