Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Deep links allow navigation between Pricefx and Enable by enabling URLs that can be added to a Pricefx document (e.g., a Quote). This functionality improves the user experience by allowing direct access to specific location in Enable Rebate Management.

Important Link Parameters

  • targetPage: Defines the specific page to which the deep link will redirect.

  • targetPageState: Contains additional parameters (e.g., id) that specify the state of the target page.

  • targetPageTarget (optional): Specifies whether the link opens in the same tab ("same") or a new tab ("new"). Default is "new".

  • AppPages: Represents predefined references for Enable pages in Pricefx Groovy API.

There are two ways to create links:

  1. Using AppPages: If AppPages for the desired link location exist, they can be used to create the link easily.

  2. Manual Link Creation: If AppPages are unavailable, links can be manually created based on predefined /wiki/spaces/PMDEV/pages/5773656124.

Example 1: When AppPages is Available

The following example shows how to create a deep link to Enable using AppPages:

Code Block
languagegroovy
return [
    label: "Settings", //the text displayed for the link
    targetPage: AppPages.ENABLE_SETTINGS, //Refers to AppPages.ENABLE_SETTINGS, a predefined reference for the Enable settings page
    targetPageState: [
        id: "183" //Specifies additional parameters for the deep link, "id" in this case.
    ]
]