Flashbuilder and Cold Fusion (using application/session variables)
I would like to know if anybody uses Flashbuilder with Cold Fusion?
Since Cold Fusion has lots of different scopes of variables (application, session, client, form, url, etc...) how do you manage this in Flex/Flashbuilder?
Are there forums or groups specifically for using Flex3/Flashbuilder with backend server side technologies such as Cold Fusion?.
The only server side technology that I have interest in is Cold Fusion. I've seen basic tutorials and videos using Cold Fusion CFC's and data binding with Flex. I haven't seen or heard anything using a Cold Fusion application, session, or client variable in Flex.
Hopefully some of you have some experience on this topic.
Thanks
hey popster,
i too had this question some time ago. my entire app was built on CF with HTML before i started integrating Flex 3 with it. i found that i needed to create cookie variables for all my session variables i was using in order to maintain and remember who the user was in my CFC calls. i also found that after i compiled a flex app, i changed the .html to .cfm (the file that loads the compiled SWF file). by doing this i was able to pass CF session variables into the flex app and you can refer to these anywhere in Flex by using Application.application.parameters.{variable name here}
add the CF variable in the FlashVars line to pass it into Flex (see the last line of code). this will create a variable (in my case i'm passing session.employeenumber). then in your flex app you can reference it by using Application.application.parameters.emplid:
AC_FL_RunContent(
"src", "Request",
"width", "100%",
"height", "87%",
"align", "middle",
"id", "Request",
"quality", "high",
"bgcolor", "#869ca7",
"name", "Request",
"allowScriptAccess","sameDomain",
"type", "application/x-shockwave-flash",
"pluginspage", "http://www.adobe.com/go/getflashplayer",
"wmode","transparent",
"FlashVars","emplid=<cfoutput>#session.employeenumber#</cfoutput"
A little trick I learned (does Adobe really expect us to re-engineer how our apps have been working by no longer using sessions for Flex?). Then in your CFCs if you also create cookies for every session variable you can maintain the variables based on user login. HOPE THIS HELPS!
-Matt
Similar Messages
-
Application & Session variables
how to store & use Application & Session variables in Seervlets & JSPs
Hi
how to store & use Application & Session variables in JSPSee: http://developer.java.sun.com/developer/onlineTraining/JSPIntro/contents.html
how to store & use Application & Session variables in ServletsSee:
http://java.sun.com/docs/books/tutorial/servlets/communication/attributes.html
Good Luck!
Eshwar Rao
Developer Technical Support
Sun microsystems inc.
http://www.sun.com/developers/support -
Cold Fusion/Flex Application Wizard crippled in Trial Version?
Hi,
I am using the 60 Day trial version of Flex Builder
3/Eclipse.
I wanted to try out the much vaunted Cold Fusion/Flex
Application Wizard, mainly because I could not get my head around
access from Flex to an existing CFC from the documentation alone.
So, I followed the directions:
Click the plus sign (+).
In the Name: text box, enter the name for the page.
Select the page type (master, detail, or master/detail).
Click Edit Master Form or Edit Detail Form, depending on the
type of form you are creating.
The Visual Query Builder starts.
But for me, when I click on 'Edit Master Form' the Visual
Query Builder does not start.
Now I have checked and confirmed that my RDS is working, and
that I can access the database via RDS in the Eclipse RDS browser
window. The RDS concerned is on another PC.
The PC on which Flex Builder is installed is a Vista
Ultimate/32 and the database is MS SQl server 2005 (running on the
other PC). Cold Fusion 8 is installed on both PC's.
So, my question is 'Is the CF/Flex Application wizard
deliberately hobbled/crippled in Flex 3 Trial version, or is there
something wrong with my installation.?
If this works for everyone else, then how do I debug my
installation ?
Thanks,
Bryn Parrottin addition, I can say that I installed the same flex builder
trial on an XP machine, using its own local RDS, and found that the
wizard worked just fine.
So what is the variable here, why is the wizard not working
on the vista PC ?
Is it Vista ?
Is it the fact that I'm trying to use RDS against a remote
server and not the local one ? -
Unable to filter a recordset using a session variable
I have a volunteer application page and when the volunteer presses <Submit> their info is saved in a MySQl db table and a session variable is created containing the primary key of their record in the table, control is then passed to a "success page". The success page can access the session variable (I proved this by displaying the session variable on the success page) so my next step was to create a recordset in the success page with a filter using the session variable to select the appropriate row in the table, allowing me to display to the volunteer the info they submitted.
I set up a test success page which displays the session variable and one field of the volunteer info. When I test this I see the session variable displayed but the corresponding volunteer info field from the recordset is not displayed.
The volunteer application page is here www.hollisterairshow.com/volunteerapp.php and the successpage is here www.hollisterairshow.com/thanksvol.php
The code that creates the session variable in the volunteer application page is shown below
$_SESSION['volunteer_id'] = mysql_insert_id();
The code to display the session variable in the success page is shown below
<?php echo $_SESSION['volunteer_id']; ?>
The code to display the volunteer info is shown below
<h1> Thank You <?php echo $row_rsVolunteerApp['firstname']; ?>!! </h1>
The recordset definition is shown below
The success page test result is shown below, as you can see the volunteer's first name is not displayed immediately after the "Thank you" message but the session variable holding the correct primary key (41) is shown correctly.
Does anyone have an idea of what I'm doing wrong?
Thanks
TonyWhere did you put session_start()? It needs to be before the variable is accessed. It's obviously before the line that displays the value in your page, but is it before the SQL query is generated?
Also, have you checked in phpMyAdmin to see whether volunteernumber 41 has any values in the database? -
Use of Session Variable in Dashboard Page XML
Hi All,
Can we use a Session variable in the Dashboard Page XML?
My Requirement is,
There are 1000+ users, each user will have access to same dashboard. But a different report in the same dashboard.
So we want to Save individual user reports in the location /users/LOGIN_NAME/Financials/ABC
and dynamically change the Dashboard Page XML, to accept Session Variable VALUEOF(NQ_SESSION.USER) in place of LOGIN_NAME.
So that for each user, they will see only their report.On the face of it, Session is ideal for this, however this is SharePoint and the obvious isn't always the best.
You'd need to do the calculation about memory usage and number of concurrent users to ensure it really is a viable option in Production.
If it isn't viable, or wouldn't scale to possible future usage what would you do? Then you need to ask if it's really necessary to move between pages? If the user needs to move through a dialog for example, that could be hosted on a single page which might
have different controls or sections made visible as the user progressed through the use case.
Passing data between pages in SharePoint is a lot more difficult than it should be. Sometimes it's best to stay put, and certainly safer than using Session if you're really not sure if Session will stop your solution from scaling.
Always remember, SharePoint might be hosted on ASP.NET but the design considerations are significantly different than if this were a pure ASP.NET application.
w: http://www.the-north.com/sharepoint | t: @JMcAllisterCH | YouTube: http://www.youtube.com/user/JamieMcAllisterMVP -
Standard for the use of session variable in webpart code.
Hi,
Why we should avoid using of session variables while writing code?
Is it not a standard?
Thanks,
Akhilesh Rao
Akhilesh RaoOn the face of it, Session is ideal for this, however this is SharePoint and the obvious isn't always the best.
You'd need to do the calculation about memory usage and number of concurrent users to ensure it really is a viable option in Production.
If it isn't viable, or wouldn't scale to possible future usage what would you do? Then you need to ask if it's really necessary to move between pages? If the user needs to move through a dialog for example, that could be hosted on a single page which might
have different controls or sections made visible as the user progressed through the use case.
Passing data between pages in SharePoint is a lot more difficult than it should be. Sometimes it's best to stay put, and certainly safer than using Session if you're really not sure if Session will stop your solution from scaling.
Always remember, SharePoint might be hosted on ASP.NET but the design considerations are significantly different than if this were a pure ASP.NET application.
w: http://www.the-north.com/sharepoint | t: @JMcAllisterCH | YouTube: http://www.youtube.com/user/JamieMcAllisterMVP -
OBIEE | Using Dynamic Session Variable in Physical Layer
Hi All,
Any idea if we can use Dynamic Session Variables (I think they are also called Repository Variables) in our physical layer. I basically need to set the value of this variable from dashboard when a link is clicked, and then use this in my SELECT query at physical layer so that OBIEE does not pull all the data from the database tables.
Regards
Adeel Javed
Edited by: user10642426 on Apr 6, 2009 2:03 AMChristian,
Thanks for the quick response, ok we have actually moved to a different solution now, we are actually using Direct Database Request because one of our reports is supposed to be accessing direct transactional system i.e. for this report we are using OBIEE as a reporting tool. We are able to do that and even create links between different reports i.e. based on prompt in Report A filter Report B, but the scenario now is that we need to set a presentation variable from Report A when a navigation link gets clicked, because so far according to our knowledge direct SQL only allows presentation variables in its WHERE clause. So, any ideas how can we set a presentation variable when a navigation link is clicked. Thanks.
Regards
Adeel Javed
Edited by: adeeljaved on Apr 6, 2009 11:43 PM -
How do you swap two variables A and B without using a 3rd variable? No fun
How do you swap two variables A and B without using a 3rd variable? No function or method allowed.
For example:
Given:
A = 35
B = 10
Result
A = 10
B = 35How do you swap two variables A and B without using a
3rd variable? No function or method allowed.
For example:
Given:
A = 35
B = 10
Result
A = 10
B = 35
A = A + B (A = 35 + 10 = 45)
B = A - B (B = 45 - 10 = 35)
A = A - B (A = 45 - 35 = 10) -
How do you swap two variables A and B without using a 3rd variable?
How do you swap two variables A and B without using a 3rd variable? No function or method allowed.
For example:
Given:
A = 35
B = 10
Result
A = 10
B = 35How do you swap two variables A and B without using a
3rd variable? No function or method allowed.
For example:
Given:
A = 35
B = 10
Result
A = 10
B = 35
A = A + B (A = 10 + 35 = 45)
B = A - B (B = 45 - 35 = 10)
A = A - B (A = 45 - 10 = 35) -
Failed to search the log and log repository using Application Server Contro
I installed the OAS 9.0.4(10g) and tried to use Application Sever Control to search the log files or log repository. However, each time I clicked the Search button, the error page showed the following messages:The operation cannot be performed because the page contains expired data. The data will be automatically refreshed so you can try your operation again.
I checked the emias.log and something like following existed:
ERROR chart.EmChartCacheWorker getCachedChart.505 - EmChartCacheWorker.getCachedChart: 4abdc63146b7578d9853d1adc2aec4245fbf113b.png
EXCEPTION: java.io.FileNotFoundException: /home/oas/product/OAS904/sysman/webapps/emd/images/chartCache/chart4abdc63146b7578d9853d1adc2aec4245fbf113b.png.png (No such file or directory)
2004-09-14 11:27:37,414 [HttpRequestHandler-24691856] ERROR chart.EmChartBean getChartImage.2662 - ERROR generating chart image: java.io.FileNotFoundException: /home/oas/product/OAS904/sysman/webapps/emd/images/chartCache/chart4abdc63146b7578d9853d1adc2aec4245fbf113b.png.png (No such file or directory)
2004-09-14 11:27:37,422 [HttpRequestHandler-30430942] ERROR chart.EmChartBean getChartImage.2655 - EXCEPTION while generating chart image [id]: 030ddc5b70a789c374eb11e2ae97ac8c79441f5b.png
2004-09-14 11:27:37,422 [HttpRequestHandler-30430942] ERROR chart.EmChartBean getChartImage.2658 - java.io.FileNotFoundException: /home/oas/product/OAS904/sysman/webapps/emd/images/chartCache/chart030ddc5b70a789c374eb11e2ae97ac8c79441f5b.png.png (No such file or directory)
I searched the directory specified in the emias.log and found it was empty!
So what should I do to avoid this problem?
Thanks in advance!Thank you.
When you fire the processes to the report server you
can trace the report with the following parameter:
RWCLIENT.EXE SERVER=my_server
TRACEFILE=c:\my_trace.trc
TRACEMODE=TRACE_REPLACE
TRACEOPTS=TRACE_ALL -
Flash Builder 4.5 and Cold Fusion Builder 2.0
I evaluated Flash Builder 4.0 and my company purchased Flash Builder 4.5. The upgrade to the new version turned into a nightmare. I had notice Cold Fusion Builder came with my FB4.5 and so I installed it as well. Once I finally got my projects working again with the new version, I attempted to learn to use CF. But it appears CF Builder 2 does not come with everything you need. I am guessing it requires CF 9.?. Is this true? If so, then why give us CF Builder with my FB4.5 if its not going to work? Or was something just missing?
I dunno; I'm not a server side admn. But information on working with ColdFusion and GlassFish does come up in Google
http://www.google.com/search?source=ig&hl=en&rlz=&q=GlashFish&oq=GlashFish&aq=f&aqi=g-s10& aql=&gs_sm=e&gs_upl=60l225l0l2843l3l2l0l0l0l0l254l407l0.1.1l2#sclient=psy&hl=en&safe=off&s ource=hp&q=GlashFish+and+ColdFusion&pbx=1&oq=GlashFish+and+ColdFusion&aq=f&aqi=&aql=&gs_sm =e&gs_upl=12486l14136l0l14294l15l9l0l0l0l0l319l2068l0.1.5.2l8l0&bav=on.2,or.r_gc.r_pw.r_cp .&fp=6a8ed33a17731f09&biw=1067&bih=685
It sounds like Glassfish is an application server; just like ColdFusion (or PHP or LiveCycle). Application servers are not usually the same as web servers, although many app servers integrate with web servers.
I Glassfish is Java it seems probable that you could deploy an instance of ColdFusion onto Glassfish. -
UAG 2010 SP4 Cold Fusion Web Application "You Are Not Authorized To Access This Application" error
Hi folks,
2010 UAG SP4 publishing a web app that is a Cold Fusion login page.
The portal trunk is set to not verify URLs and open with that page directly rather than a Portal page, I also have it set to not install client components, basically using UAG as a reverse proxy with some other items.
The published app does not require authentication and all users are authorized the path is as follows:
/index.cfm?FuseAction=Security.Login
And the hostname is set as www.apps.x.x.edu name removed but is correct. UAG has an http to https redirection and it requires https.
The Portal Link has https://xxxx as the address which is correct as it is using an SSL connection to the backend web server and I can reach the page successfully from the UAG server by simply browsing.
I previously had the application launching within the portal but the client does not want the extra step so I removed the portal interaction all together and while I had the application launching within the portal, it worked. I'm not certain what changed
to make it fail, though.
In the Web Monitor I receive this error:
A request on trunk nonuvaportal; Secure=1 failed because of an unknown application. The URL is /index.cfm?FuseAction=Security.Login. The source IP address is 137.54.129.238. The user is .
Any help or tips or advice would be superb.
Thanks,
JustinAnd an update, I did another application publishing on a separate trunk/portal to a similar page
/index.cfm?FuseAction=Programs.Home
And I get the same error. Is there a switch/setting/policy I am missing to allow it to run those? -
How to use a session variable in Conditional Format?
Hi Gurus,
I created a session variable , called Actual_date,
using the following SELECT:
SELECT SYSDATE FROM DUAL
In a report title the following expression worked fine:
@{biServer.variables['NQ_SESSION.Actual_date']}
I red in a reply in this forum, under the
"Oracle BI EE Variables Overview"
that we can use the above format in Cond.Format.
However I got an error:
"The value entered msut date and Time..."
Any tips?
Thanks
LaszloIt's because when you fired
SELECT SYSDATE FROM DUALYour variable have a LONGVARCHAR type (if I remember)
Check here how to find the data type.
http://gerardnico.com/wiki/dat/obiee/obi_server_variable_find_value
If you just need to get the current date, you can try the system presentation variable current time as :
@{system.currentTime} Good luck
Nico -
Use of session variable to retrieve user language
Hi,
I'm converting some ASP code to JSP and I'm having a problem concerning session variables, in ASP I had something like this
(first.asp)
<td align="center" width=145px><%=getLabel(1)%>
and in second.asp
dim Label(3,2)
function GetLabel(ndx)
GetLabel = Label(ndx, Session("Language"))
end function
clang_PT = 1 ' Portuguese
clang_EN = 2 ' English
Label(0,clang_PT) = "primeira"
Label(1,clang_PT) = "Segunda"
Label(0,clang_PT) = "first"
Label(1,clang_PT) = "second"
when trying to do the same thing in JSP
(first.jsp)
<%@page contentType="text/html"%>
<%@page pageEncoding="UTF-8"%>
<%@include file="labels.jsp"%>
<!DOCTYPE HTML PUBLIC "-//w3c//dtd html 4.0 transitional//en">
<%if (session.isNew()) {
session.setAttribute("Language","1");
}%>
<%= getLabel(1)%>
(labels.jsp)
<%@ page language="java" import="java.util.*"%>
<%@page pageEncoding="UTF-8"%>
<%! String getlabel(int ndx){
return label[ndx][session.getAttribute("Language")];
String[][] label = new String[2][2];
%>
<%
int clang_PT = 0; // Portugu�s
int clang_EN = 1; // Ingl�s
label[0][clang_PT] = "primeira";
label[1][clang_PT] = "segunda";
label[0][clang_EN] = "first";
label[1][clang_EN] = "second";
%>
I get
cannot find symbol symbol : variable session location: class org.apache.jsp.experiencia_jsp return label[ndx][session.getAttribute("Language")];
^
and
cannot find symbol : method getLabel(int)
location: class org.apache.jsp.experiencia_jsp
out.print( getLabel(1));
Should I use a bean to store this kind of info?
thanks, Vright...
actually, cuz doing this:
<%!
String getlabel(int ndx){
int lang = Integer.parseInt((String)session.getAttribute("Language"));
return label[ndx][lang];
%>
there's no session object... that creates a method in the class separate from the main JSP method. So you need to either pass the session object in, or just pass the attribute value..
<%!
String getlabel(int ndx, int lang){
return label[ndx][lang];
%>
int lang = Integer.parseInt((String)session.getAttribute("Language"));
String lable = getLabel(ndx, lang); -
Use of session variables disappeared
Hi - I have a really old CF site that has worked perfectly all these years.
Sometime over the past 7 days, my all of my session variables have ceased to work.
These session variables appear on the pages where I set them up, but the minute I transfer to a new page, they are completely gone. They do not appear in the debug information at all.
I think that there has been some change in CF Server 8, but my system administrator says that he did not change any settings. (If he had, what would it be? I don't have admin access.)
Like I said, they worked perfectly until very recently and luckily, I don't use a load of them.
If push comes to shove, I can use cookies, but I really don't want to sit through an evening of debugging.
What do you think went wrong?
Help!Well - thank U. My system admin said he did not touch a thing, and furthermore, my test works well for him.
Here is my test:
http://www.littleviews.com/test/test_1.cfm
Page 2 should fail, or at least it does for me (I live on the East Coast in Weehawken), but it does not to him (the Milwaukee/Waukesha area in Wisconsin)
Karen
Maybe you are looking for
-
Why does avg search come up when I enter anything on my firefox home page it's driving me nuts
I removed avg free from my computer because avg was "taking over" my searches - but it is still doing it. I can't seem to get rid of it even though I have tried to follow all the suggestions on mozilla support pages - I don't want to change search en
-
SAP GUI screens in Web dynpro ABAP
Is there an easy way to convert SAPU GUI screns like VA01 into webdynpro screens like the old way of doing with ITS? I don't want to use the SAP portal. I just want to use Webdynpro ABAP only. Please share your thoughts. Thanks
-
Hi, I am trying to write a linked list data structure in Java. But I have a problem with these lines. ListElement startingElement; String data[] = new String[10]; private void addData() ListElement currentElement = startingElement; int i=0;
-
How do I get documents to send to emails
How do I send document to email
-
Can't use MAC Filter and have Blinking Red Link Light on WRE54G
I just added a WRE54G V3 extender to my WRT54G V8, I have download the most recent firmware on both products. My network in using WPA and after fixing all the typo associated with setting all that up I still could not establish wireless connectivit