CodeCharge Studio
search Register Login  

Visual PHP Web Development

Visually Create Internationalized Web Applications, Web Reports, Calendars, and more.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> PHP

 Combine two fields together in a new field

Print topic Send  topic

Author Message
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.
View profile  Send private message
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
View profile  Send private message
ckroon

Posts: 869
Posted: 10/18/2007, 9:24 AM

I will try that. Thank you.
_________________
Walter Kempees...you are dearly missed.
View profile  Send private message
ckroon

Posts: 869
Posted: 10/20/2007, 12:01 PM

Worked like a charm! Thanks!
_________________
Walter Kempees...you are dearly missed.
View profile  Send private message

Add new topic Subscribe to topic   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

MS Access to Web

Convert MS Access to Web.
Join thousands of Web developers who build Web applications with minimal coding.

CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.