ckroon
Posts: 869
|
| Posted: 10/17/2007, 5:20 PM |
|
Hi all.. Hoping this has a simple answer.
Client wants to place barcodes on student documents.
I can display the data as a barcode, I just need the DB to create the unique code itself every time a user creates/Inserts a new record.
I figured the student_id plus the ID of the record would be a good unique-key sequence to use.
So.. how do I pull two fields and insert them into another.. and I assume this takes place in the AfterInsertUpdate event...?
_________________
Walter Kempees...you are dearly missed. |
 |
 |
oracolo
Posts: 3
|
| Posted: 10/18/2007, 7:56 AM |
|
I try.... 
I can create your third fiels as hidden and specify the "source control" in the property. Then in the BeforeBuildUpdate:
$firstValue = $YourGrid->FirstField->GetValue();
$secondValue = $YourGrid->SecondField->GetValue();
$YourGrid->ds->HiddenThirdField->SetValue($firstValue.$SecondValue);
bye
_________________
Using: CodeCharge Studio 3.2.0.4 - Apache, PHP and ORACLE |
 |
 |
ckroon
Posts: 869
|
| Posted: 10/18/2007, 9:24 AM |
|
I will try that. Thank you.
_________________
Walter Kempees...you are dearly missed. |
 |
 |
ckroon
Posts: 869
|
| Posted: 10/20/2007, 12:01 PM |
|
Worked like a charm! Thanks!
_________________
Walter Kempees...you are dearly missed. |
 |
 |