pakaran
|
| Posted: 05/02/2002, 7:13 PM |
|
Hi,
How could I archieve the same result shown in the article Populating record listbox from a subwindow in Codecharge Studio
|
|
|
 |
Nicole
|
| Posted: 05/03/2002, 4:50 AM |
|
Hello,
I've looked at the example for CC and it seems to me that it won't be very difficult to create one in CCS. It includes generally custom JavaScript code. Place it in html editor. As for After Insert event you'll find the same in CCS.
But instead sActionFileName variable work with Redirect var.
|
|
|
 |
pakaran
|
| Posted: 05/03/2002, 6:58 PM |
|
Hi,
I have coverted the code to the following but I think it tried to use the dlookup fuction in CCS what is the equivalent. The error is Fatal error: Call to undefined function: dlookup() in c:\htdocs\ccs\form_newcustomer_events.php on line 20
function customer_AfterInsert() { //customer_AfterInsert @2-12C31A0F
//Custom Code @13-2A29BDB7
// -------------------------
$last=mysql_insert_id ();
// Obtains last generated autoincrement value...
// It's either this or the MySQL query - SELECT LAST_INSERT_ID() FROM categories
$compare="cust_id=" . $last;
// Compare statement for the dlookup function
$last_value=dlookup("customer","cust_name",$compare);
$Redirect .= "?last_pk=" . $last . "&last_value=" . $last_value;
// -------------------------
//End Custom Code
} //Close customer_AfterInsert @2-FCB6E20C
|
|
|
 |
pakaran
|
| Posted: 05/04/2002, 11:50 PM |
|
what is the equivalent for the following line in CCS
$last_value=dlookup("customer","cust_name",$compare);
|
|
|
 |
|