// To Get Count of Line from Header table
real a,b;
int64 cnt;
a = RfqDisc.realValue();
select count(RecId) from PurchRFQCaseLine where PurchRFQCaseLine.RFQCaseId == PurchRFQCaseTable.RFQCaseId;
cnt = PurchRFQCaseLine.RecId;
b = a/cnt;
while select PurchRFQCaseLine
where PurchRFQCaseLine.RFQCaseId == PurchRFQCaseTable.RFQCaseId
{
PurchRFQCaseLine.LineDisc = b;
PurchRFQCaseLine.update();
}
PurchRFQCaseLine_ds.reread();
PurchRFQCaseLine_ds.research();
PurchRFQCaseLine_ds.refresh();
real a,b;
int64 cnt;
a = RfqDisc.realValue();
select count(RecId) from PurchRFQCaseLine where PurchRFQCaseLine.RFQCaseId == PurchRFQCaseTable.RFQCaseId;
cnt = PurchRFQCaseLine.RecId;
b = a/cnt;
while select PurchRFQCaseLine
where PurchRFQCaseLine.RFQCaseId == PurchRFQCaseTable.RFQCaseId
{
PurchRFQCaseLine.LineDisc = b;
PurchRFQCaseLine.update();
}
PurchRFQCaseLine_ds.reread();
PurchRFQCaseLine_ds.research();
PurchRFQCaseLine_ds.refresh();
No comments:
Post a Comment