Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How do I switch between 2 applications ?

Status
Not open for further replies.

itguru1

Programmer
Jun 18, 2001
12
US
I need to switch between 2 different applications with different databases within one window only with a common user log-in.
Kindly help out.
 
From your description I take it you have two different databases that need to be updated. If so what you need to do is create a logon for both database as follows:

First create two transaction objects:

transaction database_1
transaction database_2

Then specify all the database connection requirements for instance:

database_1.DBMS = "ODBC"
database_2.DBMS = "ODBC"

connect using database_1;
connect using database_2;

Once this is done all you need to do is assign the correct transaction object to the correct datawindow:

dw_1.settransobject(database_1)
dw_1.settransobject(database_2)

That will allow you to update between 2 databases on one window. Hope this is what you wanted nad helps. Regards

Tentacle
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top