How To: Add a breadcrumb confirmation dialog to a Custom Item
This functionality has been designed to prevent users from losing unsaved data when clicking a breadcrumb that would otherwise close the custom item.
This functionality can be tested by creating a new Custom Item and adding it into the implementation, as the Form Template contains this functionality by default.
Follow the steps below to implement this in your Project:
- Create a new Project and add the CPQ-CustomItem Form Template.
This Project will be used to copy various functionality into the existing Project.
- Create a new form called BreadcrumbConfirmation in the existing Project.
- Copy the controls from the BreadcrumbConfirmation form (in the new Custom Item Project) into the existing Project.
- Copy the Overlay and ConfirmationFrame form controls (from the Main form of the new Custom Item Project) onto the Main form in the existing Project.
- Copy all of the Macros within the Breadcrumb folder (in the new Custom Item Project) into the existing Project.
- Create a new Constant called DWConstantShowConfirm in the existing Project.
- Navigate to the location created for the new Custom Item Project.
Copy the contents of the <Template Name> CPQ-CustomItem\UI folder into the equivalent location of the existing Project.
Some of the existing files will need to be overwritten.