I am trying to use the results of on data source (SQL) to manage another data source (SQL).
In SQLdb1, I have a standard SQL view that contains store location information (LocationNumber, LocationName, LocationStreet, LocationCity, LocationState, LocationZip). I have a second SQL database, SQLdb2, that stores (LocationNumber, Username, Password).
I'm trying to build an application where a user can filter down to a location by filtering a gallery with drop downs. The drop downs are driven by SQLdb1.LocationState that filters SQLdb1.LocationCity, that filters a gallery with SQLdb1 as it's data source. So far, I've been able to create this, but what I'm trying to do is have a user click a location in the gallery and go to a form with the corresponding data from the second database (SQLdb2) using the LocationNumber as the common attribute.
Not every LocationNumber in SQLdb1 has a record in SQLdb2. If there is a corresponding record I would like it in edit mode, if there isn't a corresponding record I would like it to be in new mode.
I've tried some patch syntax, and couldn't get it to work. And I've tried a form and couldn't get it to work either.
Any and all comments and recommendations greatly appreciated.
Thanks!