2016-06-22 4 views

答えて

0

あなたの質問はかなり終わりですが、ここでは選択したレコードをループして何かを行うことができるように書いたサンプルコードがあります。選択したサンプルテーブルバッファーとしてSalesLineを選択しました。

int     i; 
Qty     totalQty; 

// Make this your data source 
FormDataSource  fds; 

// This is an array of what records are marked 
Array    markedRecords = fds.recordsMarked(); 

// This is the table buffer that you can look at 
// when looping over the selected records 
SalesLine   salesLine; 

// This loops over the selected records so you can "do" something 
i = 1; 
while (i <= markedRecords.lastIndex()) 
{ 
    salesLine = fds.cursor(markedRecords.value(i)); 

    totalQty += salesLine.SalesQty; 

    i++; 
} 
関連する問題