[APP] Data Entry Successfully,Close Current Page and Refresh Parent Page

  • Last update:December 09, 2021
  • I.Description

    How to realize that the parent page in the App opens data entry page, and then closes the current page and refreshes the parent page after entering successfully?

    II.Example

    1. Create parent page

    1) Create a new parent page, add ds1 dataset:SELECT * FROM user

    The design interface is as follows:

    1.png


    2. Create data entry subpage

    1) The design interface of the data entry subpage is as follows:

    2.png

    Data_entry_homepage.cpt,Data_entry_detailpage.cpt,and save them in%FR_HOME%\webapps\webroot\WEB-INF\reportlets\doc-EN\SpecialSubject\HyplinkReportfolder.


    3. Add a hyperlink to the parent page

    Click cellA1 of the parent page template then clickHyperlink >Web Report , selectData_entry_detailpage .cpt, add&op=write after the URL, and set the link to open in the current window:

    3.png


    4. Add data entry successful event in data entry subpage

    Open Data_entry_detailpage.cpt, selectTemplate> Web Attributes > Data Entry Settings, add Data Entry Successful event.

    4.png

    The JavaScript code is as follows:

    var url = encodeURI("${servletURL}?viewlet=doc-EN/SpecialSubject/HyplinkReport/Data_entry_homepage.cpt");                    
    FR.doHyperlinkByGet({url:url,title:'Homepage',target:'_self'});

    III. Effect preview

    Save the template, add the main page template to the Decision-making Platform, and preview it in the data analysis app. The effect is as follows:

    5.gif

    IV. Completed template

    1) Parent page

    For the completed template, see: %FR_HOME%\webapps\webroot\WEB-INF\reportlets\doc-EN\SpecialSubject\HyplinkReport\Data_entry_homepage.cpt

    Data_entry_homepage.cpt

    2) Subpage

    For the completed template, see: %FR_HOME%\webapps\webroot\WEB-INF\reportlets\doc-EN\SpecialSubject\HyplinkReport\Data_entry_detailpage.cpt

    Data_entry_detailpage.cpt

    Attachment List


    Theme: Fine Mobile
    • Helpful
    • Not helpful
    • Only read

    滑鼠選中內容,快速回饋問題

    滑鼠選中存在疑惑的內容,即可快速回饋問題,我們將會跟進處理。

    不再提示

    10s後關閉

    Get
    Help
    Online Support
    Professional technical support is provided to quickly help you solve problems.
    Online support is available from 9:00-12:00 and 13:30-17:30 on weekdays.
    Page Feedback
    You can provide suggestions and feedback for the current web page.
    Pre-Sales Consultation
    Business Consultation
    Business: international@fanruan.com
    Support: support@fanruan.com
    Page Feedback
    *Problem Type
    Cannot be empty
    Problem Description
    0/1000
    Cannot be empty

    Submitted successfully

    Network busy