Ask a Question related to Coldfusion Flash Integration, Design and Development.

  1. #1

    Default Coldfusion and FLEX

    Hi,

    I have got the following VO in flex:
    package com.adobe.cairngorm.samples.store.vo
    {
    import com.adobe.cairngorm.vo.IValueObject;

    [RemoteClass(alias="com.adobe.cairngorm.samples.sto re.vo.ProductVO")]
    [Bindable]
    public class ProductVO implements IValueObject
    {
    public var id : Number;
    public var name : String;
    }
    }

    How do I Create an object in Coldfusion that I can store into this Flex object
    like this

    var test : ProductVO = event.result;

    Any one that have done this??

    kruse Guest

  2. Similar Questions and Discussions

    1. Flex and Coldfusion
      Hello, right im having difficulty..... I want to create a project integrating flex and coldfusion! Ive created the flex files! the thing is i dont...
    2. Flex 3 and Coldfusion 8
      Can someone tell me how I can upload files to database? I also want to display all files that is uploaded into the database to be displayed in a...
    3. Flex to Coldfusion
      I have an arraycollection that is populated from a webservice. Users can edit all fields, and it is possible that every row in the database will...
    4. Flex vs. Flash with ColdFusion
      I'm working with a team of offshore developers. I asked them about the http://www.adobe.com/devnet/flex/example_apps/online_store/moreinfo.html --...
    5. Please help - Flex / Coldfusion
      Right - i want to create a site which integrates flex and coldfusion.... ive found tutorials and a lot of info.... but i cant find anything on where...
  3. #2

    Default Re: Coldfusion and FLEX

    kruse wrote:
    > Any one that have done this??
    i guess this might be one way (maybe add some getters & setters):

    <cfcomponent name="productVO" hint="some useful info goes here" output="false">
    <cfproperty name="id" type="numeric">
    <cfproperty name="name" type="string">

    <cfparam name="id" type="numeric" default="-99">
    <cfparam name="name" type="string" default="">

    <!--- from mike nimer --->
    <cffunction name="init" access="public" returntype="MapInfo">
    <cfscript>
    var key="";
    for (key in arguments) {
    this[key] = arguments[key];
    }
    return this;
    </cfscript>
    </cffunction>
    </cfcomponent>


    <cfscript>
    // snippet from another CFC that fills that object & returns to flex
    var products=ArrayNew(1);
    product=createObject("component","productVO").init (
    id=1,
    name="Dr. Who"
    )
    arrayAppend(products,product);
    return products
    </cfscript>

    or suppose you could try returning a cfquery as well.

    PaulH **AdobeCommunityExpert** Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139