I have a process in es4 that loads data from a data base in to a form.
The number of rows in not know.
It loads in to a table fine.
The use is to select one of the items to work on.
This works if they delete 1 at a time.
It would be faster to delete what they did not select.
When I change the line to LicenseFeeDetailsId.rawValue !==fSelected all but the first is deleted no mater which is selected?
How can I delete everyone that in not selected?
//works!!
var fSelected = this.rawValue; // selected fee id
var vRows = FeeDetailsTable._Row1.count-1; //row count-1
xfa.resolveNode("ChangeRequestForm.Table1.Row1.Cell1").rawValue = fSelected; //works
for(var i=0;i>=vRows;i++){ // loop through table for(var i=vRows;i>=0;i--){
if(FeeDetailsTable.resolveNode("Row1[" + i + "]").LicenseFeeDetailsId.rawValue ==fSelected ){ //find selected row --seems to loop reverse !== does not work.
FeeDetailsTable._Row1.removeInstance(i);//works!!
}
}
;
LicenseFeeRoot.FeeDetailsSub.numOfFees.rawValue = FeeDetailsTable.Row1.instanceManager.count; // good! up date fee count