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.
|
 |
 |
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 |
 |
 |
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.
|
 |
 |
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
|
 |
 |
FrankR
Posts: 154
|
| Posted: 09/20/2006, 3:10 PM |
|
How about using controls you place yourself, that you set Visible = false?
_________________
FR |
 |
 |
|