Need to work on form where user enters information which are in two different unrelated database tables and need to search in foundset whether that info is in database or not.
When user enters Id (which is in one table) I need to search in foundset that id exist or not.
- Code: Select all
_foundset=databaseManager.getFoundSet('servername','tablename')
_foundset.loadRecords('SELECT id FROM employee WHERE id=? ORDER BY id', [<somevalue>]); //id is PK.
//some code.
I am able to do so, but for other entered data need to verify too which are in different database (unrelated) table.
My form is not bound with any datasource. Do I need to bound the form? If I have to then to which database I need to bound.