- Data Structure
- Networking
- RDBMS
- Operating System
- Java
- MS Excel
- iOS
- HTML
- CSS
- Android
- Python
- C Programming
- C++
- C#
- MongoDB
- MySQL
- Javascript
- PHP
- Physics
- Chemistry
- Biology
- Mathematics
- English
- Economics
- Psychology
- Social Studies
- Fashion Studies
- Legal Studies
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
Filter output columns in Table in SAP application
I think there can be a better option to do this. What you can try is fetch only the fields of the table which match the fields present in the table. Do not fetch all the fields of the table but the selected fields.
// 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 } }
Advertisements