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:
2. Create data entry subpage
1) The design interface of the data entry subpage is as follows:
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:
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.
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:
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
2) Subpage
For the completed template, see: %FR_HOME%\webapps\webroot\WEB-INF\reportlets\doc-EN\SpecialSubject\HyplinkReport\Data_entry_detailpage.cpt