Soulinger
|
| Posted: 02/27/2002, 5:48 AM |
|
The followign applies to ASP I assume?
""Open index page , select "Messages" form. Add a dummy field (don't select
database field) set field's name to nreplies. Then click "Form properties"
icon and select "Event" tab. There you must select "Before show" event. Type
in the following code : fldnreplies = cn.execute("select count(*) from
messages where message_parent_id="&fldmessage_id).fields.item(0) Through
events you can access form fields using their names with "fld" prefix. cn is
already open connection object. ""
How do I do the same for JSP in terms of functionality? :S
|
|
|
 |
Alexey Alexapolsky
|
| Posted: 02/27/2002, 8:18 AM |
|
Use "conn" variable that contains Connection object created by CC ,
then create a Statement object and Recordset object , please see CC code or
any "hello world"JDBC examples.
--
Alex
CodeCharge Developer
"Soulinger" <mimaclit69@hotmail.com> wrote in message
news:a5io3u$hro$1@news.codecharge.com...
> The followign applies to ASP I assume?
>
> ""Open index page , select "Messages" form. Add a dummy field (don't
select
> database field) set field's name to nreplies. Then click "Form properties"
> icon and select "Event" tab. There you must select "Before show" event.
Type
> in the following code : fldnreplies = cn.execute("select count(*) from
> messages where message_parent_id="&fldmessage_id).fields.item(0) Through
> events you can access form fields using their names with "fld" prefix. cn
is
> already open connection object. ""
>
> How do I do the same for JSP in terms of functionality? :S
>
>
>
|
|
|
 |
|