Solved

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

Posted on 2014-02-13
1
550 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
1 Comment
 
LVL 4

Accepted Solution

by:
Rodrigo Munera earned 500 total points
Comment Utility
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

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

PROBLEM:  How to open a cfwindow or run a function on double click of a cfgrid row. One of my clients wanted to be able to double click on a row item to get more detailed information about a transaction and to be able to modify the line items i…
Today, I was working on some optimization and spam-stopping techniques when I encountered Ben Nadel's post to reduce spam feature using Math (http://www.bennadel.com/blog/197-How-I-Stop-Spammers-On-My-ColdFusion-Blog.htm). While this method is not o…
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…

772 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now