Solved

Do you have to pass variables as hidden fields in CF FW1 form?

Posted on 2014-02-13
1
573 Views
Last Modified: 2014-02-23
I have a 3-page form. This is my first time using FW1 model. I thought declaring variables as rc.variablename in my controller would carry the variables from page to page but they don't appear to. Do I really have to pass as hidden input from page to page?
0
Comment
Question by:traport
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 4

Accepted Solution

by:
Rodrigo Munera earned 500 total points
ID: 39870396
Declaring variables in the framework allows other objects within that framework to access the value of those variables, think of those variables set in FW1 as "global" variables that can exist outside of the object. The whole premise of FW1 in OO programming is that your code is encapsulated in beans so any variables defined inside that bean are not available to the code outside, setting request variables makes those variables available to other objects without having to explicitly pass them outside of the object and having to create an argument input in another object or method, but it all ends when the request ends (after the page has finished loading).

If you want your data to persist through several requests (page loads) you can use your session scope, or pass the data from one page to another using URL or form variables.
0

Featured Post

The Orion Papers

Are you interested in becoming an AWS Certified Solutions Architect?

Discover a new interactive way of training for the exam.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Hi, Even though I have created this Tutorial on My personal Blog, Some people might not able to find my website, So here i am posting it again Today, from the topic it is very clear that i will be showing you here the very basic usage of how we …
Sometimes databases have MILLIONS of records and we need a way to quickly query that table to return the results me need. Sure you could use CFQUERY but it takes too long when there are millions of records. That is why SOLR was invented. Please …
In this video we outline the Physical Segments view of NetCrunch network monitor. By following this brief how-to video, you will be able to learn how NetCrunch visualizes your network, how granular is the information collected, as well as where to f…
Do you want to know how to make a graph with Microsoft Access? First, create a query with the data for the chart. Then make a blank form and add a chart control. This video also shows how to change what data is displayed on the graph as well as form…

705 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question