CodeCharge Studio
search Register Login  

Web Reporting

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> Java

 How to change the display values

Print topic Send  topic

Author Message
blizz1001
Posted: 05/20/2004, 2:45 AM

How to change the display values from the database to the frontend? For eg. the values in the database col are '1' and '2'. How do i change convert these two values to display 'system' and 'user' in the grid? And also, if the value is '1', the control is hidden, while the value is '2' it shows the control.
ignat


Posts: 55
Posted: 05/20/2004, 7:10 AM

Hi!

One way is to make control of Boolean type and set its dbFormat = "1;2"
and format = "system;user". The other way is to use beforeShow event of
the control to change its formattedValue property. For example:
e.getControl().setFormattedValue("system");

Regards,
Ignat.
View profile  Send private message
blizz1001
Posted: 05/20/2004, 7:38 PM

Hi Ignat!

Thanks for the help!
Quote :
One way is to make control of Boolean type and set its dbFormat = "1;2" and format = "system;user".
This works on a textbox. But what if my control is radio buttons? And also how do i hide/disable the radio buttons if the value is '1' and show the buttons if the value is '2'?

Please help. I'm not prgogrammer/developer trained, so may not be familiar with programming codes. Would greatly appreciate if you could provide me with sample codes where i can cut and paste into the "custom code" function if there is a need to do so. :-<

Thanks lots!

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.