cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

No output if input data a little bit large

HowardCao
Discoverer
0 Kudos
105

Hi All,

After designing form builder, it always crushes when the data is bigger. Can anyone help with this?

1 I removed most of scripts, the only two scripts I can not remove is to dynamically display payroll area and project id in the master page:

var currentPage = xfa.layout.page(this);
var fields = xfa.layout.pageContent(currentPage - 1, "field");
for (var i = 0; i < fields.length; i++) {
    if (fields.item(i).name == "PAYROLL_AREA") {
        this.rawValue = fields.item(i).rawValue;
        break;
    }
}

var currentPage = xfa.layout.page(this);
var fields = xfa.layout.pageContent(currentPage - 1, "field");
for (var i = 0; i < fields.length; i++) {
    if (fields.item(i).name == "PROJ_ID") {
        this.rawValue = fields.item(i).rawValue;
        break;
    }
}

2 the pagination condition in the Data Object: 

if (this.resolveNode("DATA[-1].PAYROLL_AREA") != null && this.resolveNode("DATA[-1].PROJ_ID") != null) {
    (this.resolveNode("DATA[-1].PAYROLL_AREA").rawValue != DATA.PAYROLL_AREA.rawValue) ||
    (this.resolveNode("DATA[-1].PROJ_ID").rawValue != DATA.PROJ_ID.rawValue)
}

that's all I have. It work well when the input not that large.

But it doesn't work, when I run it for all emeployees, the running time will be infinite and no result, if I run it for each payroll area, it could work well(the employee is less).

If I delete the pagination condition, it can run for all employees(Total 794 pages without pagination) and very quick. If I want pagination, it can only run for each payroll area(the sum of each payroll area is 1443 page after pagination).

The above is what I can provide. Is there anything can be improved?

Thanks,

Howard

Accepted Solutions (0)

Answers (0)