AS–ColdFusion confusion

FB4, so far, so good. I like the new easy features for styling and skinning without having to sign up for a course at NASA. But I am still a little lost with the new ways of connecting Flex to back-end services, so this might be a dumb question:
In FB2 and 3, we had the ColdFusion Extensions for Flex Builder which included wizards that were very handy for mapping an AS value object to a CFC and vice-versa. That feature is now missing in the new ColdFusion Builder.
Maybe this new way of connecting to data using only the FB4 Design View is so simple I am not getting it. I don’t even recall seeing the term “value object” in any of the tutorials I have gone through. Are value objects now going out of style or something?
I would appreciate someone providing some enlightenment.
Carlos

Hi,
Yes, you are right!
We no more have CF extensions in Flash Builder 4. We have come up with a different workflow called "Data Centric Rapid Appplication Development" which could solve the missing piece and also include a lot of additional functionalities like Client-side Data Management and Pagination.
It basically establishes connection to a back-end server generates the respective value Objects and the client side services.
Please take a look at:
http://balajisridhar.wordpress.com/2009/10/08/build-a-master-detail-flex-coldfusion-applic ation-without-writing-a-line-of-code/ as a starting point.
Thanks,
Balaji

Similar Messages

  • 64-bit ColdFusion 9 ODBC drivers confusion? (architecture mismatch)

    Hi all - I'm having problems setting up ColdFusion ODBC sources in a pure 64-bit environment. Server specs:
    Windows 2008 R2 (64-bit)
    ColdFusion 9.01 (251028) Enterprise, 64-bit
    I have 64-bit ODBC drivers for all of my database sources:
    64-bit SQL Server (bundled with Windows 2008 R2)
    64-bit MS Access 2010 (with 64-bit Access ODBC driver from Office 2010 64-bit install)
    64-bit ODBC drivers for Sybase SQL Anywhere 11 (from SyBase)
    Using the (64-bit) ODBC Administrator, I can create system DSNs and they test out perfectly. (From my test Access database, I can use these DSNs to pull data from SQL Server and from SQL Anywhere.) Since this is working, I'm pretty confident that my drivers are all 64-bit and that everything is happy.
    Now for ColdFusion...
    When I try to create a new data source in the ColdFusion Administrator and I use, the "ODBC Socket" option, I am presented with a drop-down list of my 64-bit ODBC system DSNs (good!), but whenever I select one and save, I invariably get an "architecture mismatch" error like below:
    Connection verification failed for data source: MSSQLtestDatabase
    java.sql.SQLException: [Macromedia][SequeLink JDBC Driver][ODBC  Socket]internal error: The specified DSN contains an architecture mismatch  between the Driver and Application
    The root cause was that:  java.sql.SQLException: [Macromedia][SequeLink JDBC Driver][ODBC Socket]internal  error: The specified DSN contains an architecture mismatch between the Driver  and Application
    I am well aware that "architecture mismatch" errors mean that you're trying to mix 32-bit drivers with a 64-bit application (or vice-versa), but I'm pretty sure that everything in my environment is 64-bit.
    As a further test, I created a few 32-bit ODBC system DSNs and the ColdFusion Administrator does not present them as options in the drop-down list of ODBC DSNs (good!). So, it seems like the Administrator is smart enough to show only the 64-bit DSNs, but whenever you try to connect to one, it gets confused and kicks up an "architecture mismatch" error.
    So is there any obvious configuration error here? Is there a 32-bit subcomponent to ColdFusion (JDBC, etc.) that's confusing things? (I ran the ColdFusion_9_WWE_win64.exe setup downloaded from Adobe's site.) Is 64-bit ColdFusion ready for prime time? Any suggestions would be greatly appreciated. Thanks, Joe

    OK, just did a little Googling for you about this, Josie (and others). There seem to be a few alternative solutions, each with pros and cons.
    The easiest, though, may be to simply use the 32-bit (instead of default 64bit) ODBC control panel, and then again use the MS Access driver in the CF Admin (not the ODBC socket one) to point to that. This is discussed here:
    http://www.cfexecute.com/post/access-dsns-in-64bit-coldfusion
    There's also a little more that may help at the bottom of this:
    http://www.zidsoft.com/x64.html
    MS also covers the topic here:
    http://msdn.microsoft.com/en-us/library/ms712362%28VS.85%29.aspx
    Other CF-specific solutions include:
    - run CF instead in 32-bit mode (even on the 64-bit machine). See discussion at http://www.houseoffusion.com/groups/cf-talk/thread.cfm/threadid:60467
    - if you have 2 boxes available, you could run CF in 32-bit mode on one box (just for providing access to the 32-bit Access driver), then "proxy" the DSN setup from the 64-bit CF machine to access the DSN on the 32-bit machine (See http://www.coldfusionmuse.com/index.cfm/2009/4/7/MS.Access.Proxy)
    - get an alternative jdbc driver for Access (HXTT), mentioned in the threads above
    - did you happen to try the "microsoft access with Unicode" driver option in the CFAdmin? That is quite different from the one that is not "with Unicode", so worth a try if nothing else works for you.
    Let us know if any of these suit you.
    Also, I appreciate the annoyance of those who would think this should "just work" without workarounds. I think I have clarification there.
    First, the CF9 System Requirements page is unclear on this. While its systems support matrix lists 32 and 64 but windows (among others), those don't list what DBs are supported on each. Instead, there's a database support matrix at the bottom, which does indicate that Access is supported, but it doesn't break it down per OS, let alone bit-level of each OS.
    But I just found a clarificaiton in a devnet article (by an Adobe engineer) that does seem to put the nail in the coffin:
    "Most of the functionality and features of ColdFusion run just fine on 64-bit platforms, however, certain features like ColdFusion COM interoperability, ColdFusion Delphi interoperability, and Microsoft Access database connectivity do not work on a ColdFusion 64-bit platform. A few other features, such as ColdFusion .NET integration services and database drivers currently run in 32-bit mode." (http://www.adobe.com/devnet/coldfusion/articles/64_bit_print.html)
    I think most haven't noticed this or made much of it simply because Access has been eschewed by so many for so long.
    /charlie
    Providing CF troubleshooting services at carehart.org/consulting
    [email protected]

  • I'm confusing about cgi in Coldfusion

    I used to write cgi script by Perl.
    And write client side tools by Delphi.
    In Delphi code , 
    call the cgi scrpit like this way :
    IdHTTP1.Post('http://xxx.xxxx.com/cgi-bin/bsdb_conn.pl',ParamData,PostDataStream);
    Right now, a customer ask me is it possible has same function at Coldfusion Environment?
    Hardly googling this topic for hours , there are few pages about Coldfusion Cgi............
    About coldfusion, not much experiences , basic cfm, cfc for insert, delete, update from Ms sql, that' all.
    so, for this requirement, at last two things confusing me ,now.
    1. Coldfusion could write and execute  cgi scrpit like Perl does?
    2. What kind of interface that Coldfusion cold apply for my Delphi client?Is it possible that no need  changes in Delphi code?
    Sorry, for my poor Coldfusion knowledge and bad English ability.
    Hope someone could what I'm saying and show me a way to overcome it.

    Hi, Adam:
    thanks your reply.
    Perl does not call cgi script, but execute it.
    my client side tool(written by Delphi) calls cgi by http://xxxxx/aaaa.cgi , then perl executes aaa.cgi and pass result back to client side.
    So, coldfusion could take apart  which part of those actions ?
    My requirement : Client side tools call cgi by http://xxxxx/aaaa.cgi , then Coldfusion sever executes aaaa.cgi  and pass result back to client side.
    I need to make sure my requirement is correct or not, first.
    If it is correct, then I need to know how to build coldfusion code.
    Anyway, I will study the article you point out first,
    Thanks a lot.

  • ColdFusion 11: allowedextforinclude functionality has changed. But the docs haven't been

    G'day:
    I am reposting this from my blog ("ColdFusion 11: allowedextforinclude functionality has changed. But the docs haven't been") at the suggestion of Adobe support:
    @dacCfml@ColdFusionCan you post your queries athttp://t.co/8UF4uCajTCfor all cfclient and mobile queries.— Anit Kumar Panda (@anitkumar85)April 29, 2014
    This particular question is not regarding <cfclient>, hence posting it on the regular forum, not on the mobile-specific one as Anit suggested. I have edited this in places to remove language that will be deemed inappropriate by the censors here. Changes I have made are in [square brackets]. The forums software here has broken some of the styling, but so be it.
    G'day:
    Remember this one: "ColdFusion 11: preventing files from being included? [WTH], Adobe?". I can confirm this verymoderatelyslightly contentious feature has been changed in ColdFusion 11, but the docs have not been updated to reflect the change.
    The issue is summarised thus (from the article linked-to above):
    [...]out of the box ColdFusion 11 will only allow the inclusion of CFML and HTML files. Why? They cite "for security reasons". Here's a quote (posted in the bugtracker, originally from the pre-release forums):
    "Vamseekrishna Manneboina: Yes, this was done as part of a security measure. You can now only include CFM/CFML files by default. You can specify additional extensions via a property called allowedextforinclude in neo-runtime.xml. By default, HTM and HTML file extensions are already added to this list/property, thereby allowing for inclusion of HTM and HTML files too by default."
    OK, I disagree there's merit in this, some others agree, others disagree. But... so be it. I actually thought - if I was in a charitable mood - that the people that were "for" this change made a reasonable case for its inclusion, so - whilst not agreeing with them - I was content to just shrug and go "yeah, oh well".
    Now this feature is still in the docs: "New in ColdFusion 11 - Restrictions", but this is not the way it now works. Initially I thought it had been removed completely (and I am now in the midst of retooling this article from saying that... as I only worked out what was going on 2/3rds of the way through writing it).
    I did a secure install the other day, and one of the first things I tested was this:
    <!---test.cfm---> <cfset message = "before"> <cfoutput> #message#<br> <cfinclude template="code.inc"> <cfset message = "after"> #message#<br> </cfoutput>
    <!--- code.inc ---> <cfset message="within"> <cfoutput> #message#<br> </cfoutput>
    And this all runs fine, as one would expect:
    before
    within
    after
    Next I checked neo-runtime.xml to see if the settings had been augmented to switch this off by default: but I'm buggered if I can see any reference to it anywhere.
    So I then checked ColdFusion Administrator to see if there was any hint of it there, as this was one of the things Adobe said they were going to do in their solution to this. And there it is:
    So by default now, anything is allowed. I figured I must have missed the setting in neo-runtime.xml, so changed the setting to "FOOBAR" so I could easily spot it, and there it is down @ /wddxPacket/data/array/*[16]/var[@name="compileextforinclude"] in neo-runtime.xml:
    <var name="compileextforinclude">    <string>FOOBAR</string> </var>
    And - having changed it back to something sensible: CFM, then the feature now "works":
    before
    #message#
    after
    However this is probably a worse security hole than the one they were trying to fix! It looks OK when looking at the render in the browser, but look at the actual raw mark-up:
    before<br> <cfset message="within"> <cfoutput> #message#<br> </cfoutput> after<br>
    We have unparsed CFML source code sent to the browser. This is awful. What if someone switches this on, and doesn't spot one of their old includes which has less-than-trivial CFML in it? It's now publicly accessible. Adobe have created a feature which has the possibility to leak source code to the outside world. How is that a security feature?
    Also interesting is that with the super-secure profile installed, this is still off by default? I would have thought it'd be on in this case?
    I still don't think this feature has been implemented properly, and it all still points even more to the fact the Adobe ColdFusion bods don't really know what they're doing.
    Anyway, I'll nudge Adobe to at least get the docs sorted out.
    Time for work (3min ago)...
    Adam

    Hi Adam,
    Regarding "What if someone switches this on, and doesn't spot one of their old includes which has less-than-trivial CFML in it?", yeah I agree that'd be a problem.  Hmm, maybe both this.allowedextforinclude *and* this.compileextforinclude should've been supported (instead of replacing the former w/ the latter as was done)?  Example:
    this.compileextforinclude="cfm,cfml,inc";
    this.allowedextforinclude="cfm,cfml,inc,txt";
    That way an exception could be thrown if cf|included file's extension wasn't in the this.allowedextforinclude list.
    Perhaps the above could be shortened to:
    this.compileextforinclude="cfm,cfml,inc";
    this.allowedextforinclude="txt";//implicitly includes * from this.compileextforinclude (since -compile- implies -allowed-)
    Dunno if that'd be confusing.
    Anyhow, just some thoughts..
    Thanks!,
    -Aaron

  • Windows Authentication on a Coldfusion Application

    Hi community!
    I am working on a coldfusion application and I had a meeting
    today to show my client my progress. The IT director asked if they
    could use Windows Authentication in the new program because the
    doctors and therapists forget everything. My answer was kind of
    defensive but they asked me to figure that out.
    I have no idea as where to start! Can somebody put some light
    in my head?
    Any thoughts? Any ideas? Any resources?
    I work full time in a software development company, this
    project is part of the jobs I do on the side so I can afford gas!
    he,he In my primary job we have never created a coldfusion app that
    works like that. So that's why I am confused.
    Thanks fellows!

    I use integrated Windows Authntication on my intranet. There
    is a checkbox for it under IIS.
    This allows the uername to be visible to CF using the
    #cgi.auth_user# variable.
    As for security, I maintain a data table with each username
    and appropriate permissions. In my application, I merely confirm
    that the currently logged in user is authorized for given areas of
    my site.
    Works great. The only real caveat is that some places might
    aruge that you are not verifying that the person behind the
    keyboard is really the person currently logged into that particular
    machine on the network. My defense is that this scenario is the
    responsibility of the currently logged in user, rather than the web
    developer. Your environment may dictate more stringent criteria or
    verification.
    BTW: My implementation has passed muster with our security
    audits in the medical field for the last eight or nine
    years.

  • Coldfusion 11 - Web Sockets via SSL

    Help!
    I can't seem to figure out how to handle WSS (Websockets over SSL). I have a cert that has already been sent/received by verifier. I have a cert and an intermediate cert. I've been looking at documentation and from what I've gathered i need to add the certs to the "keystore". I issued a command like this ->>>  D:\CF11\jre\bin\keytool -import -v -alias myCert-cert -file myCert.cer -keystore D:\CF11\jre\lib\security\cacerts -storepass changeit <-- I see the cert is added. And if list the keystore i see the number of certs increased by one. I then enable the SSL WS, use default port (built in server.. not proxied), and point it to the keystore D:\CF11\jre\lib\security\cacerts and for pass i simply use the default changeit.... I've modified my cfcode to have the secure="true" attribute. So I think everything is setup correctly ....but...  when i goto the webpage the web socket will try to connect then simply not connect (Firebug says the connection was refused) (The code works fine removing the secure attribute and accessing via http) ... So i guess i'm not sure exactly what i should be doing. Can i use the same cert that I had created via IIS. The cert looks valid. Also further more i see nothing showing up in the log files.. I see a log called WebSocket.log but the size is 0 and nothing is being thrown in the exception log either.. I'm completely confused.

    Hi Sharma,
    I also sent you a note directly via email (see below). I am having a similar issue to Prem without resolution.
    Our CF11 server configuration:
    Windows 2012 Server R2
    IIS 8
    We have a *.balboadigital.com registered RapidSSL certificate installed on our server which resolves to https://dev.balboadigital.com on this particular development box. I've been unable to locate any online resources which would show me how to utilize this certificate for websockets within CF11. Due to this, I was happy to find your reference to try a self-signed certificate. I followed your instructions. Here is the breakdown:
    1. I generated the keystore per your instructions which created the websocket.crt file.
    2. The CF server XML was uncommented and updated to:
    <Connector port="8443" protocol="org.apache.coyote.http11.Http11NioProtocol" SSLEnabled="true"
                   maxThreads="150" scheme="https" secure="true"
                   clientAuth="false" sslProtocol="TLS"
                    keystoreFile="C:\ColdFusion11\jre\bin\websocket.crt" keystorePass="[my password]"/>
    3. I restarted the  CF11 Application Windows service.
    4. The "Use Built-In WebSocket Server" radio button was selected with PORT: 8575 for non-SLL and PORT: 8543 for SSL as defaults. The KeyStore was set to "C:/ColdFusion11/jre/bin/websocket.crt" and the KeyStore Password to "[MyPassword]" and changes posted.
    5. I restarted the  CF11 Application Windows service.
    6. I then ran a test web page: https://dev.balboadigital.com/admin/websocket/index_withssl.cfm (this is live for you to test)
    Application.cfc
    <CFCOMPONENT>
        <CFSCRIPT>
        this.name = "balboa";
        this.wschannels = [{name="phone"}];
        </CFSCRIPT>
    </CFCOMPONENT> 
    index_withSSL.cfm
    <script type="text/javascript">
        function mymessagehandler(atoken)
            if (atoken.data != null) {
                var message = ColdFusion.JSON.encode(atoken.data);
                var txt = document.getElementById("myDiv");
                txt.innerHTML += message + "<br>";
        function publishmessage()
            var msg = document.getElementById("message").value;
            mycfwebsocketobject.publish("phone.4",msg );
    </script>
    <cfwebsocket name="mycfwebsocketobject"  onmessage="mymessagehandler" subscribeto="phone" secure="true">
    "Phone" Message: <input id ="message" type="text" > <input type="button" onclick="publishmessage();" value="Publish Message"><br />
    <cfdiv id="myDiv"></cfdiv> 
    The test fails and returns the following from the Google Chrome Console:
    WebSocket connection to 'wss://dev.balboadigital.com:8543/cfusion/cfusion' failed: WebSocket opening handshake was canceled
    7. The script was copied and modified to eliminate SSL as follows: http://dev.balboadigital.com/admin/websocket/index_nossl.cfm (this is live for you to test)
    index_nossl.cfm
    <script type="text/javascript">
        function mymessagehandler(atoken)
            if (atoken.data != null) {
                var message = ColdFusion.JSON.encode(atoken.data);
                var txt = document.getElementById("myDiv");
                txt.innerHTML += message + "<br>";
        function publishmessage()
            var msg = document.getElementById("message").value;
            mycfwebsocketobject.publish("phone",msg );
    </script>
    <cfwebsocket name="mycfwebsocketobject"  onmessage="mymessagehandler" subscribeto="phone">
    "Phone" Message: <input id ="message" type="text" > <input type="button" onclick="publishmessage();" value="Publish Message"><br />
    <cfdiv id="myDiv"></cfdiv> 
    This test passes and works as expected, but no SSL.
    Please advise as our application absolutely requires that SSL is working for us.
    Thanks,
    Kevin

  • ColdFusion 9 suddenly won't consume Web Services...

    Ok, the weirdest problem has cropped up, and I'm hoping someone will have a solution...
    Suddenly none of the Web Services we're consuming will work from our production server...
    Our test-server, locally-hosted, will consume all these web-services just fine.  But when we try to consume the very same web-services on our production server, it'll just hang forever.  No time-out, no error of any kind; just hangs there forever...
    We do not publish these web-services, we're just consuming them...  These web-services are being published by several different companies (our clients), so it's not that they're all coming from one source and it's the source that has the problem...  Every last web-service we consume has suddenly quit working when we try to access them from our production server...
    So why would we be able to consume them on one server, but not on another?  I've gone through the ColdFusion administrator line-by-line and both the test-server and the production-server are set up precisely the same way...  The only difference between the two servers is the OS and the fact that the production server is quite a bit more powerful...  Test server: 2-core AMD CPU, 4GB RAM, Windows 2003, IIS6,  ColdFusion 9;  Production server: 4-core Intel Xeon CPU, 8GB RAM, Windows Server 2008, IIS 7, ColdFusion 9...
    I'm really confused about this -- it's almost like the production server has had all outgoing requests blocked somehow...  But even if we completely turn off the firewall, we still can't consume any Web Services...
    Has anyone had a problem remotely like this?  I'd appreciate any kind of help you can offer...
    Thanks,

    The only other thing that I can think of would be permissions.
    ^_^

  • How to implement this jquery in coldfusion

    . i will give u my code would u please help me in  that if possible thanks. i bolded all the places where i need  to place this search and where to get the changed output .
    here is my form page test.cfm:   
    <cflayout type="tab" name="courses" tabheight="135"  style="background-color:##DBEAF5" align="justify" >
    <cfoutput query="qryAvailableCourses"  group="course_type_id">
    <cflayoutarea title="#course_type_desc##course_type_id#"  name="#course_type_desc#" style="background-color:##ffffff;  width:600px;padding-left: 5px; padding-top: 5px;padding-right:  5px;padding-bottom: 5px;" >
    <cfset selectedCourses = "">
    <cfif structKeyExists(attributes, 'course_id')>
    <cfset selectedCourses = attributes['course_id']>
    </cfif>
    <div style="clear:right;">
    <span class="actionButtons1" style="width:575px; margin:0;  padding:0;">
    <input type="button" name="checkall" onmouseover="hover(this);"  value="Check All" onclick="checkAll(document.getElementById('selectForm'),  'results#course_type_id#');" />
    <input type="button" name="Un_CheckAll"  onmouseover="hover(this);" value="Uncheck All"  onClick="UnCheckAll(document.getElementById('selectForm'),  'results#course_type_id#');">
    </span>
    </div>
    here i need to add search  filed:
    Search: <input id="search" type="text"  />
    <div id="userlist"> <div style="height:135px; overflow:auto; float:left;">
    <cfoutput >
    <span class="row#Int(currentrow mod 2)#" style="float:left;  width:575px; margin:0; padding:0;" >
    <cfset checked = "" />
    <cfif listcontains(selectedCourses,course_id)>
    <cfset checked = 'checked="true"' />
    </cfif>
    <input type="checkbox" name="course_id" id="#course_id#"  value="#course_id#" class="results#course_type_id#" #checked#/>
    <label for="#course_id#">
    <span style="padding-left:5px;"> </span>
    #course_desc# (#course_id#)
    </label>
    </span>
    <!---<div style="clear:both; line-height:0px; margin:0px  !important; padding: 0px;"> </div> --->
    </cfoutput>
    </div>
    </div>
    </cflayoutarea>
    </cfoutput>
    </cflayout>
    <script type="text/javascript">
    $('#search').bind('keyup',updateQuery);
    function updateQuery(){
    $('#userlist').load('qryAvailableCourses.cfm?search='+ $('#search').val() );
    $(document).ready(function(){
    $('#userlist').load('qryAvailableCourses.cfm');
    </script>
    <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"></script>
    in the above form  thats how i need to add this search box, because my application will have tabs ,  now i will give my query page :
    <cfquery name="qryAvailableCourses" dbtype="query">
    SELECT
    course_id
    ,course_desc
    ,course_type_id
    ,course_type_desc
    FROM
    qryAvailableCourses
    Where
    dsp_host_reporting = 'A'
    <cfif len(search)>
    AND course_desc LIKE <cfqueryparam cfsqltype="cf_sql_varchar" value="%#search#%"/>
    </cfif>
    ORDER BY
    <cfif structkeyexists(attributes, "orderby")>
    #attributes.orderby#
    <cfelse>
    course_type_id desc
    , course_desc
    </cfif>
      </cfquery>
    Above this is my query page. i  need to implement that jquery script here so that i need to search in each tab .  thanks for ur time.
    Thanks,

    It is a confusing concept to say that you need to impliment Jquery in ColdFusion.  ColdFusion runs on the server, Jquery runs on the client.  All ColdFusion is going to do is return the Jquery syntax back to the client along with the HTML.
    What you seem to be struggling with is the use of the <cflayout type="tab"...>.
    This is just and easy and quick way to have ColdFusion to create the HTML, CSS and Javascript code to send to the broswer to make an interface that looks like a series of tabs.  Under the hood those tabs are just simple div blocks in the HTML that is returned by ColdFusion.
    What you need to do is to use some handy tool, like the Firebug plugin for the Firefox browser, to explore the DOM structure of the page that is actually returned to the browser, see what the id's of these divs that make up your tabs are and the provide those details to your Jquery syntax.

  • Shared hosting, Coldfusion 8 & Livecycle Data Services ES

    I want to develop a CF/Flex/Air online/offline application that uses Livecylcle Data Services (LCDS) to synchronize client (SQLlite) and server (MySQL) databases.  I'm a coldfusion developer (MX6) and have done some Flash work (AS2).  I'm going to learn Flex, Air and AS3.
    I can only use shared hosting.   I'm confused about the licensing of LCDS and if there is shared hosting that provides it.  I Googled for Coldfusion/Flex/LCDS web hosting and the only one I found was way too expensive, e.g.$250/month. 
    But I just read that LCDS is included with Coldfusion 8.  So does that mean web hosting with CF 8 (Enterprise) automatically includes LCDS?

    It really depends on the hosting provider.  The ColdFusion 8 install (Standard & Enterprise) have the ability to install a LCDS "trial" which after 30 days will revert to LCDS ES which is free, as long as the server that it's installed on has no more than 1 processor (up to 2 cores though I believe).
    To more specifically answer your question, it really depends on whether the individual hosting provider has installed and offers this option to their clients.  The use of LCDS with Flex required configuration of a data-management-config.xml file and certain ports may need to be opened up for rtmp vs. polling transfer methods.  I'm not sure exactly how this would work given a shared hosting environment and if you could sandbox the configurations per client.
    The sure way to get this setup (and the method I've used for the past few years) is to get yourself a dedicated box (which can be had for less than 100 dollars, especially given the processor limitation on the LCDS licensing) and get yourself a license for CF8 while they're still available.  CF9 will still support LCDS integration, but the install isn't seamless like it is with CF8.  During the install process for CF8 you can choose to install LCDS and after a bit of configuration you're all set.

  • Dynamic value objects in flex and coldfusion 9

    I'm writing a program for a company that does registrations for conventions and trade-shows.  The problem I'm having is that each different client wants to store different data for each show.  Most of the data is the same (attendee's name, address, etc...), but each show has some customizations that it wants to have...  So each database for each show is going to be different...
    Right now, the only way I know how to transfer data from Flex to ColdFusion is via a Value Object.  (Well, the only good way to do it, that is.)  My problem comes when a client wants a particular database customized.  I have MANY questions about this...
    1) How do I tell my Value Object what fields we've added to or changed in the database without re-writing the entire VO (in both the .AS and .CFC files) and re-compiling my program?  In other words, I need a dynamic VO that changes automatcially with the database.
    2) If there is a way to dynamically create a VO in Flex (and from a few blog posts I've seen, it seems there is a way), how do I tell CF9 what the structure of that dynamically-created VO is?  Without re-writing a bunch of .CFC files every time I add or change a field in the database, that is...
    3) How do I reference the dynamically-created fields in my Flex program?  Right now, for example, I can define a variable called attendeeInfo as type attendeeInfoVO, and then reference things like attendeeInfo.first_name, attendeeInfo.last_name, etc...  How do I reference a field programmatcially when I don't know what it's going to be called beforehand?
    4) How do I make my program display/modify those dynamically-created fields?  Right now, using the attendeeInfo example above, I can create a TextInput with an id="firstNameInput" and just say firstNameInput.text = "{attendeeInfo.first_name}".  That won't work when I have no clue how many dynamically-created fields there are, or even what kind of data they're going to store...  How do I deal with this?
    5) Is there something other than VOs that would fit this situation better?  Am I limiting myself by using VOs in the first place?  Is it just plain impossible to do this with VOs?  And if so, what are my alternatives?  I need a structured object that can be passed around with a single reference -- I absolutely DO NOT want to pass a bunch of references to a bunch of different variables -- that's why I used VOs from the very beginning.
    6) Can I simply PAY someone at Adobe for one-on-one help here?  Do they have experts that you can "buy" for a few hours?  What's the charge for that, if such a thing is available?  Or, is this problem well-explained somewhere on the Web, and I just haven't found it yet?
    I'm very confused here, and it seems like I might have to re-write a ton of code, which I'm not looking forward to...  Ugh...  I appreciate any help you can give me...
    Thanks,
    Laurence MacNeill
    Mableton, Georgia, USA

    This blog post is pretty close to what I want:
    http://justinjmoses.wordpress.com/2008/10/10/flex-dynamic-bindable-value-objects/
    So there are the dynamic value objects I was looking for.  But the blog-poster is using LINQ and .Net 3.5.  I'm using ColdFusion9.
    So, how do I get ColdFusion9 to deal with that?  How do you get CF9 to recognize the fact that you've changed the VO, and deal with it appropriately?
    Thanks,
    L.

  • How do I get flex remoting to work with Coldfusion 11

    Hi,
    Coldfusion 11 (Developer)
    Flex 3
    Existing Flash Application works with Coldfusion 8
    Flex Integration is turned on.
    Running latest update
    CentOS 6.1 with latest updates
    I have done the following:
    http://127.0.01/flashservices/gateway  ---> Page Not found
    http://127.0.01/flashservices/gateway/  ---> Page Not found
    http://forums.adobe.com/message/5621721#5621721
    Confusion Blog » Apache + Debian + Coldfusion 10 + flex2gateway = Error 404
    https://groups.google.com/forum/#!topic/railo/6j2i6gl8Ac4
    \config\wsconfig\1\uriworkermap.properties file to include:
    /flashservices/gateway/* = cfusion
    /flashservices/gateway = cfusion
    I have modified the mod_jk.conf like so:
    # Select the timestamp log format
    JkLogStampFormat "[%a %b %d %H:%M:%S %Y] "
    # Fix para Flex2gateway
    <IfModule jk_module>
        JkMount /*.cfm ajp13
        JkMount /*.cfc ajp13
        JkMount /*.do ajp13
        JkMount /*.jsp ajp13
        JkMount /*.cfchart ajp13
        JkMount /*.cfres ajp13
        JkMount /*.cfm/* ajp13
        JkMount /*.cfml/* ajp13
        JkMountCopy all
    </IfModule>
    AddHandler jakarta-servlet .cfm .cfml .cfc .cfr .cfswf
    Alias /CFIDE "/opt/coldfusion10/cfusion/wwwroot/CFIDE"
    I uncommented the "start flex 2" section in web.xml
    Nothing has worked.
    I have searched Google and Adobe.
    I was hoping that Adobe would have the "Flex Integration Check Box" working
    by now.  It only been around since ColdFusion 8 and basically does nothing.
    Adobe could post a tutorizl on how to get this working.
    Job Security for "Tech Support".
    Any ideas.
    Brian

    Do you have internet when wired to the router?
    What exactly is the problem? What error messages do you get?
    What are the current settings on the WRT?

  • The great SQL ColdFusion Auto Increment fiasco

    Hello all and thanks in advance for your help. I am
    working on an Insert Record page using ColdFusion 7, Dreamweaver 8
    and SQL Server 2000.
    The SQL DB has a table called Articles. The table Articles
    has a Primary Key field called ArticleID which is set to a type of
    "Numeric, Identity:Yes, Seed:1, Increment:1" and no Null allowed.
    I am getting an error message of:
    Variable
    PAGENUM_RSARTICLES is undefined.
    The error occurred in
    D:\Inetpub\guardyourself\backend\article_add.cfm: line 107
    105 : </cfquery>
    106 : <cfset MaxRows_rsArticles=10>
    107 : <cfset
    StartRow_rsArticles=Min((PageNum_rsArticles-1)*MaxRows_rsArticles+1,Max(rsArticles.Record Count,1))>
    So. How do I get the ArticleID field on the CF page to see
    what the last SQL row shows for an ArticleID... and then add one?
    I'm stumped. Any help you can provide would be greatly appreciated.
    Code for the page in question is as follows or you can just go to :
    http://www.guardyourself.org/backend/article_add.cfm

    I think there may be a little confusion about what a
    uniqueidentifier field type is. You're talking about two separate
    concepts as though they are one. To create a field which
    "auto-increments" in SQL Server, you need to create the field as a
    numeric type and then specify that the field is an identity field
    (you can also specify the start and increment values). On insert,
    SQL Server will assign values to this field based on the criteria
    you supplied. If you do this, you will typically want to omit the
    value and field from your ColdFusion inserts as you have described
    below.
    What you have done instead is to create the field as a
    uniqueidentifier which requires a GUID value to be stored there.
    You cannot "increment" a GUID. The GUID for new records must either
    be generated by SQL Server (using the newID() function) or
    externally in your code. You must pass this value on insert from
    ColdFusion.
    Hope this helps.
    Adam

  • Radio Buttons, Coldfusion and HTML

    Hello.
    I want to use 4 radio buttons. Each one has a different $
    amount. The user chooses a radio button ($ amount) and then clicks
    on the PayPal donation button which sends the user to the PayPal
    payment page with the correct $ amount chosen.
    The HTML code for the PayPal link allows me to use the
    following code:
    <input type="hidden" name="amount"
    value="<cfoutput>#MoneyAmount#</cfoutput>">
    I just have to figure out how to get the MoneyAmount chosen
    by the user depending on which radio button is chosen.
    I do not want to put the radio button into another form
    because as I understand it the user would have to click another
    submit button first via cfform. That defeats the purpose. Any way
    to find out which button is chosen with out using the submit
    button?
    If you are confused at what I am talking about, check out
    this website that has what I want:
    http://www.licadho.org/donation.php
    They do it with Javascript but I am sure I can do it in
    ColdFusion.
    Any ideas.
    I appreciate the help.
    Pedro

    They appear to do it with a simple form, not javascript.
    Plus, they have radio buttons on the form. What exactly are you
    having difficutly with?

  • Coldfusion query of queries error

    I have a long query named "Results.Itinerary" in a CFC which
    I have to add this query to.
    <CFLOOP QUERY = "Results.Itinerary">
    <CFQUERY NAME = "GetPorts" DATASOURCE="x">
    SELECT *
    FROM Itinerary_Ports
    WHERE (ItineraryID = #ItineraryID#)
    AND (Name NOT LIKE '%At Sea%')
    </CFQUERY>
    <CFSET ThisPortList = ValueList(GetPorts.Name)>
    <CFSET QuerySetCell(Results.Itinerary,
    "PortList","#ThisPortList#", CurrentRow)>
    </CFLOOP>
    Now this query below gives me an error, I know I need to have
    the single quotes around PortList for it to work , but coldfusion
    is getting confused and throwing errors.
    <cfquery name="Search.Results.ThisShip" dbtype="QUERY">
    SELECT *
    From Search.Results.Itinerary
    Where ShipID = #ShipID#
    AND NumberOfNights = #NumberOfNights#
    AND PortList = '#PortList#' < - Coldfusion will sometimes
    get screwed up on this line.
    ORDER BY DepartureDate ASC
    I need to know a different way to write this. Thanks.

    Thanks to you and Dan. I think the key was getting rid of the
    apostrophies that coldfusion added. I still dont know if its a
    QuerySetCell that adds them or what, but having them makes
    problems.
    Here is what I did to fix it
    In the query I used QuotedValueList and used a delimiter.
    Then I stripped out the apostrophies that coldfusion added.
    Then I reset the QuerySetCell with the apostrophies removed.
    <CFLOOP QUERY = "Results.Itinerary">
    <CFQUERY NAME = "GetPorts" DATASOURCE="Cruises">
    SELECT *
    FROM Itinerary_Ports
    WHERE (ItineraryID = #ItineraryID#)
    AND (Name NOT LIKE '%At Sea%')
    </CFQUERY>
    <CFSET ThisPortList =
    QuotedValueList(GetPorts.Name,";")>
    <CFSET QuerySetCell(Results.Itinerary,
    "PortList","#ThisPortList#", CurrentRow)>
    <cfset a = replace(PortList,"'","","all")>
    <CFSET QuerySetCell(Results.Itinerary, "PortList","#a#",
    CurrentRow)>
    </CFLOOP>
    The next part I did was the "PortList IN ('#PortList#'). "
    SELECT *
    From Search.Results.Itinerary
    Where ShipID = #ShipID#
    AND NumberOfNights = #NumberOfNights#
    AND PortList IN ('#PortList#')
    ORDER BY DepartureDate ASC

  • ColdFusion Report Builder 9 Using MySQL query's

    Hey Everyone
    I have been pulling my hair out for several days with this, I have all of the Adobe ColdFusion 9 dev books, and Google returns a cluster of information that doesnt seem to work. I was hoping someone could help me out here.
    So what I did was open query builder in Adobe ColdFusion 9 Report Builder, I clicked the icon at the top that says report query and placed the following mySQL information, which works fine.
    MySQL
    select name.soc_sec, name.last_name, name.first_name, nmcrs.course,nmcrs.crs_txt AS Course_Title ,practicl.day_cod,CAST(practicl.start_hr AS VARCHAR(2)) + ':' + CAST(practicl.start_min AS VARCHAR(2)) AS Start_Time,
      CAST(practicl.end_hr AS VARCHAR(2)) + ':' + CAST(practicl.end_min AS VARCHAR(2)) AS End_Time, nmcrs.section, nmcrs.sch_yr, nmcrs.sm_desc, nmattend.attend_txt,address.phone,address.cell_phone,
      address.e_mail
    From name
      --INNER JOIN  nmprg ON name.soc_sec = nmprg.soc_sec  
            INNER JOIN  nmcrs ON name.soc_sec = nmcrs.soc_sec
            Left Join crssect ON name.soc_sec = crssect.crs_id
      Inner Join practicl On practicl.sid = nmcrs.sid
            inner join nmattend on name.soc_sec = nmattend.soc_sec
            Inner join  address On name.soc_sec = address.soc_sec
    WHERE (name.camp_cod = 'California') AND (nmcrs.sch_yr = '201213')and (nmcrs.semester = '1') and (nmattend.attend_txt = 'SP') and
      (nmcrs.section not like'w%')
    group by name.soc_sec, name.last_name, name.first_name,nmcrs.course,nmcrs.crs_txt,practicl.day_cod,practicl.start_hr,
       practicl.start_min, practicl.end_hr,practicl.end_min,nmcrs.section, nmcrs.sch_yr,nmcrs.sm_desc, nmcrs.grade,
       nmattend.attend_txt, address.phone,address.cell_phone,address.e_mail
    ORDER BY nmcrs.section, name.soc_sec
    Now I place my fields where I want them in the desgner, I double click the field to open the expression builder and all I have to type is something like query.Start_Time
    When I run the report it lists all of the start times that match my criteria.
    good
    So my trouble is, I would like to use an if statement to make something happen based on the start time and cant get it to work. I have tried using <cfscript> <cfif> <cfquery> if, IIF, nothing works, mainly because once I use one of those tags it no longer recognizes the query.Start_Time.
    I was wondering if someone could give me an example on how to do this like
    <cfif (query.Start_Time) IS '12:0'>
    query.Start_Time = '12.00'
    </cfif>
    or
    <cfscript>
    if(query.Start_Time == '12:0')
         query.Start_Time = '12:00';
    </cfscript>
    I mean I know thats wrong and Its probably not that simple but all I need is a simple example to work off of and one would be greatly appreciated. Or even an example in the mySQL info I provided would work too. Please Help
    Thanks
    Shawn

    Shawn, forgive me not focusing on the direct question, but I want to clarify first that this is not the right forum for that question, about the CF Report Builder. This forum is for CF Builder, the relatively new CF IDE (integrated development environment) for CF, based on Eclipse.
    Your question about the CF Report Builder should be directed to its own forum, the CF Reporting forum:
    http://forums.adobe.com/community/coldfusion/coldfusion_reporting
    I do understand the easy confusion (the name CF Builder is awfully close to the CF Report Builder). Also, the forum name “CF Reporting” may not have jumped out as a place for RB questions. (For any readers who may be interested, the list of all CF-related forums is at http://forums.adobe.com/community/coldfusion)
    That forum is not as busy, no, but then the Report Builder is quite a bit older, having come out with CF 7, and not really having been updated much since then.  Still, there are folks there who have replied to questions asked, including Adobe staff.
    Since I don’t read that forum myself, and won’t see your question asked/answered there, let me point out something else that may help (in case others there would not).  You say “I have all of the Adobe ColdFusion 9 dev books”, and that may mean various books like the CF Web App Construction Kit books that Ben, Ray, myself, and others have done.
    But did you know that there is an entire chapter on the CF Report Builder in the free online CF9 manual called “Developing ColdFusion 9 Applications” (a 1300-page manual which many miss entirely , as happened with the versions for CF8 and 7 as well). Many people never even know there is any such “documentation” from Adobe for working with the CF Report Builder. I’ll note also that we (writers of books) may not always get into all the detail that’s in those docs because, well, we don’t want to duplicate their effort. But I know even some writers/bloggers/forum respondents never even know of the manuals, as they are rarely referred to.
    In your case, with the CFRB, it’s especially important to be aware of its substantial chapter:
    http://help.adobe.com/en_US/ColdFusion/9.0/Developing/WSc3ff6d0ea77859461172e0811cbec22c24 -6fc2.html
    For instance, you may already know about this but there you’ll learn that there is a QUERY attribute for the CFREPORT, whereby you can build the query dynamically (as any CFQUERY can be) and then pass that resultset to the report. That may suffice to solve the challenge for you, but if it does not, then you may want to at least take a moment to peruse that chapter before proceeding to ask the question in that other forum.
    And if the book doesn’t help (and I grant it may not) them one more suggestion before you may re-post the question on the other forum: it really may be best for you not to make reference to MySQL or CF9 in your subject, as you did here. There’s doesn’t really seem anything about your challenge that’s specific to them, but saying it in your subject may limit who would read/reply (if they don’t use with MySQL or are not yet on CF9).
    Hope something there’s helpful.
    /charlie
    PS If you may feel that this answers the question, please do mark it as such in the forum web interface, if you would please. Thanks.

Maybe you are looking for

  • Suppress "Order By" clause in Answers Query

    Hello, Is it possible to Suppress "Order By" clause in Answers Query. I'm using a database view as data source. In the view definition, "order by" clause is already specified. Is it possible to get the same order in the OBIEE report?? I do not want t

  • 2 questions. iPhone 3GS os 4 issue + upgrade iPhone 4

    I upgraded my iPhone 3GS to os4 and I cannot send picture messages I have no option whatsoever to do so. Does anyone have a solution? 2nd question: I purchased iphone 3GS 9/11/09 I would like to upgrade to iPhone 4 I am willing to restart my contract

  • Is it possible to pair my Mac to my iPad via Bluetooth

    I'm trying to connect the two in an attempt to control keynote with my iPad

  • Partner Function Category

    Hi I want to know how to define a partner function category? Thanks Tarang

  • Why Can't I Upgrade to Mavericks?

    Almost as long-as it has been out, I cannot even get Mavericks.  Please let me tell details. I use an iMac from mid-2011, on which Mountain Lion is installed already.  My iMac has 4 GB of RAM & a [400 +] GB Hard Drive. But with the App Store almost _