The mobile report realizes the solution of the function of off-line reporting

Source: Internet
Author: User

1. Description

There are some scenarios where there is no network, only the data can be staged locally, When there is a network, then submit the data to the storage, or sometimes need to temporarily save the data, after a period of time to complement the complete. So in the case of offline how to implement these conditions, with my usual work experience to do a summary of these issues, the following with my common report development tools finereport  Mobile to everyone to do a detailed demonstration.

2. Implementation methods

2.1 Temporary storage

Mobile reporting template, plus a "staging" button, such as:


650) this.width=650; "Src=" http://dl2.iteye.com/upload/attachment/0113/2565/ 96a45cd7-6f95-351c-9b14-695113777dd1.jpg "style=" border:0px; "/>

After clicking on the staging, for example, can be named for the temporary filling template, the text box, the default is automatically generated according to the template name (template name + automatic numbering), such as "Employee Information Entry 1", can be modified. If the name is the same, give a hint.


650) this.width=650; "Src=" http://dl2.iteye.com/upload/attachment/0113/2567/ 4421cfc1-55c5-381d-9c78-5c400e8f448c.jpg "style=" border:0px; "/>

After the data is staged successfully, the toast is given, "in Settings-uncommitted data", and the contents of the page are emptied for the next fill.


650) this.width=650; "Src=" http://dl2.iteye.com/upload/attachment/0113/2569/ Ce342cc3-09fe-3402-b861-6629fc3f6bc0.jpg "style=" border:0px; "/>

Note: A. Control the "staging" button display hidden by the "submit" button's display hide, that is, if a template does not commit, there is no staging.

B. After the staging succeeds, the data is emptied and the event is not provided for the time being empty.

C. " Submit button is always present and is not affected by the pattern.

D. Click on the staging to generate a cover scale graph of the cached data, at which time the cover scale graph is filled in for that template. Of course, if a template customizes the cover by FS, it also uses the original cover.

E. When you exit a template, if there is no data staging, or if there is no commit, there will be a non-committed reminder, as long as the template is configured with this option. If the template does not have data to be staged or submitted, there will be no such reminder

2.2 Post-staging processing

In the settings, add a button and click enter uncommitted data.


650) this.width=650; "Src=" http://dl2.iteye.com/upload/attachment/0113/2571/ 05a24369-ca3b-317b-824c-2227f17b181e.jpg "style=" border:0px; "/>

650) this.width=650; "Src=" http://dl2.iteye.com/upload/attachment/0113/2573/ E2c98faf-3d33-3463-8a36-4f92fc1745c4.jpg "style=" border:0px; "/>

A. Submit all

When you click and submit all, all cached data will be submitted. When you submit it all, follow the form in the order of the storage.

B. editing data for a set of templates (enter a template)

Click on a set of templates, enter the editing data, if you click Submit, the set of cached data directly into the storage, the original "uncommitted data", the set of data removed; If you click on the staging, you modify the temporary data; Click Back to return to the "uncommitted data" directory.

C. editing

Click Edit, change as, can "delete" the selected data, you can "submit selected" data.


650) this.width=650; "Src=" http://dl2.iteye.com/upload/attachment/0113/2575/ 57fb9f38-180e-3f35-a063-1174af4fb5f5.jpg "style=" border:0px; "/>

650) this.width=650; "Src=" http://dl2.iteye.com/upload/attachment/0113/2577/ 73564765-507f-3d1d-914b-e2f2403e0618.jpg "style=" border:0px; "/>

If it is not selected, a prompt is given when it is submitted or deleted.

When you re-edit:

If a file control exists, and a single file uploads a photo, you can see the photo when you edit it, the file upload control, and then you can use it when you edit it;

If there is a super-chain, it is not supported;

If you have a control that requires a data dictionary, such as a drop-down box, a drop-down tree, a check box, a radio box, and so on, only the data dictionary corresponding to the template parameter is cached, not linkage.

D. data submission

The data is submitted with a progress prompt, the validation is performed at the time of submission, the validation failure is prompted, and there is a token. Mark the validation error when submitting this set of templates.


650) this.width=650; "Src=" http://dl2.iteye.com/upload/attachment/0113/2579/ Bfbbb6d1-6567-3eaa-8c20-7bb6939a2f7c.jpg "style=" border:0px; "/>

650) this.width=650; "Src=" http://dl2.iteye.com/upload/attachment/0113/2581/ 13d9a103-47e5-3c47-a16c-510b36731141.jpg "style=" border:0px; "/>

650) this.width=650; "Src=" http://dl2.iteye.com/upload/attachment/0113/2583/ 79c9ba7a-f1a9-38b6-8345-b52e07563f31.jpg "style=" border:0px; "/>


The mobile report realizes the solution of the function of off-line reporting

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.