Stanj
Posts: 166
|
| Posted: 11/04/2006, 2:49 AM |
|
Hi CCSers
I attempted to use an action to find a single value ( DLookUp action) and followed the document description in the examples for this action.
"Lookup Single Field Value in a Database
This example shows how to read a single value from a database. In this case, we have a Header page which contains a UserName Label that is used to display the user's name.
Method 1
Use the DLookup action.
1. Add the DLookup action to the Before Show event of the page.
2. Set the properties of the action.
Note: The values of the Expression, Domain and Criteria properties should not be entered in double quotes."
The above description seems to be wrong. Leaving out the quotes results in errors on 3.1 (PHP) and to get it to work I needed to edit the generated code to include quotes around each argument value.
Is this my overlooking something simple or a contradiction in the use versus reference?
_________________
Stan
St Petersburg Russia |
 |
 |
wkempees
Posts: 1679
|
| Posted: 11/04/2006, 5:45 AM |
|
You are partly correct.
I have actually encountered this in CCS 2+ and 3.
Made a Support call and got replied.
I cannot easily reread their answer, but
In the DLookup, you are not supposed to use double quotes, you do however need to enclose using single quotes any thing that would need enclosing, like strings etc.
Walter
_________________
Origin: NL, T:GMT+1 (Forumtime +9)
CCS3/4.01.006 PhP, MySQL .Net/InMotion(Vista/XP, XAMPP)
if you liked this info PAYPAL me: http://donate.consultair.eu
|
 |
 |
|