Flex & cf 6, am i missing something - code snippet

So my first attempt at this, and I wondering if I'm missing
something....
Flex Builder 3 app, calling a cfm proc on a CF6 server. Code
snippet below. Just a simple call to return some CGI vars as a
test.
I'm not getting my datagrid populated, not sure if it's just
not communicating, or what. Thanks for any suggestiongs, or help.
---- mxml code ----
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="
http://www.adobe.com/2006/mxml"
xmlns="*" layout="absolute"
creationComplete="userRequest.send()">
<mx:HTTPService id="userRequest" url="
http://xxxxxx.com/test/cgi-vars-for-flex.cfm"
useProxy="false" method="POST">
</mx:HTTPService>
<mx:DataGrid id="dgUserRequest" x="10" y="10"
dataProvider="{userRequest.lastResult.cgi.vars}" height="142">
<mx:columns>
<mx:DataGridColumn headerText="CGI Variable"
dataField="name"/>
<mx:DataGridColumn headerText="Value"
dataField="value"/>
</mx:columns>
</mx:DataGrid>
<mx:Form x="10" y="10" width="100">
</mx:Form>
<mx:Button label="Refresh" click="userRequest.send()"
x="10" y="160"/>
</mx:Application>
---- cgi-vars-for-flex.cfm ----
<cfprocessingdirective pageencoding = "utf-8"
suppressWhiteSpace = "Yes">
<cfxml variable="cgiXML">
<cgi>
<cfoutput>
<vars>
<name>CGI.SCRIPT_NAME</name>
<value>#CGI.SCRIPT_NAME#</value>
</vars>
<vars>
<name>CGI.SERVER_NAME</name>
<value>#CGI.SERVER_NAME#</value>
</vars>
</cfoutput>
</cgi>
</cfxml>
<cfoutput>#cgiXML#</cfoutput>
<!--- <cfdump var=#cgiXML#> --->
</cfprocessingdirective>

So I decided to change the url="
http://xxxxxx.com/test/cgi-vars-for-flex.cfm"
to url="
http://xxxxxx.com/test/cgi-vars-for-flex.xml"
(xml code below), to see if that works, and everything works fine.
So, I suspect there's something wrong with my cfm code.
Any ideas, anyone ? :)
Thanks,
Ray
---- xml file ----
<?xml version="1.0" encoding="ISO-8859-1"?>
<cgi>
<vars>
<name>CGI.SCRIPT_NAME</name>
<value>/dev/development/rdixon/test/cgi-vars-for-flex.cfm</value>
</vars>
<vars>
<name>CGI.SERVER_NAME</name>
<value>fusionmx-dev1.e-dialog.com</value>
</vars>
</cgi>

