Cfselect, cfinvoke, cfgrid in flash forms
In an MX7.02 cfform format="flash"
I would like a user to select an option in a cfselect. (e.g.
name)
The selected value would be passed to a cfinvokeargument
the cfc returns the query results to a cfgrid
get agent names....
<CFINVOKE COMPONENT="agentQA"
METHOD="getAgents"
RETURNVARIABLE="aData">
populate cfselect....
<cfselect label="Agent" visable="yes" name="agent"
query="aData" value="message_author" display="message_author">
</cfselect>
query messages posted by the selected agent...
<CFINVOKE COMPONENT="agentQA"
METHOD="getquery"
RETURNVARIABLE="qData">
<cfinvokeargument name="agent" value="??????????????">
</cfinvoke>
don't know how to bind the selected agent name to the
argument????????
output only the selected agent's messages to messagesgrid
<cfgrid format="flash" width="100%" height="100%"
name="messagegrid" query="qData" rowheaders="false">
</cfgrid>
Any suggestions? I'm open to a different approach since I'm
just learning flash forms in CF.
Thanks,
Don
Using the
selected="[your value]" argument.
This can be a value from a query.
For instance, try the example in
http://livedocs.macromedia.com/coldfusion/7/htmldocs/00000331.htm
but add
selected="4" to the cfselect tag
i.e.:
<cfselect
name = "employeeid"
size = "1"
multiple="yes"
required = "No"
query = "GetAllEmployees"
display ="name"
value ="emp_id"
queryPosition="Below" width="100" selected="4">
4 is the emp_id value of Aaron Smith.
In your application, you would replace
selected="4" with
selected="[your database value]"
Similar Messages
-
cfselect not working with flash form
I have searched the forum and google to find a solution -
I've tried what's been suggested (ie - mappings of /CFIDE, adding
/CFIDE to the site root, etc.) nothing has worked. This is only
happening in my production boxes (two identical setups, running in
parallel) -
The form loads, but any options I define inside
<cfselect> will not show.. here's the basic code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0
Transitional//EN" "
http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="
http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html;
charset=iso-8859-1" />
<title>Untitled Document</title>
</head>
<body>
<cfform name="theForm" format="Flash" width="300"
height="200" accessible="yes">
<cfselect label="Type: " name="feedbackType" width="200"
enabled="yes" required="yes">
<option value="">Select</option>
<option value="WEB">Our Website</option>
<option value="ACCOUNT">Your Account</option>
<option value="COMPLAINT">A Complaint</option>
<option value="GENERAL">General Comment</option>
<option value="OTHER">Other</option>
</cfselect>
</cfform>
</body>
</html>
Same code works on my localhost (development box) - so I'm
sure it's some setting I'm missing or messed up in the production
servers. I have checked the IIS settings as well as the mappings in
CF admin, both have /CFIDE defined. I've even added a mapping to
the /CFIDE within the site root.
I'm currently running CFMX 7.0.2 on Server 2003 with IIS 6
Please help!!More info...
When I call the page locally...
http://flush/testFlash.cfm
the form works perfectly.
but when I call the page using the domain...
http://www.mydomain.com/testFlash.cfm
the <cfselect> will not work. -
Using cfselect onBlur to reload page using a Flash form
I am having trouble trying to get <cfselect onBlur=""> to work inside of a <cfform format="flash"> using Flash. As soon as I put any value into the quotation marks, the Flash form no longer displays.
The current code I have using your syntax is the following:
<cfset thisPage = "http://#cgi.server_name#">
<cfif len(trim(cgi.server_port))>
<cfset thisPage ="#thisPage#:#cgi.server_port##cgi.script_name#?#cgi.query_string#">
<cfelse>
<cfset thispage ="#thisPage##cgi.script_name#?#cgi.query_string#">
</cfif>
<cfform name="fQuiz" preloader="false" format="flash" height="750" preservedata="yes">
<cfselect query="qDescriptionsByInteraction" name="description" id="s3" display="MEDIABITNAME" value="MEDIABITID" width="200" label="Description (video):" onChange="getURL('#thispage#')"></cfselect>
</cfform> -
I have flash form where I can transfer items between 2 grids.
The idea is to take items from grid1 and move to grid2 and on
submit it will take items from grid2 and instert them into the
database. This part works fine as long as grid2 is empty, but when
I go to edit these items so grid 2 already has items in it, any
item that I add from grid1 doesn't save. I even tried function
where all items in grid2 get edited and this way they would be set
to U as action, but it doesn't work. I use <cfif
isdefined("Form.grid2.rowstatus.action")> and then loop db
insert as Form.grid2.rowstatus.action index.
Is there a way to take all items from a grid regardless if
they are updated/inserted and submit them?Did you ever find an answer to this question?
-
I'm having some problems with my Rich Form using Flash Forms
built into ColdFusion8. When I add the href and ran the site, when
you click on the column and item under that column nothing happens.
What is missing here?
<cfform name="myForm" format="flash" width="400"
height="300" skin="haloorange">
<cfformgroup type="panel" label="Current Accounts">
<cfformgroup type="horizontal">
<cfinput type="text" name="forInput" width="120"
onchange="#actionFilter#" label="Filter by:">
<cfselect name="column" label="in:"
onchange="forInput.text=''" width="90">
<option value="Account_Type">Account
Type</option>
<option
value="ID_Company_Community">Community</option>
<option value="LastLogin">Last Login</option>
</cfselect>
</cfformgroup>
<cfgrid name= "data" query="memberList" height="200"
rowheaders="false" selectcolor="##FFFFCC">
<cfgridcolumn name="Account_Type" header="Account Type"
href="test.cfm">
<cfgridcolumn name="ID_Company_Community"
header="Community">
<cfgridcolumn name="LastLogin" header="Last Login"
mask="MMMMM-DD-YYYY">
</cfgrid>
</cfformgroup>
</cfform>
When you click on an item under that column shouldn't it take
you to test.cfm????
--------- UPDATE --------
I see that the href IS NOT supported in the FLASH format. Is
there way to accomplish the task without href? How can I make a
column a href and redirect the user to a details page for that
selected listing? Thanks
Thanks for your anticipated response.
Todd WarneHi-
I copied your form code and submitted the variables back to
that page, and got no error, for what that's worth. My guess is
that the prob. might be in the page you're submitting to rather
than in the form itself? -
Does anyone know how to place a cfselect element in a cfgrid
or if it is even possible? I need an editable grid. It would be
ideal if one of the columns was a select list. The same select list
would be present in each row, that is, it would repeat all the way
down the column. I am a total noob with ColdFusion. Any help or
links to good info will be greatly appreciated.As far as I can tell this is a known issue with flash forms,
but can be accomplished with the applet version.
http://www.houseoffusion.com/groups/CF-Talk/thread.cfm/threadid:38871
Does anyone know when this fix will be released? -
Flash Forms Not Rendering in IE7, Flash 9
We're having a problem with flash forms in IE7 and Flash
Player 9 not rendering the entire form. The form works fine in
Firefox 2. It looks to be a problem with how the Flash player is
able to pull back data in IE7. Likely this pertains to how IE7
handles security of plug-ins.
Oddly, we've noticed that uninstalling the Flash 9 player and
then reinstalling results in the form rendering correctly the first
time, but on subsequent views the form no longer renders correctly.
Specifically, we're not seeing data that is being called via
Flash remoting in cfselect tags (state and country information).
And we're not seeing text rendered that is in cfformitem tags. Our
dev url is:
http://hopeequity.beaconfire.com/loggedout/index.cfm?event=StartInvesting_StartAGroupStep1
If anyone has an idea of why IE7 might not be able to render
the form correctly, or might have security-related issues with
remoting and Flash 9, please reply.I was granted access to the manuals on our prod server (the
site is set up where you have to log in to see the manuals). The
manuals are behaving differently on the prod server than in our dev
server. The following is happening on the prod server:
- the flash menus are appearing on our prod server in FireFox
only.
- I had reported in our dev area that when I right clicked on
the left hand side where the menus are to appear in IE that the
Flash menu displayed. This is not the case in our production area.
- I get the "This page contains both secure and nonsecure
items" when viewing the site on our prod server through IE
I've asked them what version of RoboHelp they are using and
no one seems to know. It seems they don't regenerate their help
files (manuals) very often. -
Submitting only part of a Flash form's data - possible?
So, in this app that I'm building, it would be REALLY handy
to be able to process select portions of the Flash form. It's
essentially an app with a couple of smaller sub-apps contained
within; think of something like a CRM app. Is it possible to only
submit the data from, say, a cfgrid element?
Thanks
PeteOne of the best resources is asfusion, heres alink
introduction-to-flash-remoting
Check out the other examples they have as well.
Ken -
OnChange="submit();" in flash form
Hi, I am using a form to sort a query on my page, however I
am updating all of my forms to flash now, and can't seem to get the
onChange="submit();" to work on a cfselect tag. It doesn't
throw an error, th epage just doesn't load.
Is this an acceptable event still in a flash form? many
thanksHi, I am using a form to sort a query on my page, however I
am updating all of my forms to flash now, and can't seem to get the
onChange="submit();" to work on a cfselect tag. It doesn't
throw an error, th epage just doesn't load.
Is this an acceptable event still in a flash form? many
thanks -
Hello. This is what I am trying to accomplish. I am making a
tabbed registration flash form and I would like the person
completing the form to see a total as he makes the selection for
what he will be attending. The way I approached the problem was to
bind an ActionScript function to the
GRANDTOTAL form field, but when the form finishes loading in
the browser, the
NaN error pops up. I tried to convert the field selections
explicitly to numbers to perform the addition, but it is obviously
not working. If anyone could shed some insight into this, that
would be great. Thank you in advance. The code for the tab that
handles the selection is below.
<!-- registration details tab -->
<cfformgroup type="page" label="Registration">
<cfformitem type="text">Your FULL NBBAN Registration
Includes: Admission to all Forums, Continental Breakfast,
Refreshment Breaks, Welcome Reception, Awards Dinner and
Luncheon.</cfformitem>
<cfformitem type="spacer" height="3" />
<cfformitem type="text">CONFERENCE REGISTRATION
FEES:</cfformitem>
<cfformgroup type="tile" height="650">
<cfformgroup type="horizontal">
<cfselect name="MemberQtyat250" size="1">
<option value=0>0</option>
<option value=250 selected>1</option>
<option value=500>2</option>
<option value=750>3</option>
<option value=1000>4</option>
<option value=1250>5</option>
</cfselect>
<cfformitem type="text">$250 per
MEMBER</cfformitem>
</cfformgroup>
<cfformgroup type="horizontal">
<cfselect name="NonMemberQtyat300" size="1">
<option value=0 selected>0</option>
<option value=300>1</option>
<option value=600>2</option>
<option value=900>3</option>
<option value=1200>4</option>
<option value=1500>5</option>
</cfselect>
<cfformitem type="text">$300 per
NON-MEMBER</cfformitem>
</cfformgroup>
<cfformgroup type="horizontal">
<cfselect name="GuestQtyat125" size="1">
<option value=0 selected>0</option>
<option value=125>1</option>
<option value=250>2</option>
<option value=375>3</option>
<option value=500>4</option>
<option value=625>5</option>
</cfselect>
<cfformitem type="text">$125 GUEST (accompanied by
MEMBER)</cfformitem>
</cfformgroup>
<cfformgroup type="horizontal">
<cfselect name="WelcomeReceptionQtyat75" size="1">
<option value=0 selected>0</option>
<option value=75>1</option>
<option value=150>2</option>
<option value=225>3</option>
<option value=300>4</option>
<option value=375>5</option>
</cfselect>
<cfformitem type="text">$75 WELCOME RECEPTION
ONLY</cfformitem>
</cfformgroup>
<cfformgroup type="horizontal">
<cfselect name="AwardsQtyat100" size="1">
<option value=0 selected>0</option>
<option value=100>1</option>
<option value=200>2</option>
<option value=300>3</option>
<option value=400>4</option>
<option value=500>5</option>
</cfselect>
<cfformitem type="text">$100 AWARDS AND RECOGNITION
CEREMONY ONLY</cfformitem>
</cfformgroup>
<cfformgroup type="horizontal">
<cfselect name="LuncheonQtyat75" size="1">
<option value=0 selected>0</option>
<option value=75>1</option>
<option value=150>2</option>
<option value=225>3</option>
<option value=300>4</option>
<option value=375>5</option>
</cfselect>
<cfformitem type="text">$75 LUNCHEON
ONLY</cfformitem>
</cfformgroup>
<cfformgroup type="horizontal">
<cfselect name="KingTourQtyat20" size="1">
<option value=0>0</option>
<option value=20 selected>1</option>
<option value=40>2</option>
<option value=60>3</option>
<option value=80>4</option>
<option value=100>5</option>
</cfselect>
<cfformitem type="text">$20 THE KING CENTER
TOUR</cfformitem>
</cfformgroup>
<cfformitem type="script">
function subTotal() {
var memberQty = registration.MemberQtyat250;
var nonmemberQty = registration.NonMemberQtyat300;
var guestQty = registration.GuestQtyat125;
var receptionQty = registration.WelcomeReceptionQtyat75;
var awardsQty = registration.AwardsQtyat100;
var luncheonQty = registration.LuncheonQtyat75;
var tourQty = registration.KingTourQtyat20;
var result = trace(Number(memberQty)) +
trace(Number(nonmemberQty)) + trace(Number(guestQty)) +
trace(Number(receptionQty)) + trace(Number(awardsQty)) +
trace(Number(luncheonQty)) + trace(Number(tourQty));
alert(result);
</cfformitem>
<cfformgroup type="horizontal">
<cfinput type="text" name="GRANDTOTAL" label="Total: $"
bind="{subTotal()}" />
</cfformgroup>
</cfformgroup>
</cfformgroup>You need to store the information user have input before
somewhere. You can store it in local shared object, which is dubbed
as a "flash cookie" -- Flash MX. Then you will retrieve it at
execute an autofill. If you store the user's info in a remote
database -- you can loadVars from you server with the form
information.
Search for SharedObject in flash help -- it is pretty
straight forward and simple.
I forgot to mention that you will need to compare entry in
the form field with the stored info on each key stroke, naturally,
and display results in an additional text field, etc.
Hope it helps... -
Using onchange="submit();" in flash forms
Hi I am trying to use the onchange="submit();" function in my
flash form, on a cfselect tag, as I use this in my html forms to
sort the data. Does anybody know if this function should work in
flash forms please? as when I put in the form does not load up
Many thanks in advanceThat worked spot on, thank you very much
-
Dreamweaver and visual editing of ColdFusion Flash Forms
Does anyone nows how to
Visual edit ColfFusion Flash Forms in Dreamweaver CS3
??The second part of your question doesn't make sense or you
are not explaining correctly. You have a grid which spawns a popup,
user selects company name and binds to text field. Ok. But you
should then submit that info to a query, no?
Also look into this:
http://www.asfusion.com/blog/entry/filtering-a-cfgrid-as-you-type--revisited- -
I have been trying to get the <cfselect> tag to
populate in Flash forms with no success. It will populate formated
as HTML or XML. The other frustrating thing is a ticking clock that
won't go away. I thought that I didn't have Flash remoting wasn't
working so I took care of that. Here is the code:
<cfform format="flash" name="AskESU" width="500">
<cfformgroup type="panel" label="Ask ESU" height="400">
<cfselect name="typeID" label="Select:">
<cfoutput query="gettype"><option value="#typeID#"
selected="selected">Select
Department</option></cfoutput>
</cfselect>
<cfinput type="text" name="firstName" label="First
Name:">
<cfinput type="text" name="lastName" label="Last
Name:">
<cfinput type="text" name="email" label="Email:"
pattern="^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$"
validate="regular_expression" required="yes" message="You must
enter a valid E-Mail Address">
<cfinput type="text" name="confirm" label="Confirm Email:"
>
<cftextarea cols="30" rows="5" name="comments"
label="Comments:"></cftextarea>
<cfinput type="submit" name="submit" value="Ask">
</cfformgroup>
</cfform>Hi
You need virtual directory CFIDE in IIS or Apache for flash
form for dynamic cfselect.
try your form with format="html" does it generate javascript
message for required fields.
Thanks -
Convert Coldfusion Flash form to PDF?
Is it possible to convert a Coldfusion flash based form to a PDF form? I've tried it using Coldfusion 8 and Adobe Professional 8, but all I end up with is a blank PDF. It works just fine for a basic HTML based form. Is there some technical reason this doesn't work?... Because it seems rather stupid that ADOBE Coldfusion and ADOBE Acrobat don't work together properly.
It's an internal form, so i don't have any link. But the form is constructed using the standard flash form tags... example:<br /><br /><cfform name="form" action="exampleform.cfm" format="Flash"><br /><cfformitem><br /><cfformgroup><br /><cfinput><br /><cfselect><br /> <br />The entire form is mostly just a mix of those tags. Pretty standard stuff, but Adobe 8 Professional simply won't convert the form to PDF. Or, actually, it does but the form is blank. I'm usually just left with the graphic from the top of the page which likes outside the <cfform> tags.
-
I Need Dire Help Making a Flash Form
Hello, I need some serious help creating a Flash Form.
I Have used a template from another site with the following
input boxes:
Name: __________
Email: __________
Comments: ____________
However, i had the script working fine, along with its php
script,
when i was trying to add more "text" boxes, i must have
messed the script up somhow.
When I submit that form, the name is send and email, but the
email is blank.. ie, there is no "comments"
here is the code:
on submit button:
on (release) {
// send variables in form movieclip (the textfields)
// to email PHP page which will send the mail
form.loadVariables("email.php", "POST");
sent email messege
onClipEvent(data){
// show welcome screen
_root.nextFrame();
and the php script (mailer.php)
php form email.pho
<?php
* PHP 4.1.0+ version of email script. For more
* information on the mail() function for PHP, see
http://www.php.net/manual/en/function.mail.php
// First, set up some variables to serve you in
// getting an email. This includes the email this is
// sent to (yours) and what the subject of this email
// should be. It's a good idea to choose your own
// subject instead of allowing the user to. This will
// help prevent spam filters from snatching this email
// out from under your nose when something unusual is put.
$sendTo = "[email protected]";
$subject = "My Flash site reply";
// variables are sent to this PHP page through
// the POST method. $_POST is a global associative array
// of variables passed through this method. From that, we
// can get the values sent to this page from Flash and
// assign them to appropriate variables which can be used
// in the PHP mail() function.
// header information not including sendTo and Subject
// these all go in one variable. First, include From:
$headers = "From: " . $_POST["firstName"] ." ".
$_POST["lastname"] . "<" . $_POST["email"] .">\r\n";
// next include a replyto
$headers .= "Reply-To: " . $_POST["email"] . "\r\n";
// often email servers won't allow emails to be sent to
// domains other than their own. The return path here will
// often lift that restriction so, for instance, you could
send
// email to a hotmail account. (hosting provider settings may
vary)
// technically bounced email is supposed to go to the
return-path email
$headers .= "Return-path: " . $_POST["email"];
// now we can add the content of the message to a body
variable
$message = $_POST["message"];
// once the variables have been defined, they can be included
// in the mail function call which will send you an email
mail($sendTo, $subject, $message, $headers);
?>
If anyone can see why the "comments" section is not being
sent?
Also: My original problem was how do you add more text boxes.
I want something like this:
Name:
Address:
Phone:
Mobile:
Email:
Website:
Comments:
Ive spent days and days trying to work out how to first make
a form that actually works, then add more text fields
Ive looked at many basic form tutorials, but they all seem to
only have 3 or 4 text fields.. Name, Email, Comments... etc
I haven't a clue how to edit the script both in action script
and php to add more fields easy.
I really need some help with this, its turning into a
nightmare for me.
I can provide someone with my .fla project file if they care
to take a look at what im doing wrong.
Thanks
Pan
ps. Please note: "$sendTo = "[email protected]";" =
this line i know i must put in my own email.This is all about timelines. It seems there is a movieclip
named 'form' (or possibly an actionscript object, can't tell). Any
variables created on that timeline are sent.
So you could have your new textfields on another timeline.
Or you could have textfields with no instance name in the
form timeline.
Those are the first two things to look at. Post the FLA and
we can tell you more specifically.
Maybe you are looking for
-
Using alpha in jpanel compoments
hi all, I am overhiden jpanel and yours components using alpha and happens which components are drawing too in area left superior, and I dont know, why this happens, I wish post code here , but is to long... I do alpha in images, and no problems with
-
How to save 130 length field in SAP BW system.
Hi all, In my source system a field contains 130 length.How to represent that field in BW.(I heard this can be Done using RRI ). If anyone knows please explain the process. Thanks, James
-
I've notice that if I have a reply draft saved in the Draft box and then send it no little arrow a appears beside the original message in the In Box to indicate a reply has been sent. The arrow appears on received messages that aren't saved in the Dr
-
Which application server?
Hi, I'm just starting to learn about the Java Persistence API and I was wondering whats the difference between the Sun and Glassfish application servers? Which server would be best when hooked up to a MySQL database?
-
Hi, I'm having a small problem that I can't seem to figure out. In Aperture 2, I noticed that in one of my projects in the viewer I see one image, but when I select it, a totally different images shows up in the main window. I am thinking I have a fi