在 SAP 應用程式中過濾表格中的輸出列


我思索這樣做會有更好的辦法。你可以嘗試僅獲取與表格中欄位匹配的表格的欄位。不要獲取表格的所有欄位,但獲取選中的欄位。

// Here Table refers to the JCo.Table
for (int j = 0; j < Table.getNumRows(); j++) {
   Table.setRow(j);
   Iterator iter = displayField.iterator();
   // fetch columns present in the current record
   while(iter.hasNext()){
      String column = (String) iter.next();
      String value = Table.getString(column);
      // perform your logic here
   }
}


更新於:12-6-2020

198 次瀏覽

開啟你的 職業生涯

完成課程即可獲得認證

開始學習
廣告