CodeCharge Studio
search Register Login  

Visual PHP Web Development

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

YesSoftware Forums -> Archive -> GotoCode Archive

 ListOfValues on a Label

Print topic Send  topic

Author Message
Karim
Posted: 06/21/2002, 8:08 AM

Is there a way to have a list-of-values on a Label field?

Thanks
Karim
Nicole
Posted: 06/24/2002, 4:36 AM

Karim,
CCS doesn’t let you to create List of Values for Label type field in design mode. It requires some lines of custom code. You should create Before Show Row event, check field value and depending on it assign it any other custom values.
Karim
Posted: 06/24/2002, 7:04 AM

Nicole,
I will try that. Maybe that show be a wish list for CCS?

Thanks
Karim
Karim
Posted: 06/24/2002, 7:57 AM

Are there any examples that might help me with that?

Thanks
Karim
Labs4.com
Posted: 06/24/2002, 5:43 PM

grid receipts,
label shipped
... status is stored in MySQL database as an integer with flags 0 and 1
shipped int(1) DEFAULT '0' NOT NULL,


now in grid you must change data type for given label from Integer to Text or Memo, then create Custom Code Before Show for this label:

global $receipts;
if($receipts->shipped->GetValue() == 0) {
$receipts->shipped->SetValue('no');
} else {
$receipts->shipped->SetValue('yes');
}


Josef <-- this is my name not part of the code ;)
Karim
Posted: 06/25/2002, 9:40 AM

Thanks Josef, I will try that.

Karim
Yelban
Posted: 09/19/2002, 11:31 PM

Hi, Nicole.
suggest that maybe you could post some example code to show how to do that!
>>create Before Show Row event,
>>check field value [How to do it? ^^]
>>and depending on it assign it any other custom values

   


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

Internet Database

Visually create Web enabled database applications in minutes.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


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