franck
|
| Posted: 07/29/2002, 5:47 AM |
|
How to do in CCS to display visitors name like a WelcomeMessage with his mail and his number of events announced in our site?
Please if someone could help me ?
|
|
|
 |
Nicole
|
| Posted: 07/30/2002, 6:10 AM |
|
Franck,
you can place Label field in the header and so the task is to collect the necessary information about logged in user in order to assign it to Label field.
I suppose you need CCDlookUp() function to look up details of logged in person.
Create field Before Show event like below:
'you should create and open new connection to use it in CCDlookUP() function
'in case there's no forms on header page and thus no connection were created
Dim DB<connection_name>
Set DB<connection_name> = New clsDB<connection_name>
DB<connection_name>.Open
'to access field value prefix it with the page name (it concerns all includable
' pages)
Header.Label1.Value = "User: " & CCDlookUp("emp_name", "employees", "emp_id=" & CCGetUserID(), DBintranet)
'close connection
DB<connection_name>.Close
Set DB<connection_name> = Nothing
|
|
|
 |
|