Opened 13 years ago

Closed 13 years ago

#282 closed task (fixed)

Add example of an edit-dialog extension

Reported by: Nicklas Nordborg Owned by: Nicklas Nordborg
Priority: major Milestone: Example code v1.3
Component: net.sf.basedb.examples.extensions Keywords:
Cc:

Description

See http://base.thep.lu.se/ticket/1545

We should come up with some kind of simple example. One possibility is an extension that adds an any-to-any link with a file. This could be used to test http://base.thep.lu.se/ticket/1543 at the same time.

Change History (6)

comment:1 by Nicklas Nordborg, 13 years ago

Status: newassigned

comment:2 by Nicklas Nordborg, 13 years ago

(In [1269]) References #282: Add example of an edit-dialog extension

Adds a "Sample history file" tab to the "Edit sample" dialog. In the tab a user may select a file to link with the sample. It remains to implement an extension that saves the link.

comment:3 by Nicklas Nordborg, 13 years ago

(In [1270]) References #282: Add example of an edit-dialog extension

Add the on-save part to the "Edit sample" dialog.

comment:4 by Nicklas Nordborg, 13 years ago

(In [1271]) References #282: Add example of an edit-dialog extension

Add LastUpdatedBy extensions that automatically creates an any-to-any link between any item and the currently logged in user.

comment:5 by Nicklas Nordborg, 13 years ago

(In [1272]) References #282: Add example of an edit-dialog extension

The LastUpdatedBy extensions can't create AnyToAny to non-BasicItem classes (eg. reporter) so print some debug info instead.

comment:6 by Nicklas Nordborg, 13 years ago

Resolution: fixed
Status: assignedclosed

(In [1273]) Fixes #282: Add example of an edit-dialog extension

Changed the "History file" extension to extend both the sample and extract edit dialogs to give an example of http://base.thep.lu.se/ticket/1554

Note: See TracTickets for help on using tickets.