Empty data service returns an object

Hello

I'm calling from the flex data service to load my data grid. In debugging, I see the arrraycollection in the fill method is returned empty. Here are the details...



My .java file has the same name with the game and have access to functions that are set by my assembler of java class.
I'm calling other methods of filling and they seem to work except this one, well...

The problem was that the name of the destination 'codecoverage' was identical to that of one of the packages where my .java file was there. Changed this name and things started working...  :-)

Tags: Flex

Similar Questions

  • Updating of the Data Services loses configured enter/return types

    v 4.0.1

    I have several configured data services (all PHP services).  I have about 20-25 functions defined in all 6 services, but 4 functions will surely lose the enter/return types configured each time a manual refresh or auto data occurs.  For example, I have a function:

    saveOrder(OrderHeader:Object,_LineItems:Object):Object

    When I right click and 'configure the Types of entry... '. ", and then"configure return Type... ". "I can set the appropriate without any error types.  I get so I expect the function definition:

    saveOrder(OrderHeader:OrderHeaderFlex,_LineItems:LineItemFlex[]):Boolean

    My ACE and PHP code seem to have errors, I've tested successfully this function repeatedly.  However, if I right-click and choose "Refresh" on my name of service or the service itself, the function returns the definition of the unknown.  He will go even after the automatic update, which produces from time to time.  I can configure the types of data and then immediately, click Refresh and this function will return to the unknown, even if there has been absolutely no code changes.  I have other services and functions in the same project (some that use the same types of data involved above) who do not have this behavior.

    Even when these functions "lose" data type configuration, my project will still compile and affected functions will work as expected.

    This occurs because of a bug in Zend. See the bug related to FB and the bug of zend.

    FB-27016

    ZF-10365

    -blandine

  • Returns the object date Sql javascript

    Hello

    I am trying to run motion chart of Google in Apex 4.0. To do this, I need to return a date in a Javascript object. No idea if this is possible? Is it as simple as getting the correct javascript syntax?
    select 'new Date (' || to_char(mydate,'YYYY,MM,DD') || ')' from .....
    Thank you

    Mark

    Hello

    Probably you could also do something like this using the PL/SQL dynamic content area

    htp.p('
    '); htp.p(q'| |');

    Kind regards
    Jari

  • Remote object (Java) - intercomm Data Service (Java)

    Hello

    I was wondering how to make my remote Java application communication (message exchange) object to my implementation of Java data service.

    The scenario is this: my Flex client application must connect to a 3rd person resource, which requires authentication. I was thinking of using a destination of the remote object that will perform the authentication of the user. It will store a session object valid (Java) to be used later to perform various reportoire to this 3rd party resource.

    At one point, during the same session of Flex browser, a data destination Service needs be accessible, which will link to the 3rd party resource. Well, for this operation, I don't want the user to authenticate again on the resource party 3rd, as a valid session exists and stored by the implementation of the remote Java object.

    The question is: how my class of Java Data Service will be able to speak with the class remote Java object, to get that 3rd party session to oppose (which is also a very complex Java object) and use it to connect to the 3rd party resource?

    Thank you.

    Had... it's by the attributes of the session... Robert

  • Active data services

    Hey,.
    I use active data services to update an array element with the use of database change notifications. I was able to view the changes in the database, that they take place. The problem is that the data inserted will be added at the end of the table and if I want to add it at the beginning or in other places, it would be difficult to change the hash table (reduce performance) to include the new data line (I'll have to push the values in the hash table and add the new at the top so that it appears at the beginning of the table).

    So the question is how can I do this more effectively?

    Is it possible to use another data structure where it will be possible to add data to a post that will automatically push the other values?

    Published by: mangun November 19, 2009 17:05

    Hello

    not sure on the AP, in you use JDeveloper 11 g R1 PS1 (11.1.1.2) us proxy to frame which has a method

    /**
    * built the ActiveDataUpdateEvent .
    *
    @param type the type of the event change, could be updated, INSERT,
    * REMOVE, REFRESH, etc.
    the changeCount changeCount @param
    @param key the key of the line (in the case of CollectionModel)
    @param insertKey key to indicate the insertion position
    @param genericConversion param passed to the internal call
    *convertKeyPath
    @param names the names of the attributes to modify
    @param values the values of the attributes to be changed
    * @return the ActiveDataUpdateEvent
    */
    public static (buildActiveDataUpdateEvent) ActiveDataUpdateEvent
    Type of ActiveDataEntry.ChangeType,
    int changeCount,
    The object of the [] key,
    Object [] insertKey,
    String [] names,
    Object [] values)

    ...

    The insertKey can be used for specific key to the line where the new line should be inserted. I was not working with the API set prior to JDeveloper 11 g R1 PS1, then all the I can say is that if this works with the existantespourlesproduitsphytopharmaceuti, then it works with manual API so

    See:

    http://download.Oracle.com/docs/CD/E15523_01/Web.1111/b31974/adv_ads.htm#ADFFD19611

    Frank

  • Get the name and the data type into an object?

    Hello

    I would like to know if there is a way to get the names and the types of data encapsulated in an object of labview?

    For example, let's say I make a simple object, called myObject to be commonplace, with private data: myObjectName (string), myObjectValue (int 32) (etc.)

    So, how to build a method to return the type of the data of myObjectValue, or infact back the names and types of all data in the object field, which could be a lot?

    Thank you

    Paul.


  • ADFBC change - automatic updating using PUSH - Data Service entity Active?

    Hi all

    Jdev Version: 11.1.1.7.1

    Summary of the problem: I have a table in the user interface based on a line of open readonly SQL base tickets showing VO. The queue will be worked by several people of support at the same time. So, it is ideal that the queue Auto - refreshes to collect a ticket from the table in the user interface if someone else picked up the ticket & closed. The UI is equipped with filters - so think the option is to push to an activeOutputText and then refresh the table UI using PPR.

    Ofcourse Poll is an option - but am inclined to PUSH as it seems most optimal.

    But the documentation around the use of live data for ADFBC is very confusing. Most of the examples out there talking about external data sources or a direct change in DB as an event in a first time - not a change of entity as an event trigger object. I have a few queries-

    1. is JMS the only way by which the changes of the entity object can be listened to or is there any other mechanism?

    2. on the binding of the tree on the definition of the page, we see ChangeEventPolicy with an option like "push." When is it useful?

    3. any good example of simple use ADFBC with live data?

    4. is my hypothesis on the af: poll be bad valid? Leave the configured push with "long-polling" is much better than a 'af:poll '.

    Thanks in advance!

    1. is JMS the only way by which the changes of the entity object can be listened to or is there any other mechanism?

    I guess you can use any type of mechanism to queue, JMS is 'natural' because that is part of Java EE (so it is included in the Java EE as Weblogic servers)

    2. on the binding of the tree on the definition of the page, we see ChangeEventPolicy with an option like "push." When is it useful?

    It is used in combination with the active data

    3. any good example of simple use ADFBC with live data?

    http://technology.AMIS.nl/2012/06/19/notifying-ADF-applications-of-database-changes-fast-and-lean-using-Active-data-service-for-server-to-client-push-part-two/

    4. is my hypothesis on the af: poll be bad valid? Leave the configured push with "long-polling" is much better than a 'af:poll '.

    Well, that depends on the number of users, refresh rate...

    But for your use case, push is probably much better than af: poll

    Have you thought about putting your VO readonly to the module of the shared application (to the level of the application): Sharing of Instances of the Application Module View (this was also supported for notifications of changes unnecessary db)?

    Dario

  • Get-VMHost returns System.Object

    I was using the following (less the $info. Hostname line) for the information of data store, but I need to now the VMHost located in the data store. The code below works but returns System.Object, even if I'm expanding of property. Any ideas what I am doing wrong? Here is the code:

    Function Get_DataStores ($vcenter) {}

    $report = @)

    foreach ($datastore in Get-data-server $vcenter) {}

    %{

    $info = "" | Select DSName, hostname, CapacityGB, FreeSpaceGB, ProvisionedGB, UsedGB, vCenter

    $info. DSName = $datastore. Name

    $info. Host name = get-datastore $datastore | Get-VMHost | Select the name of ExpandProperty-

    $info. CapacityGB = [math]: Tower ((($datastore.)) ExtensionData.Summary.Capacity)/1GB),2)

    $info. FreeSpaceGB = [math]: Round ((($datastore.)) ExtensionData.Summary.FreeSpace)/1GB),2)

    $info. ProvisionedGB = [math]: Round ((($datastore.)) ExtensionData.Summary.Capacity - $datastore. ExtensionData.Summary.FreeSpace + $datastore. ExtensionData.Summary.Uncommitted)/1GB),2)

    $info. UsedGB = [math]: round (($info.)) CapacityGB - $info. FreeSpaceGB))

    $info.vCenter = $vcenter

    $report += $info

    }

    }

    $csv = "$ScriptPath\datastores\$vcenter.csv".

    $report | Export-Csv $csv - NoTypeInformation

    }

    Thanks in advance
    Adam

    Try like this.

    $info. Host name = Get-Datastore $datastore | Get-VMHost | D ' first select 1 name - ExpandProperty

  • Cannot create files in the database by using the PHP Data Service

    Hello, I was stuck on this during a few days and get up and down for this on the net, no response, I found did work, so I come back to you...

    Here are the steps I took, I think that's pretty standard

    1. I have a macbook pro running osx 10.7.3

    2. I installed MAMP default all the (I've acually reinstalled this because someone suggested it could fix)

    3. via phpMyAdmin, I created a database called my_test

    4. in this database, I created a table, it is the export of this table: (I also tried with InnoDB, which is the default)

    CREATE TABLE 'client')

    int (10) 'id' unsigned NOT NULL AUTO_INCREMENT,

    'name' varchar (50) NOT NULL,

    'email' varchar (150) NOT NULL,

    PRIMARY KEY ('id'),

    UNIQUE KEY 'id' ('id')

    ) ENGINE = MyISAM DEFAULT CHARSET = latin1 AUTO_INCREMENT = 1;

    5. I created a new project of Flx (running Flash Builder Premium 4.5.1)

    Project name: PHPTest

    Type of application: Desktop (although I did the same thing with the Web and got the same results)

    > > Next

    Type of application server: PHP

    Web root: / Applications/MAMP/htdocs /.

    Root of the URL: http://localhost: 8888 /

    Click on "Save Configuration" and who worked

    Output folder: / Applications/MAMP/htdocs/PHPService (default value of Flash Builder)

    > > Finish

    6. in the Data/Services on the background tab, I click on "connect to data or services...". »

    Select "PHP".

    > > Next

    Select «Click here to generate a sample»

    Select the option "Generate database"

    User name: root

    Password: root (default for MAMP)

    Host name: localhost

    Server port: 8889 (default for MAMP MySQL port, the default HTTP port is 8888, which, in both cases, seems to work, but all the videos I've seen that use MAMP on youtube uses 8889)

    Database: my_test

    Click 'Test connection' (work)

    Table: customer

    Primary key: id of (this field is dimmed and Flash selects Builder 'id', which it appears in the SQL table)

    > > Click OK

    7. then if I do not have the Zend Framework folder in my/Applications/MAMP/htdocs/folder it tells me its going to do this and I mean. Then Flash Builder said some things about how it really is for testing, not production server ready and I mean.

    8. then it brings back me to the form of step 6 when I have the chance to select «Click here to generate a sample»

    These fields are now filled with these data automatically:

    PHP class: /Applications/MAMP/htdocs/PHPTest/services/CustomerService.php

    Name of the service: customer service

    Package: services.customerservice

    Type of data package: valueObjects

    > > Click on Next (shows all functions, which will now be availible)

    > > Click done (end shapes and she opens Dreamweaver in the php file it created CustomerService.php that I didn't need to change so that I have that closes down)

    9. back in Flash Builder I switch to design mode and drag a datagrid control onto the large white area in the Middle, no matter who is called.

    10 slide below in the Data/Services on the bottom tab I click the "GetAllCustomer" function on the top of the data grid.

    I say yes to bounce, then click ok and the display of the data grid is updated with the columns of the 'customer' table in mySQL.

    (Now I would like to say that when I hit save and compile it, if I actually had documents in this table I have insert via phpMyAdmin, this is displayed in the datagrid control) So for all the CRUD, I am able to get the R which is read)

    11. now go back to the designer view in Flash Builder, I'll create a form to create the table records... (I guess this isn't really a step)

    12. in the data on background tab/Service I select the function 'createCustomer' and then there is an icon called "Form generating" that looks like a white sheet of paper with a sprocket on the bottom of things.

    13. This opens a new form and because I don't have a crazy bunch of fields in my table I click just finished (if you click then you can specify which fields you want to exclude from the form, but this time I don't have to)

    14. This creates actually 2 forms if you look at the code, the second shows just the return type of when you click on the button 'CreateCustomer' on the first form. Because they overlap in design mode I drag the form so you can see the entry form, the return form and the datagrid

    15 then I save and compile...

    (Also if your reading this fact does not delete the field in form of code, I get the same result, so be it, but if you do not delete the form field in the code/design you must also update the function button do not deal with the id before he is deported to the php page, since in this case the MySQL table's auto_increment sorry id value that does not have a lot of) sense, but this small area does not matter much anyway)

    16. now fill some data you want for name and email, try different numbers in the field id as 0, nothing, 1, 1000, then click on 'CreateCustomer '.

    (For me that nothing happens, no return is put on return, no error appears and the datagrid control is not updated with the new record, passing also to phpMyAdmin and checking her browse the table does no changes, I know that the button calls the function because if I add a state change it in this function of changes) , it seems that the line:

    createCustomerResult.token = customerService.createCustomer (customer2); does nothing)

    So no idea what is wrong here, I am convenced that's something stupid easy simple, I can't see it.

    So, I thought about it after 24 hours to post my question and probing every thing I could think about. I've been stuck with this problem for over a week, so I'll give myself credit for this one...

    userService.commit ();

    need to be added at the end of the function of button to force flex to do what seems every tutorial that I've ever read on how to do online is no need or mention, don't know why it worked without them but at this point I don't really like.

  • Problem PHP/Data Services, creating entry in the database

    Hello

    I use Flash Builder with Flex 4.1 SDK.

    I don't have bproblem to connect to a database, but some commands do not work.

    When I connect to a database by using the wizard in the Data/Services section, I use the link 'click here to generate a sample' to 'configure PHP services' Assistant.

    Flash Builder then creates the basis for my CRUD methods (counting[ServiceName],[ServiceName]to create, delete[ServiceName], count with all[ServiceName], get[ServiceName]ByID).

    Most of the methods of work, but does not have the create method.

    After hours to analyze the code, I noticed that in the file .as [ServiceName] _Super_ of services. [yourservice] package, the create method used another class to transmit its data.

    While most methods use the 'mx.rpc.AsyncToken", use it create "mx.data.ItemReference"class as a return type.

    I changed the method to create so it would use the "mx.rpc.AsyncToken" and I got things market.

    I also commented the following piece of code for thing make it work:

    dmOperation = new mx.data.ManagedOperation ("createUsers", "create");

    dmOperation.parameters = "item";

    _usersRPCDataManager.addManagedOperation (dmOperation);

    I was then able to use the create method.

    I'm sure I'm missing an important part of the knowledge here.

    While some methods use the mx.data.ItemReference, most methods use the mx.rpc.AsyncToken.

    Can someone explain to me what I have to do in order to be on the right track?

    Thank you for your time

    I think that you must call commit() on the service after calling create(). Try it. This should solve the problem.

  • ArrayCollection collection do not fill after calling first Data Services

    I am filling a collection ArrayCollection using a call for data by the following code:

    [
    Bindable]
    
    public var srv:RemoteObject;
    
    var acCountries:ArrayCollection; 
    
    if
    
    
     (srv == null){srv = 
    new RemoteObject();srv.destination = 
    
    "trip"; }
    acCountries = srv.getAllCountries.lastResult;
    srv.getAllCountries();
    
    
    
    

    ArrayList is not populted during the first call.  The java backend data service method is called, but the ArrayCollection collection is not populated until the time of the second (or third) the code is executed.

    I tried to walk through the debugger, but it is unclear what I does not initialize correctly.

    Hello

    Try to use the below approach instead of the adopted approach.

    [

    Bindable]

    public var srv:RemoteObject;

    private function getAllCountries():void

    {

    var acCountries:ArrayCollection;

    if (srv is Nothing)

    {

    SRV =

    new RemoteObject;

    SRV.destination =

    'journey';

    }

    srv.addEventListener (ResultEvent.RESULT, countriesResultHandler);

    srv.addEventListener (FaultEvent.FAULT

    countriesfaultHandler);

    srv.getAllCountries ();

    }

    private function countriesResultHandler(result:ResultEvent)

    {

    Check here the result by debugging object and replace the threshold accordingly

    acCountries = result.countries;

    }

    private function countriesfaultHandler(fault:FaultEvent)

    {

    Alert.Show)

    "Error: ' + fault.message);

    }

    In the approach you used you bind the data to the ArrayCollection collection by making use of the lastResult object.

    But you use the below line and send the result at the same time...

    acCountries = srv.getAllCountries.lastResult;

    srv.getAllCountries ();

    Here you don't know when the acCountries arraycollection collection will be linked to the lastResult object. Given that it is an asynchronous operation for the first time that you control the acCountries arraycollection collection you have all the data. Her approach always better and good use of event handlers in response as the way I used so that you will know exactly when took place the answer/result and if no fault or so.

    If this post answers your question or assistance, please mark it as such.

    Hope this will make things clear...

    Thank you

    Jean Claude Chari

  • Flex Builder 4 Data Service (PHP) integration

    Hello

    Preface:

    a database of existing MySQL (Bioographies of Artists) has created a form of dataservice

    When I call the functions from the tab "Data Services" of Flash Builder 4 they work flawless. (add, delete, update)

    Assume that the next object of value has been created:

    'Artists_biography '.

    I am now trying to call service through Actionscript as follows:

    var updateObject:Artists_biography = new Artists_biography();
          updateObject.biography_de = contentToSave;
          updateObject.biography_id = biography_id;
          updateObject.artists_id = artist_id;
    updateArtists_biographyResult.token = artistsbiographyService.updateArtists_biography(updateObject);
    

    I get this:

    Error: Could not find the data for the value service: valueObjects::Artists_biography

    I also tried to use the valueObject mxml like this:

    < valueObjects:Artists_biography id = "updateObject" / >

    Even the created forms automatically produce this error

    Any hint why this happens?

    Help * please *.

    Hello

    When the PHP sample is generated from the database, data management is enabled by default on the entity of this service (in your case, it is Artists_biography).

    In this case, the update of "Artists_biography" method only accepts managed server valueObjects.

    There are 2 options if you want to use updateArtists_biography in FormGen

    1. remove the update method in assistant management of the data. Context, click feature and click on "Enable data management" and delete the "update" method

    or

    2. use the result of the getItemById operation. Cast in a valueObject, modify and transmit as an argument to the updateArtists_biography.

    -Rahma

  • question from newbie on livecycle data services are

    Hi all.

    I downloaded the virtual appliance VMware of LiveCycle ES2, place it upward on an esxi server, workspace content, all space are running, but here's my question, how to install here livecycle data services? How do I put in place to start work with the rest?

    I have read the documentation on how to install, but I'm a bit confused.

    can someone give me guidance on this subject?

    help would be appreciated

    Thanks in advance

    (1) in the Workbench ES2 create a process to create a new user. If you need create a group there is also a service to create the group. Create a short lived process using the Avoka service > Create User operation. The Create User operation has the following entries.

    (2) create a process variable called 'newUserXml' to type 'xml' and declare the variable as input. Ideally, create a schema of the XML.

    (3) the operation create a string containing the user ID, a user has a single output. Create a process variable called "userID" of type "string" and declare the variable as an output.

    (3) economy, Express check-in and deploy process.

    (4) in order to test the process, call the process of the Workbench. For the input variable, plug data into an xml like this structure...

    (5) if the test is successful, you are ready to create the Flex application. If not, figure out why.

    (6) building a Flex application. Once you have deployed the process, the remote end point is automatically created and can be accessed by Flex. This is a draft.

    http://www.Adobe.com/2006/mxml"creationComplete =" initChannelSet () ">"

    Import mx.messaging.channels.AMFChannel;

    Import mx.messaging.ChannelSet;

    Import mx.rpc.events.ResultEvent;

    Import mx.rpc.events.FaultEvent;

    private function initChannelSet (): void {}

    var cs: ChannelSet = new ChannelSet();

    cs.addChannel (new AMFChannel ("my - amf","http://localhost: 8080/access remote/messagebroker/amf" "));

    ro.channelSet = cs;

    }

    private function submitRequest (): void {}

    var newUser:XML = new XML (getXmlData ());

    ro.setCredentials ("administrator", "password");

    RO. Invoke({newUserXml:newuser});)

    }

    private void remotingResultHandler(event:ResultEvent):void {}

    var userID:String = event.result.userID;

    ...

    }

    private void remotingFaultHandler(event:FaultEvent):void {}

    Alert.Show (Event.Fault.faultDetail.ToString ());

    }

    private function getXmlData (): String {}

    var xmlStr:String = "".

    + "" + login.text + ""

    + "" + password.text + ""

    + "" + commonName.text + ""

    ....

    + ">";

    return (xmlStr);

    }

    ]]>

    "result =" remotingResultHandler (Event) "fault =" remotingFaultHandler (event) "/ >

    IU goes here...

    Steve

  • Flex Data Services integrated into Oracle Web Service Proxy

    I am trying to invoke a service proxy web created with Oracle JDeveloper IDE via Flex Data Services.
    I created an assembler class and defined actionscript objects that are required to serialize web service data and then call the dataservice with the id provided in the datamanagement.config file.

    When I try to debug the application, the class of the assembler is not affected, I added a breakpoint in the class, but on beforehand the exception is already thrown.

    Appears in the following stackTrace:
    [Flex] Order receipt: TCCommand [Cmd: 0, MethodName: null, TrxID: 3.0]
    [Flex] Has started the transaction using jndi name: java: comp / UserTransaction
    [Flex] Transaction committed
    [Flex] Response of the AMF financial/RTMP serialization
    Version: 3
    (Order method = _error (0) trxId = 3)
    (Print object #0 'flex.messaging.messages.ErrorMessage')
    rootCause = null
    destination = "dossierCreation".
    headers = (1 item)
    correlationId = "823B7A23-8463-0D24-0D39-A7FF8080B3A7."
    faultString = "there is an error unhandled on the server. javax/xml/rpc/ServiceFactory.
    messageId = "DF26CC97-B619-EAB1-191F-3FF02B998D49."
    faultCode = "Server.Processing".
    timeToLive = 0.0
    extendedData = null
    faultDetail = null
    clientId = "DF26CC00-580E-7285-F10F-720471C6BBE5".
    timestamp = 1.192524481046E12
    body = null

    I found the problem, I had to configure JOTM in my tomcat server to allow transactions.

  • Transfer xml data from CF to flex w/o data services

    Here's what I want to do. I would like to have flex tell ColdFusion to process a request and return CF flex via an xml stream query information.

    Is this possible without flex data services? If so, then how?

    Sure. http://www.Adobe.com/go/cfmx702docs should have what you need.

Maybe you are looking for