[progress Communities] [progress Openedge Abl] Forum Post: Re: Connect Db After...

  • Thread starter Thread starter davidvilla
  • Start date Start date
Status
Not open for further replies.
D

davidvilla

Guest
I am not sure I am clear on my question. In prog1.p, --> connect to mydb1 --> call prog2.p In prog2.p --> instantiate class mycls1 (as mydb1 is connected one level up in prog1, mydb1 will be accessible in the methods in mycls1) In mycls1, I have a situation where I want ro connect to a new db, say newdb2 (in addition to mydb1). I have identified that I have to connect to newdb2 only in a method in mycls1, i.e., in prog2.p. And also it is not the same new db every time. The new db to connect may vary based on the input and is identified dynamically in mycls1 (i.e.,prog2.p). So, now if I try to use another program to connect to this newdb2 - prog3.p and access newdb2 in another program prog4.p called from prog3.p, I am not able to access it. In mycls1: --> method mth1: --> identify new db id - newdb2 --> call prog3.p In prog3.p --> connect to new db newdb2 --> call prog4.p In prog4.p: --> access newdb2 ------> newdb2 is not available here , eventhough i have connected newdb2 one level up in prog3.p atleast, this is what i need to do. I have to dynamically identify the db to connect to in a method and connect and access it. Any ideas, how this can be done?

Continue reading...
 
Status
Not open for further replies.
Back
Top