Similar Messages

  • EDGE ANIMATE CC (2014) : Missing Code Snippets sidebar - WHY!?!?!

    I just updated today, and now a project I had been working on for weeks (my first real project) won't open in CC anymore. The only reason I wanted to open it back up in CC - NOT Adobe Edge Animate CC (2014), was because this updated Edge Animate IS MISSING THE CODE SNIPPET SIDEBAR!! WHY!! WHY!! WHY!! It's a little hard to follow along with tutorials you have been using when they insert snippets from the sidebar and suddenly you don't have one anymore!
    I have rebuilt permissions and restarted hoping that would fix the issue but it has not. If I can't get this project to pen in CC, can someone tell me how to trick CC into opening it again? Byt he Way -- the old version of Edge Animate was AUTOMATICALLY UNINSTALLED with this update. Also very frustrating!! I had to go to my could menu and download CC (3.0) again.

    OK - Possibly Good News... I talked to Adobe Tech Support. I am able to download a previous version of the Edge Animate CC by choosing PREVIOUS VERSION under the FIND NEW APPS section of the Creative Cloud Desktop app. This is a new feature of CC. Thankfully. I can install CC and then do as hemanth kumar r suggested and edit the _edge.js file to allow 3.0 to open the file.
    Thanks for all of the help. Sorry for the frustration in MY TYPING . I'll reply if that all works.

  • HT1926 When I go to install it Itunes it says I am missing something that keeps it from installing. It does not give a error code so I am clueless.

    I dont know know what to do . I wont give me a error code it keeps saying that its missing something. Its not specific! It says the installer package is missing something to keep it from installing. I have downloaded it again and its says the same Dx

    It says the installer package is missing something to keep it from installing.
    Try the following user tip:
    "There is a problem with this Windows Installer package ..." error messages when installing iTunes for Windows

  • Missing something obvious

    I am using nigpib version 6 with RedHat Linux 6.2. I am having problems talking to my instruments. Two devices a Keithley Multimeter 2001 and an IO TECH dac488hr refuse to communicate. Their remote lights go on but I get an EBUS error when doing ibwrt to either. Two other devices an SRS850 lockin amplifier, and an ESI model 73 precision transformer respond to commands well enough but I get an EAB0 error returned. I recognize the problems have to do with timeout. I have changed ibtmo to various settings but continue to get errors. I have tried to be careful setting the EOS and EOI attributes for each device but clearly I am missing something. Any suggestions?
    In the past I used the LLP gpib driver and don't recall gett
    ing these kinds of problems. I was going to port over my old code to talk with the instruments but I see that there is some rather sigificant differences in the way you do business. For one under LLP Clausi set up a /dev/gpib0/master device through which commands were passed. In addition he had a /etc/gpib.conf file and loaded his module via insmod in rc.d. You, on the other hand, set up /dev/gpib, /dev/gpib0, /dev/gpib1/, /dev/gpib2, /dev/gpib3, /dev/gpibdebug and /dev/dev0 /dev/dev1 etc (where dev# is a device configured with ibconf). What are the relationships between your strategies? What must I do to port my old software to my newer linux OS and use your drivers rather than those from LLP?
    I could really use some insights. Any comments (sans flaming ;-) would be welcome.

    I tried this but with no success. I called the help line and spoke with Ben P. and Armando V. they walked me through the ibic and ibconf tools, again, with no success.
    I spoke with the vendors of the instruments which are giving the EBUS error. They walked me through the setups (especially wrt to EOS and EOI). They were confused as to why the instruments failed to respond.
    With my last call to NI (SR#345883) the engineers suggested that I respond to this email and ask for further support. They requested/suggested I supply the following 3 pieces of information:
    1) revision of boards and part nos.
    2 ATGPIB-TNT boards vintage 1993
    assy 181830-01 REV. D
    1 ATGPIB-TNT PNP vintage 1995
    assy 182885E-01
    The implication was that NI might be able to provide an upgrade to the firmware if that was at fault.
    2) Capture of errors in ibic
    basically following your webpage for ibic works upto communicating with devices. Sample output follows:
    : ibfind gpib0
    id = 0
    gpib0: ibpad 0
    [0100] ( cmpl )
    previous value: 0
    gpib0: ibfind keithley
    id = 1002
    keithley: ibwrt "*IDN?\xA"
    [8100] ( err cmpl )
    <>
    error: EBUS
    count: 0
    keithley: ibrd 100
    [8100] ( err cmpl )
    error: EBUS
    count: 0
    <>
    keithley: ibfind ratio
    id = 1003
    ratio: ibwrt "Ratio 0.1234567\xA"
    [c100] ( err timo cmpl )
    error: EAB0
    count: 16
    <
    the ratio, as verified by the display >>
    ratio: ibrd 100
    [e100] (err timo end cmpl )
    error: EAB0
    count: 17
    52 61 74 69 6f 20 30 2e Ratio 0.
    31 32 33 34 35 36 37 30 12345670
    0a .
    using the SRS850 Lockin Amplifier has an added advantage. It will show the input and output queues on the screen. When I command this instrument I can watch as it receives its instructions. The commands are going through correctly (NOTE: this device also gives an EAB0 error).
    I have tried different cables, different machines, different DMA settings, different interrupts, different instruments, different ibtmo values, different cards, single devices on short cables, but keep getting errors.
    I have used the ibic webpage (setting ibsre 1, etc) and these work fine but the devices still complain.
    3) Give the version of Linux I am using...
    We are running Redhat 6.2, kernel version 2.2. We have older versions of the Linux OS which are running the LLP gpib driver for the SAME devices and it works fine. I would rather not go back to older versions if possible, besides since NI has done the Linux gpib driver, it appears that LLP has dropped support. In particular, I cannot get their drivers to compile in Redhat 6.2 and get no response from my emails. I would be willing to move to newer versions of Linux if that would solve the problem.
    I have confirmed the following:
    The ibtsta program says the driver is installed correctly (run without the gpib cable attached.)
    Interrupts, dma, iports are unique and without contention.
    The gpib card responds to commands (eg using ibic.)
    Some devices respond in a fashion, others fail. But all seem to receive signals from the computer.
    The instruments and cables attached to the system are sound.
    The gpib card, cables, and devices respond correctly from a dual boot machine running WinNT and Linux (i.e. no movement of cables, devices, or cards). On the WinNT side the recently downloaded NI drivers work and I can communicate (with the Keithley 2001) flawlessly.
    I am must now ask whether the driver is at fault. I understand the drivers are beta, but these appear to be the only workable drivers out there. ANY HELP WOULD BE APPRECIATED!
    >>

  • Am new to mac.  Just purchased downloaded adobe photoshop elements and in order to open it, it wants a serial number.  I downloaded it, so I don't have a redemtion number or a serial number.  Obviously I am missing something; however I really do want to t

    Am new to Mac.  Downloaded Adobe Photoshop Elements and am trying to open it but they want a redemption code and a serial number.  Since I downloaded it I don't have either of those but apparently I am missing something because I can't use it unless I enter that info and I don't know where to find it.  Can you please help me figure this out.  If I purchased the software I would have the serial number but as I said, I purchased and downloaded.  Marianne

    Photoshop Elements is not part of the Cloud, I will move this to that forum
    Photoshop Elements Forum http://forums.adobe.com/community/photoshop_elements
    Redemption Code http://helpx.adobe.com/x-productkb/global/redemption-code-help.html
    -and https://forums.adobe.com/thread/1572504
    Lost serial # http://helpx.adobe.com/x-productkb/global/find-serial-number.html
    Select a topic, then click I STILL NEED HELP to activate Photoshop Elements Online chat
    -http://helpx.adobe.com/contact.html?product=photoshop-elements or
    http://helpx.adobe.com/photoshop-elements/kb/troubleshoot-installation-photoshop-elements- premiere.html

  • Error in XML parsing. Im i missing something obvious.

    I am new to XML and i cant seem to be able to iterate through the xml response.
    Here is the relevant code
         QName qName = new QName( "http://www.ros.ie/schemas/customs/collectresponse/v1", "MailboxCollectResponse" );
                              //create the parser
                              XMLStreamReader parser = response.getPullParser(qName);                 
                              StAXOMBuilder builder = new StAXOMBuilder(parser);
                              OMElement documentElement = builder.getDocumentElement();
                              //dump the out put to console with caching
                              System.out.println(documentElement.toStringWithConsume());                             
                              //QName elementQName = new QName("http://www.ros.ie/schemas/customs/collectresponse/v1","MailboxItem");
                              QName elementQName = new QName("http://www.ros.ie/schemas/customs/collectresponse/v1","MailboxItemList");
                              Iterator infoIter =
                                  documentElement.getChildrenWithName(elementQName);
                                  while (infoIter.hasNext()) {
                                      OMElement element = (OMElement) infoIter.next();
                                      System.out.println("Matching Element Name = " +
                                          element.getFirstElement().getText());
                                      }  The println statement is producing this output which i think is correct.
    <MailboxItemList xmlns="http://www.ros.ie/schemas/customs/collectresponse/v1" moremessages="false" messagecount="2"><MailboxItem xmlns="http://www.ros.ie/schemas/customs/collectresponse/v1"><ns2:IEMailboxId xmlns:ns2="http://www.ros.ie/schemas/customs/customstypes/v1">Mailboxid123</ns2:IEMailboxId><ns2:IETransactionId xmlns:ns2="http://www.ros.ie/schemas/customs/customstypes/v1">Transaction123</ns2:IETransactionId><Message xmlns="http://www.ros.ie/schemas/customs/collectresponse/v1"><x:root xmlns:x="bar" xmlns:y="bar1"><x:foo xmlns:x="bar"><y:yuck xmlns:y="bar1">blah</y:yuck></x:foo></x:root></Message>But when it gets to the Iterator an exception is raised.
    org.apache.axiom.om.OMException: Parser has already reached end of the document. No siblings found
         at org.apache.axiom.om.impl.llom.OMElementImpl.getNextOMSibling(OMElementImpl.java:267)
         at org.apache.axiom.om.impl.traverse.OMChildrenQNameIterator.hasNext(OMChildrenQNameIterator.java:69)
         at com.alp.ccs21.soapwg.msgcollect.FrDHLCli.collectMsgs(FrDHLCli.java:281)
         at com.alp.ccs21.soapwg.msgcollect.FrDHLCli.run(FrDHLCli.java:203)Im i missing something obvious here?
    Thanks in advance.

    Edited by: ziggy on Jul 31, 2010 4:48 PM

  • Am I missing something?

    I've been scouring the web for examples of using PHP to
    access data from MYSQL. My issue is there is no real security model
    mentioned accept form weborb. All requests are made via POST to a
    php page, which anyone could make a page and post variables to to
    get data. Am I missing something obvious here? How can i secure my
    flex application and the php pages it uses to retrieve and assign
    data?

    I think that i was missing something quite obvious. I was
    assuming that requests were made via POST, instead of RemoteObject,
    which can evoke a php class directly. Even if a user could get to
    the php file via a web browser, they can't evoke a function/method
    in a class. I got Weborb working beautifully to make the connection
    and call the function.
    As a side note, if anyone reading has had trouble getting
    weborb working on an actual server for development, let me tell ya
    that It's much easier to setup a local environment (like MAMP or
    WAMP), get your program running and then transport it to your
    server.
    Also as a side note for anyone trying to make sure weborb is
    secure, AMF (but more specifically the RemoteObject) operates as a
    server call, not a user call. So setting up protection (.htaccess
    or the like) for the entire weborb folder won't break your scrips.
    And won't let anyone go in a play with your configuration either.
    (This is the case even for a non-weborb class)

  • I updated to lion and now don't have a minimize button in the new emails i am writing.  Do i really have to save it as a draft to be able to have multiple emails in progress?  Or am I missing something obvious?!

    I updated to lion and now don't have a minimize button in the new emails i am writing.  Do i really have to save it as a draft to be able to have multiple emails in progress?  Or am I missing something obvious?!

    Photoshop Elements is not part of the Cloud, I will move this to that forum
    Photoshop Elements Forum http://forums.adobe.com/community/photoshop_elements
    Redemption Code http://helpx.adobe.com/x-productkb/global/redemption-code-help.html
    -and https://forums.adobe.com/thread/1572504
    Lost serial # http://helpx.adobe.com/x-productkb/global/find-serial-number.html
    Select a topic, then click I STILL NEED HELP to activate Photoshop Elements Online chat
    -http://helpx.adobe.com/contact.html?product=photoshop-elements or
    http://helpx.adobe.com/photoshop-elements/kb/troubleshoot-installation-photoshop-elements- premiere.html

  • JMS consumer is not receiving any messages. am i missing something ?

    Hi bellow is the consumer code, my consumer is not receiving any messages even though there are messages in the queue. I have tried to debug the code. but the consumer is not calling the onMessage() method even though there are messages in the queue. Please guide me on the same. if i am missing something.
    package org.icrm.cons;
    import javax.jms.Connection;
    import javax.jms.Destination;
    import javax.jms.ExceptionListener;
    import javax.jms.JMSException;
    import javax.jms.Message;
    import javax.jms.MessageConsumer;
    import javax.jms.MessageListener;
    import javax.jms.Session;
    import javax.jms.TextMessage;
    import org.apache.activemq.ActiveMQConnectionFactory;
    public class JConsumer implements ExceptionListener,MessageListener{
         public static void main(String[] args){
              JConsumer consumer = new JConsumer();
              System.out.println("here 1");
              consumer.consumeMessage("MyQueue");
         public void consumeMessage(String queueName){
              try{
                   System.out.println("here 2");
                   ActiveMQConnectionFactory connectionFactory = new ActiveMQConnectionFactory("tcp://localhost:61616");
                   Connection connection = connectionFactory.createConnection();
                   connection.start();
                   connection.setExceptionListener(this);
                   Session session = connection.createSession(false, Session.AUTO_ACKNOWLEDGE);
                   Destination destination = session.createQueue(queueName);
                   MessageConsumer consumer = session.createConsumer(destination);
                   //ASync
                   consumer.setMessageListener(this);
                   //Sync
                   /*Message message = consumer.receive(1000);
                   TextMessage textMessage = (TextMessage)message;
                   String text = textMessage.getText();
                   System.out.println("Received : " + text);
                   consumer.close();
                   session.close();
                   connection.close();
              }catch(Exception e){
                   System.out.println("Caught: " + e);
                   e.printStackTrace();
         public void onException(JMSException arg0) {
              System.out.println("JMS Exception occured.  Shutting down client.");
         public void onMessage(Message message) {
              try{
                   TextMessage textMessage = (TextMessage)message;
                   String text = textMessage.getText();
                   System.out.println("Received: " + text);
              }catch(JMSException e){
                   e.printStackTrace();
    }

    Hey,
    I commented the following line of code. and i got all the messages.
    //consumer.close();
    //session.close();
    //connection.close();but then when should i close the consumer, session and connection object ???

  • Interactive reports not working - am i missing something ?

    Hi.
    I just upgraded to apex 3.1
    I wanted to test the interactive reports functionality. I can create the region with the query and i can set all the things under "report attributes".
    But when i run the page, i see the report with the initial data my query brings me up but i cant do anything. The search symbol is not clickable and the other symbol in the search panel is also not clickable.
    Did my upgrade missed something ? Any java things missing ?
    How can i chack if something is missing ?
    Thanks
    Bernd

    My Interactive reports on Apex 3.1.2 on 10g XE worked fine until one day I got the same issue with no known system changes. Fail on both IE and Firefox on multiple machines. Restarting Apex doesn't hep.
    IE error is:
    Line: 96
    Char: 1
    Error: 'gReport.controls' is null or not an object.
    Code: 0
    URL: ...
    Anyone else experiencing this?

  • Fgen by duration, am I missing something

    Hello all,
      First time posting but have found many good solutions here.  Anyway, I have been wrestling with the Fgen by Duration vi and have seen many discussions about this.  I opened the vi added a graph to the front panel and ran it after looking at the diagram.  When looking for a ramping solution, duration has nothing to do with the ramp on this vi other than change the output ramp rate.  Am I missing something in my code?  Best I can tell, duration only pertains to the number of COMPLETE cycles of a wave given as an output for a given sample amount.  IE  Sample rate=100 duration=1 gives one complete cycle of a wave with 100 pts in that cycle,  keeping the samples the same, increasing duration to 2, gives 2 complete cycles with 50 pts per cycle and so on.
      I have tried to find an simple way around this problem by I think using the ramp.vi in combination with slope calcs and loop may be an easier solution.
      Basically I am needing a vi to go from a min (n) to some max (n+#) in x seconds.
    Any thoughts,
    M. P.
    Attachments:
    ramp tester.vi ‏98 KB

    Hi,
    It's sounds like what you want is to be able to specify a number of points per cycle, rather than the number of points for the entire signal.  If you have code which allows you to specify the number of cycles and a total number of point, all you have to do is compute a new total number of points, which in this case is just your current number of cycles*your current number of points.  That way you get your current number of points for EACH cycle.
    Does this answer your question?
    AG

  • I've got to be missing something

    I'm new to flash and just trying to make a url link. followed
    instructions and I keep getting an error" '{' expected " in line 5.
    It's there!!! It seems right to me. Am I missing something. it
    seems simple.
    1.var link:URLRequest = new URLRequest("
    http://www.thebabbarogroup.com")
    2.
    3.LinkOne_mc.addEventListener(MouseEvent.CLICK, onClick);
    4.
    5.function onClick(event:MouseEvent):void
    6.{
    7. navigateToURL(link);
    8.}

    Is that the only code you have on a frame? Or, is this code
    in a class? If it's on a frame only, and that's all that's on the
    frame...it looks like it should work.

  • Two things I hate about Safari 6 - or am I missing something?

    I work on the Web on desktop Mac Pros and Safari is my favorite browser for any number of reasons.
    But two "improvements" are particularly frustrating:
    1) Opt+Com+U
    Now it opens some small box at the bottom of the window — is there a way to get the old behavior back where it opens a new window and I can easily enlarge the box to inspect the source code?
    2) Safari> Empty Cache (where'd it go?)
    Yikes, now I need to go into Preferences> Privacy and clear out All Cookies and Data to empty my Cache?
    Or am I missing something, how do I simply clear my cache to ensure my pages completely refresh?
    I use these features many times a day in a fast paced work environment and the "improvements" seem counter intuitive...

    Yes. Click the overlapping rectangle icon to the right of the close box (let me know if you need a screenshot). This segregates the debug console into its own window. To undo it click the same icon - its appearance changes to another sort of rectangle but you'll figure it out.
    For some reason Apple thought it was better to obscure the Empty Caches option in the Develop menu, which you must enable in Safari Preferences > Advanced. Keyboard shortcut ⌘ option E
    All its previous functions remain, they're just in different places.

  • I have just tried to connect my Mac book pro to an LG Plasma TV via an iWires Mini DisplayPort to HDMI cable. All I get on my TV is the Mac wallpaper and nothing else. I am missing something really silly, could anyone help please.

    I have just tried to connect my Mac book pro to an LG Plasma TV via an iWires Mini DisplayPort to HDMI cable. All I get on my TV is the Mac wallpaper and nothing else. I am missing something really silly, could anyone help please.

    Hi there. I also bought an iWires mini Display port to HDMI cable and have an LG LED/LCD TV. I plugged it in to my MB Pro and followed the very small writing that came in the package and got both audio and video going. You need to change the audio settings from within System Preferences on your Mac to select your TV as the audio output.
    My concern is the data latency - do you experience a delay between moving your mouse on the MBPro and the TV displaying the movement? It is only a fraction of a second, but certainly enough to be annoying, especially in a cable as expensive as the iWire.

  • HT2792 Just purchased from an airport store the MagSafe Airline Adapter so I could use my MacBook Air on a long haul flight. But, the airline adapter plug doesn't fit the socket. Am I missing something?

    I purchased at the airport last week before a long haul flight the MagSafe Airline Adappter so I couod keep working on the MacBook Air without fear of the battery running out before I had completed the necessary work. The shop assistant assured me the kit worked on all planes but......the socket on the flight, both outbound and inbound, was the normal female 2 pin/3 pin socket that I used to use for my old thinkPad. What am I doing wrong? Am I missing something obvious here
    Thanks for any help you can offer.
    Geoff

    Hi CaptFred,
    Thanks for taking the time to respond. I understand your point and have indeed separated them. Since sending the message I have visited the Apple Store to check the picture of the accessory in case I was missing something and I wonder if I am missing the 20mm adapter but, over and above that, I just dont see the right size/shape empower port socket in the plane seat, only the traditional 3 pin/2 pin sockets. I wonder if the salesman was selling me a pig in the poke because the Apple Store also says that it fits some commercial airlines whereas the salesman told me it worked in all flights. I suspect I will need to go to the airline companies direct to see which planes have this particualr Empower port. In the meantime I am tempted to ask for my money back. Geoff

Maybe you are looking for

  • Can you remove money from one itunes account to another

    I am trying to buy an add on to an app that we all ready have but for some reason it is saying that I connot purchase what I need because my account didnt purchase the app.  Can I move money over ot how should I go about doing this. 

  • Possible to embed video with controls in FM PDF?

    I have a very specific end in mind, and I'd like to know from you folks who might have done this before if it's even possible, and if so, the steps to follow to achieve it. Here goes... I'd like to take an ordinary AVI file, convert it FLV in Media E

  • Services for Object in FB01

    Hi all, While creating FB01, I create a Note using Services for Object tool box. Now my requirement is I want to find out the note Title. Is there any Function Module to find that note title? Regards Ganesh Reddy

  • Dim Build Error

    There isn't any keywords or reserved words for dimensions, are there? I'm building dimensions from a sql call, it creates all of them except for "OTHER" which gives the following error: \\Record #10 - Incorrect Dimension (Region) for Member OTHER (33

  • Display Blocked BPs-Can we see all detailed analyses in a one step process?

    Hi Before releasing any BPs blocked by the system our compliance users check the details of the blocks. Currently it is a 2 step process (after they are in the detailed screen of the Display Blocked Business Partners menu): 1 u2013 Double click on th