CX Extension Generator

The CX Extension Generator helps you extend the Subscription Redwood experience more easily.

It automatically generates user interfaces for custom objects that align with the Subscription Redwood experience and related objects. It supports both parent-child and many-to-many relationships and includes configurable smart actions that make common user workflows quicker and easier. The generator produces a ready-to-extend Visual Builder project, enabling you to continue enhancing it over time without having to start from scratch.

Using the CX Extension Generator makes it faster to deliver application extensions and new modules. It reduces development effort and reliance on specialized UI skills, while ensuring design consistency across standard and custom features. It also improves agility when responding to evolving business processes as per organization needs and helps lower the cost of modifications and future maintenance.

You can access the CX Extension Generator by navigating to Application Composer > CX Extension Generator.

Update and Migrate Subscription Layouts to Redwood

Here's how you can update and migrate your subscription layouts to Redwood using the CX Extension Generator:

  1. Enter a Sandbox and open Application Composer.

  2. In Application Composer, go to Objects > Standard Objects > Subscription > Pages.

  3. In the Application Pages tab, go to Details Page Layouts.

  4. Select the appropriate layout.

  5. After making your changes, click Done.

  6. To migrate the existing modifications to Redwood, go to Common Setup > Metadata Manager.

  7. In the Configuration Report section, click Generate.

  8. In the Generate Configuration Report dialog box, select Selected Objects and add the relevant Subscription Management related objects.

  9. Click Generate.

  10. After the process is complete, in the Configuration Report, select the report created by you and click Export > XML.

  11. After the report has downloaded, go to Common Setup > CX Extension Generator.

  12. Click Create New Extension.

  13. When the Add Objects drawer opens, for the Application field select Subscriptions, and in the Objects field add the appropriate custom objects.

  14. Click Done.

  15. Click the More Actions icon and select Migrate Legacy Layouts.

  16. When the Migrate Legacy Layouts drawer opens, drag and drop the Configuration Report that you exported from Application Composer.

  17. After the file is imported, you can create custom tabs for your objects. Select the object, then on the object page click Configure > Select Legacy Layouts.

  18. Add and save your changes.

  19. Navigate back to the CX Extension Generator parent page and click Generate Extensions. A .zip file is downloaded, which you can import into Visual Builder Studio.

  20. To access Visual Builder Studio, open the Settings and Actions menu and select Edit Page in Visual Builder Studio.

  21. Click the Menu icon and then select Import.

  22. Import the .zip file that you downloaded in the previous step.

  23. Make your changes and preview them by selecting the Preview icon. Click Publish

Configure a New Subscription Management Extension

After creating your first Subscription Management extension in Oracle Visual Builder Studio, configure its extension ID and install the predefined application UI.

  1. Open the extension in Visual Builder Studio.

  2. Open Settings.

  3. Set Extension ID to site_cxsubscriptions_Extension.

  4. Open the Components tab.

  5. Search for Subscriptions Management and install the predefined application UI.

Set the Default Tab on Detail Pages

You can specify which tab is selected when users open a subscription or subscription product detail page.

  1. Open the subscriptions-detail page in Visual Builder Studio.

  2. Extend the vbEnter event listener and add an action chain.

  3. In the action chain, assign the layout display property value for the required tab to the corresponding variable:
    Detail Page Variable
    Subscription $base.variables.subscriptionSelection
    Subscription Product $base.variables.selection

    To also display the selected tab first in the tab sequence, clone the corresponding dynamic container and reorder its tabs.

Configure Navigation for Custom-Content Tabs

When you add a tab containing custom content, such as a mash up, configure tab-status handling for navigation between tabs.

  1. Open the subscriptions-detail page.

  2. Extend the setTabStatus event and create an action chain.

  3. In the action chain, set $base.variables.isValid to true only when selectedTab matches the custom tab name.

  4. Add a value change listener to drawerProperties. In its action chain, set $base.variables.isValid to true only when $base.variables.subscriptionSelection matches the custom tab name.

  5. Add a value change listener to primaryDrawerProperties. In its action chain, set $base.variables.isValid to true only when $base.variables.selection matches the custom tab name.

The value change listeners handle tab status when users cancel an action or navigate back.