CodeCharge Studio
search Register Login  

Web Reporting

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> Perl

 Changing database connections at runtime

Print topic Send  topic

Author Message
roeya


Posts: 181
Posted: 09/13/2004, 11:35 PM

I need a way to change the the ' DBI string' in
$self->{DataSource} = ' DBI string'
line in the clsDByyyyyy class generated in the Common.pm file
and not manually.

the generated code surrounds the DBI connection string with ''
if it was "" I could have entered a variable name inside

I need it in order to connect to different database according
to user preferences, and my client request the database will be separated physically

Can I chnage the code generator to generate "" instead of the '' ?

_________________
http://www.infoneto.com/
View profile  Send private message
Karsten


Posts: 57
Posted: 09/28/2004, 3:20 PM

hi roeya

i have the same issue, need to let the enduser specifi his/her databaseserver db name password and such.

actually i write a kind of "wrapper" to write the db_mysql file directly to alter "projectsettings" at runtime#

_________________
If one gives up, he told himself he failed.
View profile  Send private message

Add new topic Subscribe to topic   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

Internet Database

Visually create Web enabled database applications in minutes.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright 2003-2004 by UltraApps.com  and YesSoftware, Inc.