cobom
Posts: 55
|
| Posted: 01/20/2006, 9:36 AM |
|
This works on my project created in Version 2:
Redirect = CCDLookup("home_page","Employee_table","user_id=" & Session("UserID"),DBEng_Data)
Is it created different in version 3? The connection string is correct - but I get an "Variable is undefined: 'DBEng_Data'
_________________
cmckinney@searay.com
Will program for a Sea Ray 680 SS ;} |
 |
 |
Walter Kempees
|
| Posted: 01/20/2006, 10:52 AM |
|
The eror seems to be not in the Redirect but in the CCDLookup.
"cobom" <cobom@forum.codecharge> schreef in bericht
news:643d11f824ac55@news.codecharge.com...
> This works on my project created in Version 2:
>
> Redirect = CCDLookup("home_page","Employee_table","user_id=" &
> Session("UserID"),DBEng_Data)
>
> Is it created different in version 3? The connection string is correct -
> but I
> get an "Variable is undefined: 'DBEng_Data'
>
>
> _________________
>cmckinney@searay.com
>
> Will program for a Sea Ray 680 SS ;}
> ---------------------------------------
> Sent from YesSoftware forum
> http://forums.codecharge.com/
>
|
|
|
 |
mrachow
Posts: 509
|
| Posted: 01/20/2006, 11:21 AM |
|
I'm really not sure but if you have no grid, record, or report on your form no db connection is created for that page.
I think in very older versions a db connection was always created.
_________________
Best regards,
Michael |
 |
 |
cobom
Posts: 55
|
| Posted: 01/20/2006, 11:46 AM |
|
So, I need to define the connection string? Where do I do that. I do have a grid, record, search page to redirect to, did that need to be created before the login page?
I thought the connection string was defined in the settings area.
_________________
cmckinney@searay.com
Will program for a Sea Ray 680 SS ;} |
 |
 |
peterr
Posts: 5971
|
| Posted: 01/20/2006, 12:00 PM |
|
In certain cases you may need to intialize the connection within the code, like shown in examples at http://docs.codecharge.com/studio3/html/ProgrammingTech...eCustomSQL.html
However, if that worked in your CCS2 project (and in the same event), then I would contact the support just to let them know. They may want to check why this happen because it could affect other CCS users.
_________________
Peter R.
YesSoftware Forums Moderator
For product support please visit http://support.yessoftware.com |
 |
 |
|