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

 Extracting value from textbox control

Print topic Send  topic

Author Message
cfell

Posts: 10
Posted: 03/05/2004, 6:34 PM

I have an EditableGrid I've dropped a textbox control on that I want to pull text from when server-side onClick event fires. The control is not associated with any columns in my database as its sole purpose is to gather a small piece of info required by a servlet to successfully process.

The name of the control is "tb_msg", below is my code:

//
// Get message
//
String m = g.getControl("tb_msg").getFormattedValue();
CCLogger.getInstance().debug("DEBUG got message " + m);

All other controls on the grid return data as expected and the only difference I can see is that it is not associated w/a column in my database. I've been corresponding w/CCS support for several days awaiting their response and am running out of options. Creating a phantom column to satisfy CCS is not an option (if that is the problem).

Any ideas?? Your thoughts are *greatly* appreciated.

Regards,

Curtis
View profile  Send private message
Alberto
Posted: 03/12/2004, 2:57 AM

Sorry for my english..
Did you put a default value for your control?
If yes, try also to set control value by setting Control Source Type - Code Expression and Control Source the string using "...".
cfell

Posts: 10
Posted: 03/14/2004, 10:07 PM

Alberto

Your english is good and very understandable. I had tried using "Code Expression" for Control Type but had not set a default value. Even with setting a default value, getFormattedValue refuses to return what is entered. Thank you for the suggestion, it is greatly appreciated.
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.

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.