would this
- Code: Select all
databaseManager.getFoundSetQuery(foundset)
be possible? The function should return the SQL statement that was generated when retrieving "foundset". I can't imagine this too be hard to implement and see (at least) the following possibilities:
1. Offer "search in results" feature when doing SQL based searches in Servoy (you can reuse the foundset in SQL since you know then the query that created it)
2. Show a foundset definition in a form: in some areas it is extremely helpful to know what selection of data you have in front of you (especially in reporting). With this function you could interpret the WHERE-clause and show the criteria in readable form
And most important in my situation
3. Be able to do mass operation on data using SQL: if your users search for whatever they like and want to start a database intensive job on that data, we currently have to loop, because we don't know what the user search for. If we had access to the foundset query we could reuse that for further operations (subqueries etc.).
Is that possible?
Thanks
Patrick