Binding a result to an ArrayCollection

Hi,
I am novice in Flex/blazeDS so I guess it's stupid question. But I didn't find answer to my question.
I found an example how to bind result from RemoteObject to DataGrid control in blazeds_devguide.pdf but I am still facing one trouble.
Here is my code:
>
>
>
>
>
After clicking on "Get Employee List" button myDG1 shows right data whereas myDG1 shows something like this: [object Object],[object Object]
Why?
Thanks,
//pyso

What are you expecting to receive back in employeeAC?
You will need to have ActionScript classes in your client that these objects map to. I'll assume that you're using Java Remoting with BlazeDS (you don't say exactly what your server is). You can do this one of two ways:
[RemoteClass(alias="my.java.package.Employee")]
public class EmployeeAC
or define MyActionScriptClass but somewhere in your application initialisation, call
flash.net.registerClassAlias("my.java.package.Employee", EmployeeAC)
These tell the client side how to decode the contents of a remote object. In the absence of any mapping from a remote object to a local class you will get either an Object or an ObjectProxy, which probably isn't what you want.
HTH.

Similar Messages

  • Had a Search Criteria and the result as table in header.Wanted to bind the result table to bean for the key value access

      Had Search Criteria and the result is displayed in the table in a panel header .  I want to get the selected  row value and parse the value to next Vo in next page for a bind variable . So i need to handle the  tbale value by biniding to the bean , but there was no option to bind the table for a bean.So how can i get the value selected .
    Regards,
    K M Krishna.

    First of all tell us your jdev version, please.
    to get to the selected row you don't need to bind the table to a managed bean. You can e.g. drag the needed attributes from the VO onto the page and drop them as inputText components. the Framework then generated the attribute bindings and sets the values of the current row to them. As you don't really need the inputText components switch to source mode (!this is essential!) and remove them. This will remove the visual component but the attribute bindings are kept.
    Know you can access the values via their EL or like you get the value from an attribute via it's binding.
    Timo

  • CAML query for more than two items in a list and bind those result to gridview?

    Hi Team,
    I am binding sharepoint 2013 list to gridview programatically.
    Now i need to search the results. If i gave some key word in text box and click on search.
    Then it should display only those values in gridview using caml query.
    Below is my form.

    Hi,
    Here is a blog about the CAML Query with Multiple Conditions for your reference:
    http://aasai-sharepoint.blogspot.com/2013/02/caml-query-with-multiple-conditions.html
    If you want to filter the list item, here is a web part from codeplex with the source code for your reference:
    SharePoint ListView Filter
    https://splistviewfilter.codeplex.com/
    Thanks,
    Dennis Guo
    TechNet Community Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected]
    Dennis Guo
    TechNet Community Support

  • Bind HTTPService result

    Hi,
    I am using HTTPService(say id="sampleHTTP") for loading xml.
    My xml looks like this.
    <node>
    <wsdl_endpoint>
    http://localhost/sample.asmx?WSDL</wsdl_endpoint>
    </node>
    In the result event I am giving an alert for the data from
    the xml(sampleHTTP.lastResult.node.wsdl_endpoint), itz showing the
    correct path. When I tried to bind this path for a Web Service,
    <mx:WebService
    wsdl="{sampleHTTP.lastResult.node.wsdl_endpoint}"........./>
    the result for web service is not triggered.
    Please help....

    Since you are binding to a WebService, I believe you need to
    make a call to the loadWSDL() method in order to download the Web
    Service data. One thing you could do is to put this call in the
    result event function for your HTTPService. That way as soon as the
    xml is loaded with the path, it will call your WebService to get
    the document.
    Vygo

  • How to bind ASP Result to Combobox

    I am new in Flex builder. I have one page in Flex (One Combo
    box and submit button).
    I have one asp page.In that page i open the database
    connection and form the XML Result and return to the Flex.
    In Flex, how do i bind the ASP result to Combo box?
    give me example?

    Hi Sethumail2000,
    I have a similar example - an ASP.NET page generates some
    fairly complex XML with (among other things) structure
    <Result>
    <Deposits>
    <Deposit>
    <various other bits>...</bits>
    <ReleaseTitle>something</ReleaseTitle>
    </Deposit>
    <Deposit>
    <various other bits>...</bits>
    <ReleaseTitle>something else</ReleaseTitle>
    </Deposit>
    etc
    </Deposits>
    </Result>
    Then I have an XML object and a combo
    deposit_list_xml: XML
    <mx:ComboBox id='deposit_list' />
    and in the receive handler from the call to the ASP.NET page
    I have
    deposit_list_xml = XML(result from the call);
    deposit_list.dataProvider =
    deposit_list_xml.Deposits.Deposit.ReleaseTitle;
    Hope that helps
    Richard

  • Binding ArrayCollection to HTTPService method="POST" xml result

    Hi All,
    Firstly apologies for posting all this code!
    I have the following app that adds & displays in a
    datagrid the data from a mysql db, works fine so far.
    #########################<START
    SNIP>##########################
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="
    http://www.adobe.com/2006/mxml"
    xmlns="*" layout="absolute"
    backgroundGradientColors="[#0080ff,#80ffff]"
    creationComplete="send_data()">
    <!-- This is the Script to SetUp Functions-->
    <mx:Script>
    <![CDATA[
    private function youveClicked():void {
    mx.controls.Alert.show('You Clicked!!!');
    private function send_data():void {
    staffcodeRequest.send();
    ]]>
    </mx:Script>
    <!-- This is the HTTPService-->
    <mx:HTTPService id="staffcodeRequest" url="
    http://192.168.0.84/amfphp/services/staffcode.php"
    useProxy="false" method="POST">
    <mx:request xmlns="">
    <firstname>{firstname.text}</firstname><surname>{surname.text}</surname><staffcode>{staff code.text}</staffcode><emailaddress>{emailaddress.text}</emailaddress><department>{departm ent.text}</department>
    </mx:request>
    </mx:HTTPService>
    ###########################<END
    SNIP>##########################
    I'm thinking of Binding the the xml formated results into an
    arrayCollection & then use the filterFunction to allow a user
    to filter the data (is this possible?).
    (Below is some code that I found in a thread & am using
    to work from as an example)
    #########################<START
    SNIP>##########################
    <mx:Application xmlns:mx="
    http://www.adobe.com/2006/mxml"
    layout="vertical" creationComplete="initData()">
    <mx:Script>
    <![CDATA[
    import mx.collections.ArrayCollection;
    [Bindable]
    private var dataList:ArrayCollection ;
    private function initData():void{
    dataList= new ArrayCollection([
    {name:"school A", city:"Dartford"},
    {name:"school B", city:"Pomona "},
    {name:"School C", city:"Phillipsburg"}
    private function filterDemo():void{
    dataList.filterFunction = searchDemo;
    dataList.refresh();
    private function searchDemo(item:Object):Boolean{
    var isMatch:Boolean = false
    if(item.name.toLowerCase().search(search.text.toLowerCase())
    != -1){
    isMatch = true
    return isMatch;
    private function clearSearch():void{
    dataList.filterFunction = null;
    dataList.refresh();
    search.text = '';
    ]]>
    </mx:Script>
    ###########################<END
    SNIP>##########################
    If it is possible, I need some help in integrating the
    following code, (I've tried but keep getting {1151: A conflict
    exists with definition staffcodeRequest in namespace internal.})
    #########################<START
    SNIP>##########################
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="
    http://www.adobe.com/2006/mxml"
    xmlns="*" layout="absolute"
    backgroundGradientColors="[#0080ff,#80ffff]"
    creationComplete="send_data()">
    <!-- This is the Script to SetUp Functions-->
    <mx:Script>
    <![CDATA[
    private function youveClicked():void {
    mx.controls.Alert.show('You Clicked!!!');
    private function send_data():void {
    staffcodeRequest.send();
    <!--Can I just Bind the arrayCollection here-->
    import mx.collections.ArrayCollection;
    [Bindable]
    private var staffcodeRequest:ArrayCollection;
    private function filterDemo():void{
    staffcodeRequest.filterFunction = searchDemo;
    staffcodeRequest.refresh();
    private function searchDemo(item:Object):Boolean{
    var isMatch:Boolean = false
    if(item.staffcode.toLowerCase().search(search.text.toLowerCase())
    != -1){
    isMatch = true}
    return isMatch;
    private function clearSearch():void{
    staffcodeRequest.filterFunction = null;
    staffcodeRequest.refresh();
    search.text = '';
    ]]>
    </mx:Script>
    <!-- This is the HTTPService-->
    <mx:HTTPService id="staffcodeRequest" url="
    http://192.168.0.84/amfphp/services/staffcode.php"
    useProxy="false" method="POST">
    <mx:request xmlns="">
    <firstname>{firstname.text}</firstname><surname>{surname.text}</surname><staffcode>{staff code.text}</staffcode><emailaddress>{emailaddress.text}</emailaddress><department>{departm ent.text}</department>
    </mx:request>
    </mx:HTTPService>
    ###########################<END
    SNIP>##########################
    What I am strugling with is BINDING the returned xml formated
    results to an arrayCollection, and changing from the static xml
    file example to mxl formated txt received from the mysql db on the
    fly.
    Help would be grate ;-)
    TIA
    Danny

    From what I've read, it seems that a Proxy Server, such as
    BlazeDS or FDS, is required if you want to use anything other than
    GET or POST and set the useProxy property to true.
    What is the motivation of requiring a proxy server to support
    HTTP PUT or DELETE?

  • How to bind a PHP service to an ArrayCollection

    Ok. i have used Flash builder data connect wizard to connect to my database and generate some PHP services.
    One of them being a get all service.
    I can drag and drop that onto a datagrid fine and it works.
    But
    Could someone please tell me, with as much detail as possible how to call that service, and bind it to an array/arraycollection.

    Hi,
    I meant to use the code completion when you create the service instance in MXML.
    <?xml version="1.0" encoding="utf-8"?>
    <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"    
         xmlns:s="library://ns.adobe.com/flex/spark"
         xmlns:mx="library://ns.adobe.com/flex/mx"
         minWidth="955" minHeight="600"
         xmlns:services="services.*"
         >
         <fx:Script>
              <![CDATA[
                   import mx.collections.ArrayCollection;
                   import mx.rpc.events.FaultEvent;
                   import mx.rpc.events.ResultEvent;
                   [Bindable]private var images:ArrayCollection;
                   protected function myService_resultHandler(event:ResultEvent):void
                        images = event.result as ArrayCollection;
                   protected function myService_faultHandler(event:FaultEvent):void
                        trace(event.fault.faultString);
                   protected function button1_clickHandler(event:MouseEvent):void
                        myService.tblimagesService.getAllTbl_images();
              ]]>
         </fx:Script>
         <s:Button label="Get Data" click="button1_clickHandler(event)"/>
         <fx:Declarations>
              <services:TblImagesService id="myService"
                   result="myService_resultHandler(event)" fault="myService_faultHandler(event)"/>
         </fx:Declarations>
    </s:Application>
    The previous example is modified to include the namespace in the application tag, assuming that yourTblImagesService is in the services folder. If it is different, change the namespace declaration .

  • Display results of MySQL query from AMFPHP by ArrayCollection in AS3 (Flash CS4)

    Hi, i am using Flash CS4 (AS3) + AMFPHP + MySQL to do own flash frontend for Wordpress CMS.  Everything is going fine but i`ve got one problem. Problem with properly display of result of query in AS3 by using ArrayCollection.
    When i check my service in "amfphp/browser/" in web browser i`ve got this (with all needed data):
    (mx.collections::ArrayCollection)#0
    filterFunction = (null)
    length = 2
    list = (mx.collections::ArrayList)#1  
    length = 2     source = (Array)#2
    That is the reason that i suppose that service work fine.  Problem is when i try to display result in AS3. In actionscript i have got this:
    function getNewsListHandler(result:Object):void{
    trace(result);
    This function displays: [object Object].
    I know that "result" is an ArrayCollection type but i don`t know how to get rows and columns from this. I know that my data is there but i have no idea how to get it.
    Clarify: I don`t know how to get to Arrays and simple data variables which are in ArrayCollection.
    Could anyone help me with that problem. I would be gratefull
    P.S. I tried also change query type in service.PHP for mysql_fetch_query but in that case i`ve got only one row (not all data).

    Thanks for fast reply,
    arr_coll:ArrayCollection = new ArrayCollection ({col1:"data1",col2:"data2"}, {col1:"data3",col2:"data4"});
    you would get the data like
    var resultstr:String = arr_coll[1][1].col2;
    trace(resultstr);
    //results in data4
    could you explain me how it was happen (arr_coll[1][1].col2)? It`s not clear to me. I thought in this case rather something like this :
    var resultstr:String = arr_coll[1]['col2'];
    It should give me "data4". I know it wasn`t but i don`t understand ArrayCollection in level which is needed to use your advice in my case. Could you clarify "arr_coll[1][1].col2" a bit?
    What would it look like when you would have something like this:
    arr_coll:ArrayCollection = new ArrayCollection ({col1:"data1",col2:"data2"}, {col1:"data3",col2:"data4"},{col1:"data5",col2:"data6"},{col1:"data7",col2:"data8"});
    and you would want know f.e. position in ArrayCollection of  "data6". How would you code this? arr_coll[1][2].col2?

  • Duplicates when binding ArrayCollection to List

    Hi,
    I'm working on a flex application.
    There is a DataManger object that loads some XML data and store it in an ArrayCollection by doing something like that (code is simplified) :
    private var _xmlLocations:XMLListCollection;
    private var _countryList:ArrayCollection;
    _xmlLocations = new XMLListCollection(data..location);
    _countryList.addAll(_xmlLocations.list)
    Then the DataManager send back the ArrayCollection to a component with a list using the Source setter.
    <mx:ArrayCollection id="arrayData" />
    <mx:List id="listMenu" dataProvider="{arrayData}">...</mx:List>
    public function set Source(data:ArrayCollection):void{
         arrayData.source = data.source;
    When I look at my ArrayCollection in the debugger, it first look like this :
    But after the binding to the List, the ArrayCollection arrayData has every entry duplicated...
    I'm probably doing something wrong... but what?
    Thanks for any lighting or advices

    I cannot confirm your issue, I've created simple test MXML application  to validate it
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
                    layout="absolute"
                   creationComplete="onCreationComplete()">   
        <mx:Script>
            <![CDATA[
                import mx.collections.ArrayCollection;
                protected var initArr : Array = new Array(1, 2, 3);           
                protected var initCollection : ArrayCollection = new ArrayCollection(initArr);
                [Bindable]
                protected var dataCollection : ArrayCollection = new ArrayCollection();
                public function set source(data:ArrayCollection):void {
                    dataCollection.source = data.source;
                private function onCreationComplete() : void {
                    source = initCollection;  
            ]]>
        </mx:Script>
        <mx:List dataProvider="{dataCollection}"/>
    </mx:Application>

  • How to binding in menubar iconfield dynamic..?

    Hi
             I am using menubar iconfield., icon is  url come from coldfusion data files to binding in flex menubar., dataprovider, labelfiled are working perpectly.,
    but  iconfiled not working below the code..
    <?xml version="1.0" encoding="utf-8"?>
    <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
                   xmlns:s="library://ns.adobe.com/flex/spark"
                   xmlns:mx="library://ns.adobe.com/flex/mx" minWidth="955" minHeight="600"
                   creationComplete="initLogonOptions(event)">
        <fx:Declarations>
            <s:RemoteObject destination="ColdFusion" id="LogonOptionsCFC" source="IST_Auth.logon.logon_optionscfc">
            <s:method name="fnGetLogonOptions" fault="handleGetLogonOptionsFault(event)" result="handleGetLogonOptionsResult(event)"/>
            </s:RemoteObject>
        </fx:Declarations>
        <fx:Script>
            <![CDATA[
                import spark.components.Label;
                [Bindable]
                private var Datamenu:ArrayCollection;
                function initLogonOptions(event):void
                    LogonOptionsCFC.fnGetLogonOptions();
                function handleGetLogonOptionsFault(evt): void
                    mx.controls.Alert.show(evt.fault.faultString) ;
                function handleGetLogonOptionsResult(evt): void
                    if (evt.result)
                        var resultArray:Array = evt.result ;
                        var menuCollection:ArrayCollection = new ArrayCollection() ;
                        var i:int=0;
                        var menuimage:Image;
                        for ( ; i < resultArray.length ; i++)
                            var menulabel:String =   resultArray[i].MenuLabel ;
                            var menutooltip:String = resultArray[i].MenuTooltip ;
                            var menuaction:String = resultArray[i].MenuAction ;
                            var menuicon:String =   resultArray[i].MenuIcon ;
                            var menutarget:String = resultArray[i].MenuTarget ;
                            var menutargetwidth:String = resultArray[i].MenuTargetWidth ;
                            var menutargetheight:String = resultArray[i].MenuTargetHeight ;
                            var  currentMenu:ISTMenu = new ISTMenu(menulabel, menutooltip, menuaction, menuicon, menutarget, menutargetwidth, menutargetheight, constructISTMenu(resultArray[i].Children))
                            menuCollection.addItem(currentMenu);
                        Datamenu = menuCollection ;
                    else
                        mx.controls.Alert.show(evt.fault.faultString) ;     
                public function Select_MenuBar(event:MouseEvent):void
                        var tempMenu:MenuBarItem =MenuBarItem(event.target);
                        var loc_menuaction:String=tempMenu.data.menuAction;
                        var urlmenu:URLRequest= new URLRequest(loc_menuaction);
                        navigateToURL(urlmenu);
                public function ClickMenuItem(event:MenuEvent):void
                    var loc_menuaction:String=event.item.menuAction;
                    var urlmenu:URLRequest= new URLRequest(loc_menuaction);
                    navigateToURL(urlmenu);
            ]]>
        </fx:Script>
        <s:HGroup paddingLeft="10" paddingRight="20" paddingTop="20" width="100%" height="100%">
        <mx:MenuBar id="testmenu"   labelField="menuLabel"  iconField="menuIcon"  dataProvider="{Datamenu}" width="100%" itemClick="ClickMenuItem(event);" click="Select_MenuBar(event);" >
            </mx:MenuBar>
        </s:HGroup>
    </s:Application>
    any one help me....
    With Regards.,
    LinFlex-

    ya that's i mean and one question again
    when i wanna set string value from method to inputText in application (jspx.page component) can't work?
    examp :
    String a = "1234";
    set value var a to inputText in application
    anyone help.. :)
    thx

  • How to bind an aggregated list to a variable in an IN or ANY clause

    Hello, and thank you for helping -
    I have a process that involves a parameter assertion, the result of which is a string for an IN or ANY clause. I am not able to figure out how to bind the result of the assertion to to executable SQL. The actual business process is long and laborious and, I decided, not worth explaining for the purpose of this forum. I have abstracted the process into some dummy data. The goal is to bind v_any_condition to :a. I could certainly build the SQL without the binding, but I would be very interested to know just the same what I am missing here (I'm sure something simple, or just a basic SQL rules that I have missed).
    Thanks!
    DECLARE
    -- The goal is to bind v_any_condition in an ANY clause
    v_any_condition VARCHAR2(30) DEFAULT '4,9,d'; -- the three rows to return from the sample data
    -- v_any_condition VARCHAR2(30) DEFAULT DBMS_ASSERT.ENQUOTE_LITERAL('4')||','||
    -- DBMS_ASSERT.ENQUOTE_LITERAL('9')||','||
    -- DBMS_ASSERT.ENQUOTE_LITERAL('d');
    v_sql varchar2(2048);
    -- We'll create a simple cursor of VARCHAR2(1) just like DUAL.DUMMY
    rc sys_refcursor;
    rc_record dual%ROWTYPE;
    v_counter NUMBER DEFAULT 0;
    BEGIN -- Build the SQL. In this example, we decompose an aggregated string
    -- containing the first 16 hex numbers. The result is a simple 16-row table
    -- from which we will attempt to return the three rows by binding
    -- v_any_condition to ANY in the SQL below.
    v_sql := '
    SELECT token
    FROM ( -- materialize the list
    WITH t AS (SELECT ''0,1,2,3,4,5,6,7,8,9,a,b,c,d,e,f'' AS txt FROM DUAL)
    -- then decompose the list into rows
    SELECT REGEXP_SUBSTR (txt, ''[^,]+'', 1, LEVEL) AS token
    FROM t
    CONNECT BY LEVEL <= LENGTH(REGEXP_REPLACE(txt,''[^,]*''))+1
    /* WHERE token = ANY(''4'',''9'',''d'') */ -- hardcoding works
    WHERE token = ANY(:a) -- binding does not work; the goal is to get this to work '
    OPEN rc FOR v_sql USING v_any_condition; -- when binding, we never even enter the loop
    LOOP
    v_counter := v_counter + 1;
    FETCH rc INTO rc_record;
    EXIT WHEN rc%NOTFOUND;
    DBMS_OUTPUT.PUT_LINE (v_counter || ': '||rc_record.dummy);
    END LOOP;
    END;
    Edited by: ltps on Jan 9, 2012 4:28 PM

    Superb. Thank you very much.
    For anyone who is interested in the solution I chose, here is the revised SQL that accepts a list as a bind variable after casting the list as a table. The "split string" code is below that. (What look like double quotes in the block below are actually consecutive single quotes.)
    DECLARE
    v_any_condition VARCHAR2(30) DEFAULT '4,9,d';
    v_sql varchar2(2048);
    rc sys_refcursor;
    rc_record dual%ROWTYPE;
    v_counter NUMBER DEFAULT 0;
    BEGIN
    v_sql := '
    SELECT token
    FROM (
    WITH t AS (SELECT ''0,1,2,3,4,5,6,7,8,9,a,b,c,d,e,f'' AS txt FROM DUAL)
    -- then decompose the list into rows
    SELECT REGEXP_SUBSTR (txt, ''[^,]+'', 1, LEVEL) AS token
    FROM t
    CONNECT BY LEVEL <= LENGTH(REGEXP_REPLACE(txt,''[^,]*''))+1
    , TABLE(CAST(XX_SPLIT_STRING(:a,'','') AS XX_SPLIT_TABLE)) cst
    WHERE cst.column_value = token'
    OPEN rc FOR v_sql USING v_any_condition;
    LOOP
    v_counter := v_counter + 1;
    FETCH rc INTO rc_record;
    EXIT WHEN rc%NOTFOUND;
    DBMS_OUTPUT.PUT_LINE (v_counter || ': '||rc_record.dummy);
    END LOOP;
    END;
    -- And the main SQL, just for clarity:
    SELECT token
    FROM (
    WITH t AS (SELECT '0,1,2,3,4,5,6,7,8,9,a,b,c,d,e,f' AS txt FROM DUAL)
    SELECT REGEXP_SUBSTR (txt, '[^,]+', 1, LEVEL) AS token
    FROM t
    CONNECT BY LEVEL <= LENGTH(REGEXP_REPLACE(txt,'[^,]*'))+1
    , TABLE(CAST(XX_SPLIT_STRING('4,9,d',',') AS XX_SPLIT_TABLE)) cst
    WHERE cst.column_value = token;
    CREATE OR REPLACE FUNCTION XX_SPLIT_STRING (
    p_string VARCHAR2
    , p_delimiter VARCHAR2 DEFAULT ','
    RETURN XX_SPLIT_TABLE PIPELINED
    IS
    l_idx PLS_INTEGER;
    l_string VARCHAR2(32767) := p_string;
    l_value VARCHAR2(32767);
    BEGIN
    LOOP
    l_idx := INSTR ( l_string, p_delimiter );
    IF l_idx > 0 THEN
    pipe ROW ( SUBSTR ( l_string, 1, l_idx - 1 ) );
    l_string := SUBSTR ( l_string, l_idx + LENGTH (p_delimiter) );
    ELSE
    PIPE ROW ( l_string);
    EXIT;
    END IF;
    END LOOP;
    RETURN;
    END XX_SPLIT_STRING;

  • Getting bug error while compiling object binding code in javaFX

    I am new to javaFX and exploring it from just last two days.
    today i tried a simple binding object example and got weird exception about bug.
    i created a simple file with name Calculator.fx having just one line public var result=1;and used object binding in another file Customer.fx with following code
    var myStreet=21;
    var address= bind Calculator{
         result:myStreet;
    println({address.result});i got following output error
    init:
    deps-jar:
    Note: An internal error has occurred in the OpenJFX compiler. Please file a bug at the
    Openjfx-compiler issues home (https://openjfx-compiler.dev.java.net/Issues)
    after checking for duplicates.  Include in your report:
    - the following diagnostics
    - file C:\Users\omnidoc\AppData\Local\Temp\javafx_err_59993.txt
    - and if possible, the source file which triggered this problem.
    Thank you.
    C:\cc_storage\Caculator\src\Customer.fx:3: cannot find symbol
    symbol  : variable VOFF$result
    location: class Calculator
    def address= bind Calculator{
    1 error
    ERROR: javafxc execution failed, exit code: 1
    C:\cc_storage\Caculator\nbproject\build-impl.xml:143: exec returned: -1
    BUILD FAILED (total time: 2 seconds)Am i doing something wrong or is it really a bug.
    Also can anyone tell me how to do object binding in javaFX.
    thanks
    chauhan

    chauhan2003 wrote:
    Am i doing something wrong or is it really a bug.When you get such error, that's both: you made a mistake (and at least you get a generally helpful message about it) but the compiler is bugging out and crashing...

  • Using an ArrayCollection of a Class in form fields

    So I've seen loads of examples of this with datagrids, But I'm looking for somoe advice to following a proper path to perform the following. Any advice would be great to help me minimize my experienting to get this right.
    I have a simple Class I made with 10 or so different properties......
    I have an arraycollection of data of the type of the class created above. ITs populated with data from an httpservice onload.
    In FLEX, I have a form which allows the user to see and edit via textboxes each of the 10 or so properties per instance of the class, and a 'forward' and 'back', button that advances one record in the array collection (or back).
    What i want is a way to directly BIND the textbox of each property in the form to the property name, and be able to index forward and back. If the user changes the data in a text box when a particular instance is up, the binding should update the correct arraycollection/property instance.
    What is the best way to go about this index type binding in a form. I know this has got to be easy, as the datagrid does this? Just I want to do it to a different displayer (form fields)....
    Any ideas would be great. Thanks!

    Ahh.. I see how this works.Thanks!However i noticed one problem.
    I have a main application and a custom component that extends form.
    The main application holds the arraycollection, and the form fields are in the compoent. (Excerts below). The problem I'm having is that it seems bindings don't reference back to the main application. I've seen other complaints about this online as well. Is there a way around this? Seems like a crippling drawback. how can I bind or pass in to a component an arraycollection from the main applciaiton.
    When I run below I get nothing brought into the form... Get through Debug, the arraycollection is populated in the main app.... Help?
    Main application:
    [Bindable] public var subnetResults:ArrayCollection = new ArrayCollection;
    --> Further down I populate this arraycollection with stuff via HTTPService.
    The Class I built that is instances of the array collection. IN a seperate package:
    package
    public class Subnets
      public function Subnets(
       key:int,
       subnet:String,
       netmask:String,
       next_server:String,
       option_router:String,
       subnet_mask:String,
       option_nis_domain:String,
       option_domain_name:String,
       option_domain_name_server:String,
       option_ntp_server:String,
       default_lease_time:String,
       max_lease_time:String,
       action:String='')
       this.key = key;
       this.subnet = subnet;
       this.netmask = netmask;
       this.next_server = next_server;
       this.option_router = option_router;
       this.subnet_mask = subnet_mask;
       this.option_nis_domain = option_nis_domain;
       this.option_domain_name = option_domain_name;
       this.option_domain_name_server = option_domain_name_server;
       this.option_ntp_server = option_ntp_server;
       this.default_lease_time = default_lease_time;
       this.max_lease_time = max_lease_time;
       this.action = action;
      [Bindable] public var key:int;
      [Bindable] public var subnet:String;
      [Bindable] public var netmask:String;
      [Bindable] public var next_server:String;
      [Bindable] public var option_router:String;
      [Bindable] public var subnet_mask:String;
      [Bindable] public var option_nis_domain:String;
      [Bindable] public var option_domain_name:String;
      [Bindable] public var option_domain_name_server:String;
      [Bindable] public var option_ntp_server:String;
      [Bindable] public var default_lease_time:String;
      [Bindable] public var max_lease_time:String;
      [Bindable] public var action:String;
    The Form component that uses the array collection: (Ignore the IPAddressValidator... Its a custom validator I use).
    <mx:Form xmlns:mx="http://www.adobe.com/2006/mxml" xmlns:com="val_classes.*">
    <com:IPAddressValidator source="{next_server}" property="text" triggerEvent="change"
    valid="{ parentDocument.subnetResults[ subnetSelectedIndex ].next_server = next_server.text};
       { parentDocument.subnetResults[ subnetSelectedIndex ].action = 'us'};"/>
    <mx:FormItem label="Issued tFTP Server:">
    <mx:TextInput id="next_server" maxChars="15" restrict="0-9."
      text="{ parentDocument.subnetResults.getItemAt(subnetSelectedIndex).next_server }" />
    </mx:FormItem>
    </mx:Form>

  • Need help with loading MySQL results into a query

    Hello, I need some help figuring out why my tree component
    isn't being populated with my MySQL results.
    I have a table of categories:
    ParentID - CategoryID - Name
    Every top-level category has a ParentID of 0 (zero). I'm
    using php and a recursive function to build an array of nested
    results, then passing those results back to Flex, making those
    results a new ArrayCollection, then assigning that to the
    dataProvider of the tree.
    Result: my tree component is blank
    Suspicion: it has to be a way with how my array is being
    formed in PHP. If I play around with how it is formed I can get
    some odd results in the tree, so I know it's not a problem with the
    data being passed back to Flex.
    I am attaching the PHP code used to form the array, and the
    output of the array being created

    Why not just build xml and send it back? Xml is hierarchical
    by nature.
    However, if you want to stick with the nested ACs then are
    you using a labelFunction() with your tree? The node values are in
    different properties, so you can't just set labelField.
    Tracy

  • How to bind SelectManyChoice to Integer array parameter

    Hi.
    I am using JDev TP4. I need to populate an integer array with the keys of the items selected in a SelectManyChoice.
    I have created a page with a parameter form for the three parameters and a readonly table for the result class from a data control for this method:
    public FreeGuaranteeModel[] getFreeGuarantees(Timestamp firstDate, Timestamp lastDate, Integer[] companyIds)
    In the parameter form i have created a SelectManyChoice which displays a list
    from a viewObject by dragging the companyIds parameter onto the parameter form, creating a SelectSingle component and then converted it to a SelectManyChoice.
    The page renders ok, I can select one or more items in the list, but when I press the button to execute the method, the companyIds array is empty.
    (The two date parameters are populated).
    What am I missing? Is the binding wrong? I am new to JDev so if there is some other way to do this, please let me know.
    This is the relevant part of the jspx:
    <af:selectManyChoice value="#{bindings.companyIds.inputValue}"
              label="#{bindings.companyIds.label}"
              shortDesc="#{bindings.companyIds.hints.tooltip}"
              binding="#{backing_ViewFinancialResult.selectOneListbox1}"
              id="selectOneListbox1">
    <f:selectItems value="#{bindings.companyIds.items}"
         binding="#{backing_ViewFinancialResult.selectItems1}"
         id="selectItems1"/>
    </af:selectManyChoice>
    The pagedef contains this:
    <?xml version="1.0" encoding="UTF-8" ?>
    <pageDefinition xmlns="http://xmlns.oracle.com/adfm/uimodel"
    version="11.1.1.49.49" id="ViewFinancialResultPageDef"
    Package="com.ispartner.gvg.pageDefs">
    <parameters/>
    <executables>
    <variableIterator id="variables">
    <variable Type="java.sql.Timestamp" Name="getFreeGuarantees_firstDate"
    IsQueriable="false"/>
    <variable Type="java.sql.Timestamp" Name="getFreeGuarantees_lastDate"
    IsQueriable="false"/>
    <variable Type="java.lang.Integer[]" Name="getFreeGuarantees_companyIds"
    IsQueriable="false"/>
    </variableIterator>
    <methodIterator Binds="getFreeGuarantees.result"
    DataControl="CapacityReader" RangeSize="25"
    BeanClass="com.ispartner.gvg.util.capacity.FreeGuaranteeModel"
    id="getFreeGuaranteesIterator"
    RefreshCondition="#{adfFacesContext.postback == true}"
    Refresh="renderModelIfNeeded"/>
    <iterator Binds="CompanyLOV1" RangeSize="-1"
    DataControl="ChoiceListAMDataControl" id="CompanyLOV1Iterator"/>
    </executables>
    <bindings>
    <methodAction id="getFreeGuarantees" RequiresUpdateModel="true"
    Action="invokeMethod" MethodName="getFreeGuarantees"
    IsViewObjectMethod="false" DataControl="CapacityReader"
    InstanceName="CapacityReader.dataProvider"
    ReturnName="CapacityReader.methodResults.getFreeGuarantees_CapacityReader_dataProvider_getFreeGuarantees_result">
    <NamedData NDName="firstDate" NDType="java.sql.Timestamp"
    NDValue="${getFreeGuarantees_firstDate}"/>
    <NamedData NDName="lastDate" NDType="java.sql.Timestamp"
    NDValue="${getFreeGuarantees_lastDate}"/>
    <NamedData NDName="companyIds" NDType="java.lang.Integer[]"
    NDValue="${bindings.getFreeGuarantees_companyIds}"/>
    </methodAction>
    <attributeValues IterBinding="variables" id="firstDate">
    <AttrNames>
    <Item Value="getFreeGuarantees_firstDate"/>
    </AttrNames>
    </attributeValues>
    <attributeValues IterBinding="variables" id="lastDate">
    <AttrNames>
    <Item Value="getFreeGuarantees_lastDate"/>
    </AttrNames>
    </attributeValues>
    <tree IterBinding="getFreeGuaranteesIterator" id="FreeGuaranteeModel">
    <nodeDefinition DefName="com.ispartner.gvg.util.capacity.FreeGuaranteeModel">
    <AttrNames>
    <Item Value="companyId"/>
    <Item Value="name"/>
    <Item Value="guaranteeRequired"/>
    <Item Value="guaranteeToDate"/>
    <Item Value="guaranteeAmount"/>
    <Item Value="bookedValue"/>
    <Item Value="freeGuarantee"/>
    </AttrNames>
    </nodeDefinition>
    </tree>
    <list IterBinding="variables" id="companyIds" DTSupportsMRU="false"
    StaticList="false" ListIter="CompanyLOV1Iterator"
    NullValueFlag="start" NullValueId="companyIds_null">
    <AttrNames>
    <Item Value="getFreeGuarantees_companyIds"/>
    </AttrNames>
    <ListAttrNames>
    <Item Value="CompanyId"/>
    </ListAttrNames>
    <ListDisplayAttrNames>
    <Item Value="ShortName"/>
    </ListDisplayAttrNames>
    </list>
    </bindings>
    <ResourceBundle>
    <PropertiesBundle xmlns="http://xmlns.oracle.com/adfm/resourcebundle"
    PropertiesFile="com.ispartner.gvg.gvg-webBundle"/>
    </ResourceBundle>
    </pageDefinition>
    Regards,
    TL

    Hi,
    Thank you for your answer.
    Following the example I was able to get the selected entries into an Integer array property with accessors which I created in a managed bean.
    But I have not been able to get the values into the companyIds parameter of the method to execute.
    Is there a way to bind directly to this parameter, or do I have to collect all parameters through separate properties and then call my method manually when the button is pressed?
    TL

Maybe you are looking for

  • Can't set timer for titles

    I am having a problem setting the speed and pause for a title. The title appears for about 2 seconds, but I can't make it stay for any longer period with the speed and pause sliders or by tying in a number in either. Some of the titles have a message

  • Deploying crystal reports on a website...

    Post Author: cusimar9 CA Forum: General We're trying to integrate Crystal Reports into one of our .NET websites and we're having some difficulty. I've tried to build the website using the 'merge modules' but to no avail. Does our host have to have Cr

  • HT204370 can i download movie trailers in itunes store

    hi can i download movie trailers in itunes store

  • ThinkVantage after New XP install?

    I recently purchased a used T60 2007-CTO (off-corporate lease). The harddrive was wiped and only XP was reinstalled. It seems that the primary drivers were reinstalled, as there is no problem with the wireless networking, but the ThinkVantage button

  • Speeding Up Windows 7 Professional Domain Logins

    Anyone know how to speed up domain logins my domain logins can take over a minute sometimes and idk why i went threw the dns and deleted a bunch of old un needed rcords and bought a gigabit switch that helped a bit, i even enabled "Wait For Network A