How can I copy a page in a script
Author: liam_davison
Publication Date: 8/9/2016 14:57
Hello,
FirstSpirit 5.1.605.
I need to be able to copy an existing page in a script. Is there an API that allows me to copy a Page and all its sections and form data? Or will I need to create a new page and loop over all the sections, etc, recreating them in the new page?
I can't find a copy() or clone() or duplicate() method in either Page or IDProvider or StoreElement classes.
Many thanks,
Liam Davison
Tags: copy, page, scripting
0
-
Author: jan-tilo - 8/9/2016 15:32
Hi Liam,
try to use AccessUtil.copyStoreElement(T element, StoreElement parent);
Kind regards,
Jan Tilo
0
Bitte melden Sie sich an, um einen Kommentar zu hinterlassen.
Kommentare
1 Kommentar