I've a problem getting the new object-id on creation on new content for the a particular scenario in Web Publisher.
(Not sure why, but the text did not render; here is the question again)
Hi,
How do i get the new object-id for scenario #4 on creation of new content? See image below for scenario #4. Thanks!
(NEW_OBJECT_IDS does not retrieve the new object ids for newcontentcontainer)
NEW_OBJECT_IDS
Create New Content in WP has the following four scenarios:
Check the "Edit" checkbox (COMPONENTS used): 1) Create New Content and checking the "Edit" checkbox (newcontentcontainer --> wpcontenttemplatelocatorcontainer --> wp_editcontainer) 2) Create New Content via File Browser and checking the "Edit" checkbox (newcontentcontainer --> wpcontenttemplatelocatorcontainer --> wp_editcontainer)
Without checking the "Edit" checkbox (COMPONENTS used): 3) Create New Content (newcontentcontainer --> wpcontenttemplatelocatorcontainer --> wp_checkoutcontainer) 4) Create New Content via File Browser without checking the "Edit" checkbox (newcontentcontainer --> wpcontenttemplatelocatorcontainer --> ???)
For scenarios #1 and #2, I get it as an argument during onInit() for wp_editcontainer component. For scenario #3, I get it as an argument during onInit() for wp_checkoutcontainer component.
Oy! Oy!
Looks like it needs to be from the NewContent component. Not the container.
Done and dusted.