在 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 } }
廣告