Successfully!

Error!

[App] JS Custom Hyperlink Title

  • Last update:  2021-12-23
  • I. Description

    Scenario description: When we use the report link to jump, we will find that our jump title is the report name, but under normal circumstances, our report names are all in Chinese, this way. The customer experience is relatively poor, so we need to solve this situation.

    1.png

    II. Ideas

    When calling the report through Hyperlink JS, you can pass the parameter title. For example, the value isQuick Start. When the Hyperlink is opened, the title will display Quick Start.

    III. Operation steps

    First, we create two cpt tables, respectively as the following figure:

    2.png

    This cpt is a linked report. Click the report link here to jump to the next report. Create the linked report below, as follows:

    3.png

    Now, let's explain the code reason why we did this:

    We have added JSON object usage in Hyperlink JS, and the parameter title only supports the new JSON object parameter method

    The specific usage is as follows:

    FR.doHyperlinkByGet({url : 'address', title : 'title', para : {}})

    For example:

    FR.doHyperlinkByGet({url:'${servletURL}?viewlet=JS Hyperlink custom title sub-table.cpt',
    title:'Title is me',para:{area:'North China'}});

    Among them, area is the parameter name of the JS hyperlink custom title subtable.cpt.

    IV. Mobile terminal preview Note: title is only supported in App, not on PC and H5.

    4.gif

    V. Download template

    Please refer to the completed template: 

    %FR_HOME%\webapps\webroot\WEB-INF\reportlets\doc-EN\JS\JS_hyperlink_custom_title.cpt

    %FR_HOME%\webapps\webroot\WEB-INF\reportlets\doc-EN\JS\JS_Hyperlink_custom_title_sub-table.cpt

    Click to download:

    JS_hyperlink_custom_title.cpt

    JS_Hyperlink_custom_title_sub-table.cpt

    Attachment List


    Theme: Fine Mobile
    Already the First
    Already the Last
    • Helpful
    • Not helpful
    • Only read

    Doc Feedback