Hi, the databaseManager.addTableFilterParam() method is used to filter the number of FoundSet’s records. Do we have a function which filters the number of columns in a FoundSet? For example, if I’d like to hide the first_name column in a Person table, the FoundSet should display the first_name property as null.
I tried converting the FoundSet to a DataSet and removing the columns manually, but is it possible to convert it again to a FoundSet where the columns will be filtered?
The Servoy form is not the only way to display FoundSet data. Our users can use our report designer to extract any information in our system as long as it is in the FoundSet. At runtime the system should determine if the user is allowed to see the specific field/column or not.
If we still don’t have this functionality in the databaseManager.getFoundSet();, is it possible to make a feature request for this?
Something like databaseManager.getFoundSet(,
, <excluded_columns_list>);
I was browsing through the Servoy source codes, it might work if the following changes are done:
Update method in JSDatabaseManager.java
Add public FoundSet js_getFoundSet(String serverName, String tableName, String excludedColumns) throws ServoyException
Update method in IFoundSetManagerInternal.java
Add public IFoundSetInternal getNewFoundSet(String dataSource, List defaultSortColumns, String excludedColumns) throws ServoyException;
Update method in FoundSetManager.java
Add public IFoundSetInternal getNewFoundSet(String dataSource, List defaultSortColumns, String excludedColumn) throws ServoyException
Update “public IFoundSetInternal getNewFoundSet(String dataSource, List defaultSortColumns) throws ServoyException” to reference previous function
Change SQLGenerator.java
Add public synchronized SQLSheet getCachedTableSQLSheet(String dataSource, String excludedColumns) throws ServoyException
Update public synchronized SQLSheet getCachedTableSQLSheet(String dataSource) throws ServoyException to reference previous function