Successfully!

Error!

You are viewing 10.0 help doc. More details are displayed in the latest help doc

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

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
Already the First
Already the Last
  • Helpful
  • Not helpful
  • Only read

Doc Feedback