Timeline for How do I update my Component (metadata) fields while copy/pasting a Component, using EventSystem?
Current License: CC BY-SA 3.0
4 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Nov 21, 2014 at 18:18 | comment | added | Rick Pannekoek |
What I meant is that you can change the in-memory state of the event subject (the component parameter in your example code) in the Initiated phase; you should not check-out/save/check-in that parameter (because it represents the source of the copy operation), but its state will be used as source of the copy operation (so will be reflected in version 1 of the copied object). Unfortunately, I have to add that this trick only works for the Title property.
|
|
Nov 21, 2014 at 15:58 | comment | added | Mario van der Hoeven-Riesebos | It seems not possible to edit the Component while copying it. Copy/Paste will not trigger the save & checkin events, so it must be dealt with in (the initialized phase of the) copy-event. In this phase the copiedObject is still null. In order to modify the copied component, I must checkout & save the component in the processed phase of the copy event | |
Nov 20, 2014 at 19:42 | review | First posts | |||
Nov 21, 2014 at 8:30 | |||||
Nov 20, 2014 at 19:42 | history | answered | Rick Pannekoek | CC BY-SA 3.0 |