Successfully!

Error!

[APP]Refresh when the page is reproduced and unsubmitted data reminder

  • Last update:  2021-12-14
  • I. Version

    Report server versionApp version

    HTML5 report display plugin

    version

    10.0v10.0v10.2

    II. Description

    During the report filling process, it often appears that after the report is successfully filled, close the current page, and the parent page needs to be refreshed. In addition to refreshing the page during page reproduction through the JS method, this article also provides a simpler method.

    III. General report

    In the Mobile Attibute of the general rerport, check Refresh when the page is reproduced.

    Note: When returning after filling in the general report, it will automatically identify whether the data is submitted or not, and no manual setting is required.

    1. Template settings

    1)Open the template: %FR_HOME%\webapps\webroot\WEB-INF\reportlets\doc-EN\SpecialSubject\HyplinkReport\Data Entry_homepage.cpt

    Select Template>Mobile Attribute, and check Refresh when the page is reproduced, as shown in the figure below:

    1.png

    2)Open the template: %FR_HOME%\webapps\webroot\WEB-INF\reportlets\doc-EN\SpecialSubject\HyplinkReport\Data Entry_detail page.cpt

    Select Template>Web Attribute>Dta Entry Settings, and modify the Data Entry Successful event, as shown in the following figure:

    2.png

    window.close();

     means to automatically close the current page and return to the parent page.

    Note: The "Data Entry Successful" event here is the refresh function when the page is reproduced using the JS method. For details, please refer to: [APP] Data entry successfully,close current page and refresh parent page


    2. Preview of mobile effects

    Preview the template on the mobile terminal and enter the Data entry deteil page to fill in, as shown in the following figure:

    • a. After filling in the data, if you return directly, the general report will automatically identify whether the data is submitted or not. If it is not submitted, it will prompt There is data that has not been submitted, are you sure to leave .Click OK to return to the parent page, click Cancel, and stay on this page.

    • b. After filling in the data, if the data is submitted, it will jump to the parent page and refresh the page automatically, showing the content just submitted

    1)APP

    2)HTML5

    Note: H5 does not support Data Entry Preview.

    IV. Dashboard

    In the Mobile Attribute pane of the dashboard, check Refresh when the page is reproduced in the parent page, and check the Show leave prompt when data is not sumbmitted in the child page.

    1. Template settings

    1)Open the template: %FR_HOME%\webapps\webroot\WEB-INF\reportlets\doc-EN\Data Entry\Dashboard Data Entry_homepage.frm

    Select Template>Mobile Attribute, and check Refresh when the page is reproduced, as shown in the figure below:

    3.png

    2)Open the template: %FR_HOME%\webapps\webroot\WEB-INF\reportlets\doc-EN\Data Entry\Dashboard Data Entry_detail page.cpt

    Choose Template>Mobile Attribute, check the Show leave prompt when data is not submitted, as shown in the figure below:

    4.png


    2. Effect preview

    Preview the template on the mobile terminal, click the + sign behind Type A, and enter the detailed page of the dashboard to fill in, as shown in the following figure:

    • a. After filling in the data, if you return directly, the dashborad will identify whether the data is submitted or not. If it is not submitted, it will prompt that there is data that has not been submitted. If you are sure to leave, click OK to return to the parent page, click Cancel, and stay on this page.

    • b. After filling in the data, if the data is submitted, it will jump to the parent page and refresh the page automatically, showing the content just submitted

    1)App

    2)HTML5

    Note: The JAR package must be version 2019-03-13 and above.

    Attachment List


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

    Doc Feedback