BIRT Report Javascript examples

Example from Markley Transfer Schedule Pull Sheet

***************************************

if (count < scheduleItems.size()) {

scheduleItem = scheduleItems.get(count);

//  *** added 10/24/14  JLB

row["unitMeasure"] = helper.getUnitsAbbreviation(scheduleItem.getRemainingQuantity()); // assembliesHelper

// row["companyLocationName"] = scheduleItem.getScheduleName().getCompanyLocationName();

row["NextStep"] = scheduleItem.getNextStepDescription();

row["destStorageLocation"] = scheduleItem.getDestinationStorageLocationName();

var coLoc = scheduleItem.getSchedule().getCompanyLocation();

if (coLoc != null) {

row["companyLocationName"] = coLoc.getLocationName();

}

// This section Sums the Remaining Qty for each Part Group  JLB  11/10/14

var vPartNum = scheduleItem.getPartNumber();

if (partGroupPart != vPartNum) {

partGroupQty = helper.getDecimal(scheduleItem.getRemainingQuantity());

partGroupPart = vPartNum;

} else {

partGroupQty += helper.getDecimal(scheduleItem.getRemainingQuantity());

}

row["partNumber"] = vPartNum;

row["remainingQuantity"] = partGroupQty;

Comments