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 -> General/Other

 Use of a Form With Memory Variables

Print topic Send  topic

Author Message
BobL

Posts: 2
Posted: 09/12/2006, 5:54 PM

This is such a trivial a task in other applications, and CCS seems so powerful, that I’m sure I’m just not looking at the docs appropriately.

I want users to be able to populate “memory” variables that I define in code (that are not database table data fields) by my putting a list box and some text controls (for dates, strings and numbers) on a simple form. Those variable values will be for some auto-calculations on a grid. But I keep running into a stone wall because I don’t want to use a database record form.

If someone could point me in the right direction, I’d be very appreciative. Thank you very much.
View profile  Send private message
peterr


Posts: 5971
Posted: 09/12/2006, 7:56 PM

Depending on the case you can utilize at least 3 types of variables:
1. Client variables (JavaScript ), which looks like what you may need for auto-calculating values on a grid.
2. Server/script variables, which you can define in PHP for example. When using CCS you may define such variable(s) at the beginning of the generated page or _events file. Such variables are persistent throughout one page instance, but would be cleared when the page is refreshed, submitted, redirected, etc.
3. Session variables, which are also server-based but persistent throughout all pages and instances during browser session.

A specific solution may depend on your programming language and objectives. Here is also an article that may be helpful when dealing with grid controls:
http://forums.codecharge.com/posts.php?post_id=60507
_________________
Peter R.
YesSoftware Forums Moderator
For product support please visit http://support.yessoftware.com
View profile  Send private message
BobL

Posts: 2
Posted: 09/13/2006, 11:10 AM

Thanks Peter.

So are you saying the general approach is to: (1) Declare my variables at the start of the page; (2) Create a record against any of my database tables using the record builder, and then deleting the controls and/or and replacing them with controls that use my declared variables as their data source; and (3) using the controls' property values for my calculations?

If you confirm that's the process, I will try it again even though that's pretty much what I tried previously.

Thanks again.

View profile  Send private message
E43509

Posts: 283
Posted: 09/20/2006, 12:14 PM

What language are you using?
I've worked with Session Variables to do similar items
CCS supports that and in the before show I would also do more calcs
View profile  Send private message
FrankR

Posts: 154
Posted: 09/20/2006, 3:10 PM

How about using controls you place yourself, that you set Visible = false?
_________________
FR
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.

Web Database

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.