schaeff
|
| Posted: 05/04/2002, 11:55 AM |
|
Somehow I still don't get the clue ....
Whenever I create a grid or search form without using the wizard in CCS I get an error about missing classes.
If I name the new grid Users for instance I get:
Fatal error: Cannot instantiate non-existent class: clsgridusers in /vol/httpd/esperto/dev/esperto3/MainHeader.php on line 57
And after adding the missing class by hand from a page that was created using the wizard I get:
Fatal error: Cannot instantiate non-existent class: clsusersdatasource in /vol/httpd/esperto/dev/esperto3/MainHeader.php on line 434
What am I doing wrong?!?
It can't be standard procedure to add those classes by hand?!?
BTW: I'm using PHP with templates on Linux with Apache/MySQL as server.
And while I am at it 2 more questions:
I would like to have 2 labels in the heading showing the name of the logged in user as well as the time when he logged in. What would be the easiest way to accomplish that?
Since I need a more flexible way of handling user rights I set up a table of groups and a table of user_group relations. How do I make CCS use these tables instead of the standard security_level? Has anybody done this before?
Thanks in advance for your help!
|
|
|
 |
Nicole
|
| Posted: 05/06/2002, 6:01 AM |
|
Hello,
make sure that you did not selected non existing connection for the form or e.g. listbox field
The errors are related to db connection classes that are generated automatically.
|
|
|
 |
schaeff
|
| Posted: 05/09/2002, 4:29 AM |
|
Unfortunately I get these errors no matter what I try.
I get them for grid, search forms, and records with or without listboxes. I can choose a table or an SQL statement as source (they all work as can be seen with the review button).
As long as I do not use the wizard for creating those elements the appropriate classes do not get created ...
Then I encountered another few syntax errors which at the moment I need to correct manually in the php-files every time a published a page:
- When setting the Header to restricted CCS adds the line
Enabled = (CCSecurityAccessCheck(Empty) = "success")
to the clsHeader class (without the a ";" at the end), leading to:
Parse error: parse error in /vol/httpd/esperto/dev/esperto3/Header.php on line 42
- When setting a labels Source Type to "Code Expression" and Control Source to "CCGetUserID()" for instance CCS adds:
$this->User->SetValue(CCGetUserID();
to the Initialize function of my clsHeader class leading to:
Parse error: parse error in /vol/httpd/esperto/dev/esperto3/Header.php on line 115
These errors all occure in my Header page that was not derived from a wizard created page but build from an empty page by using the Components and Controls Toolboxes from CCS. The page is set to "Includable = Yes".
Some additional information:
I'm working on WinXP prof. with the latest MyODBC drivers installed. The database and webserver runs on a Linux Mandrake 8.2 with PHP/MySQL/Apache.
I'm using CCS because I could get CC working. When I try to create a project in CC I can select the ODBC source and can select the tables (eg. in the beginning for authentication) but couldn't pick any fieldnames from those tables (eg. login, password for the automatically created login-page).
I encountered no similar problems with CCS. I can review my SQL expressions and I have tested the ODBC connection using Access.
Any suggestions to why my CCS does not do what ist is supposed to do are very welcome!
|
|
|
 |
|