CodeCharge Studio
search Register Login  

Web Reports

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

YesSoftware Forums -> CodeCharge Studio -> Java

 Newbie doubts - getValue, SetValue

Print topic Send  topic

Author Message
bateras

Posts: 3
Posted: 02/17/2013, 6:38 AM

Hello everybody.
I'm new using CodeCharge Studio and I still don't know how to do some basic things.
I'm using CCS5 and coding JSP


e.g.
I need to get and to set values on a label from the jsp code, not from label's properties and I still doesn't know how to do it.

I suppose there must be some label1.getValue or .setValue but it is different to other IDEs I've used so I'm not sure how to do it.

Thank you for your attention.

PD: I'm used to work with NetBeans and I wonder if I can import other classes as well [Calendar.*, text.*,util.*]
View profile  Send private message
DataDoIT
Posted: 02/17/2013, 12:56 PM

Choose the label control. From the Properties -> Events tab, for the
control's Before Show event, add an action. Several to choose from -
Set Value for Control, Retrieve Value for Control, Dlookup, etc.

To see how CodeCharge references the control's properties, do something
simple like Set Value for Control, and put in "Hello World!". Then
double-click on the event and it will take you into the code to see the
code generated.

Just note - EVERYTHING in CodeCharge is an object. From your connection
object to your grid object to your data objects. Everything.
bateras

Posts: 3
Posted: 02/18/2013, 6:15 AM

thank you for your quick answer.

Although I cant find the action you tell me [Set Value for Control], I've been able to extract from another similar action the code I needed and I'm going to try it now.

The whole point is that I need to show in some labels, some dates taken from Calendar class and this takes me to the second doubt. How do I import Calendar and Text classes?

in netbeans it would be
import java.text.*;
import java.util.Calendar;

�shall I type the same at the beginning of the jsp file or there's a different way to import things here?


And another doubt.
Can I see a console output?
I mean if I can use System.Out.Println("").


Edit: I'm getting this error trying to do Live Page

[javac] C:\DOCUME~1\Blorenzo\CONFIG~1\Temp\~pruebas15\CCSBuild\src\com\codecharge\tags\ToPdfTag.java:91: error: no suitable constructor found for JspException(String,IOException)
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.

PHP Reports

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

Home   |    Search   |    Members   |    Register   |    Login


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