Opened 12 years ago

Closed 12 years ago

Last modified 12 years ago

#318 closed task (fixed)

EditFeature_Copy - copy user-specified attributes

Reported by: adube Owned by:
Priority: critical Milestone: 1.2.0
Component: widgets Version:
Keywords: Cc:

Description

When copying a feature, it would be nice to be able to copy the attributes we really want to be copied, and not all of them (current).

Change History (4)

comment:1 by adube, 12 years ago

Here's how it could be done : either use use the resource fields OR a resource option (for users that don't want to bother use the fields, which can sometime be a pain). The behavior would be :

  • (1) check for the 'copyFieldList' resource option and copy these fields if any.
  • (2) else, check for the resource fields.
    • (a) If none is set, then copy all fields
    • (b) else, browse all fields and look for fields with the 'copy' option. Use these fields. If none are set, then copy all fields.

comment:2 by adube, 12 years ago

r1154 : the drag and copy demo on dev4g.mapgears.com wasn't working well, so it was moved to dev8 instead.

comment:3 by adube, 12 years ago

Resolution: fixed
Status: newclosed

r1155, featuring :

  • a new 'copyFieldList' resource option used by the !EditFeature_Copy widget as a comma-separated list of fields to copy.
  • documentation about this added
  • sample updated.

That covers the (1) point mentioned above. We'll not do (2) until someone needs it, so I'm closing this ticket as fixed. Please, feel free to re-open or create a new ticket if (2) becomes required.

comment:4 by adube, 12 years ago

r1156, when an attribute was not found for copy, set its value to null instead of (empty string).

Note: See TracTickets for help on using tickets.