Handling ResultEvent for data service methods?

I have a dataservice (ds) that makes use of createItem(obj) and deleteItem(obj).  When I call either of these methods, I want to be able to determine which method is being called and then take an action depending on which was performed..
Here's what I'd like to do...
ds.addEventListener(ResultEvent.RESULT, dsHandler);
private function dsHandler(event:ResultEvent):void{
if(<the ds created an object>){
...do this....
} else if(<the ds deleted the object>){
...do something else...
So how can I write this to do as I described above?  I've read a little bit about using tokens, but I'm not sure if this is the direction I need to be going towards.
I saw an example of
private var token:AsyncToken;
token = ds.createItem(obj);
token.kind = "create";
ds.createItem(obj);
and then...
private function dsHandler(event:ResultEvent):void{
if(event.token.kind == "create"){
...do this....
} else if(event.token.kind == "delete"){
...do something else...
This kinda worked for me, except I kept getting an error that said "Item with id 'CEAD6420-6E28-B2B3-10C9-E62770B9BD13' already exists.  Error on destination 'ds' "  Without this code, I get no error.  The weird thing is that it still creates the item even if it reports the error.  So why is this happening?
Any help is appreciated.  thanks!

Hi ,
There are different way to achieve this.One of is
Call your web service  into backing bean and whatever out put will come.Using any java parser parse the XML file.And put your validation and show the message to the user.
Thanks
Prateek

Similar Messages

  • OS users for Data Service and Information Platform Service

    Hello experts,
    We will install SAP Data Server 4.2 Support Package 2 which required Information Platform Service to be installed before.
    Can we use the same operating system user boadm for both software installation and maintenance.
    Thanks & Best Regards,
    Tong Ning

    Hello Dirk Venken,
    Thanks!
    What is the best practice about the uses required for Data Service and IPS? (in one user or two different user.)
    Regards,
    Tong Ning

  • Instance "hdev", status BLOCKED, has 1 handler(s) for this service...

    lsnrctl status listener_name give me this BLOCKED status of this instance, wondering what's the fix?
    Service "hdev.world" has 2 instance(s).
    Instance "hdev", status UNKNOWN, has 1 handler(s) for this service...
    Instance "hdev", status BLOCKED, has 1 handler(s) for this service...
    Service "hdev_XPT.world" has 1 instance(s).
    Instance "hdev", status BLOCKED, has 1 handler(s) for this service...
    Service "hdmo.world" has 2 instance(s).

    You may need to Increase the value for PROCESSES.
    beuase the dedicated process is waiting to get new processs.
    --Girish                                                                                                                                                                                                                                                           

  • Instance "orcl", status UNKNOWN, has 1 handler(s) for this service...

    Service "orcl" has 2 instance(s).
    Instance "orcl", status UNKNOWN, has 1 handler(s) for this service...
    Instance "orcl", status READY, has 3 handler(s) for this service...
    Service "rcat" has 2 instance(s).
    Instance "rcat", status UNKNOWN, has 1 handler(s) for this service...
    Instance "rcat", status READY, has 1 handler(s) for this service...
    What does Instance "orcl", status UNKNOWN, has 1 handler(s) for this service... means?

    Table 10-3 Listener Control Utility SERVICES Command
    Output Section Description
    Service
    Identifies the registered service
    Instance
    Specifies the name of the instance associated with the service
    The status field indicates if the instance is able to accept connections.
    A READY status means that the instance can accept connections.
    A BLOCKED status means that the instance cannot accept connections.
    A READY/SECONDARY status means that the is a secondary instance in an Oracle Real Application Clusters primary/secondary configuration and is ready to accept connections.
    A RESTRICTED status means that the instance is in restricted mode. The listener blocks all connections to this instance.
    An UNKNOWN status means that the instance is registered statically in the listener.ora file rather than dynamically with service registration. Therefore, the status is non known.
    Handlers
    Identifies the name of the service handler. Dispatchers are named D000 through D999. Dedicated servers have a name of DEDICATED.
    This section also identifies the following about the service handler:
    established: The number of client connections this service handler has established
    refused: The number of client connections it has refused
    current: The number of client connections it is handling, that is, its current load
    max: The maximum number of connections for the service handler, that is, its maximum load
    state: The state of the handler:
    - A READY state means that the service handler can accept new connections.
    - A BLOCKED state means that the service handler cannot accept new connections.
    Following this, additional information about the service handler displays, such as whether the service handler is a dispatcher, a local dedicated server, or a remote dedicated server on another node
    >>>http://download-west.oracle.com/docs/cd/B19306_01/network.102/b14212/listenercfg.htm#sthref1060

  • The best platform for Data Services / Integrator / Quality

    Based upon the deployments of other customers, which combination of operating system and platform provides the most stable & reliable environment for Data Services / Data Integrator / Data Quality?

    Windows is the platform most commonly used, so bugs are fixed faster there.
    Unix is released usually a few months after the initial Windows version with all the fixes in it. Unix is commonly used by larger companies who would not accept any downtime.
    Keep in mind, there is no Unix codeline of the product, all is the same source code just compiled differently.

  • Changing CMS location for Data Services 4.0 on Unix

    Hello
    I'm new at this forum but think I'll stay for a while for the newest items of Data Services Products.
    My question is if there's a way to change the initial CMS configuration that I put on the install procedure of Data Services 4.0 over a Unix server??
    The reason is because now I will install DS 4 with IPS locally, but later we need to use the CMS of a BO 4.0 server locate on other machine.
    thanks for your help!
    Ricardo.

    you want to migrate your DS configuration from local IPS to a IPS(CMS) running on Unix server ?
    I think you can do that by exporting the DS CMS related objects from local IPS to a BIAR file and importing them into CMS running on Unix (check if Upgrade Management Tool is available in IPS, you can use to do Export and Import)

  • Forum for Data Services, RapidMarts, Data Quality

    SAP BO Moderators,
    Could you educate me if there is any forum for BO Data Services, Rapid Marts and Data Quality.
    If not, could you tell when will this forum going to start?
    Thank you.
    - Anil

    Anil
    you can post your questions at the below forum for Enterprise Information Management
    Data Services and Data Quality
    regards,
    Shiva

  • What are BlazeDS folks doing for data services?

    Recently we've been putting more and more work into our own data services functionality and I am beginning to regret to having gone with GraniteDS instead of BlazeDS (the grass is always greener, eh?).
    I am wondering, what folks here have been doing in that regard, or does everyone in my situation shell out the big bucks for ES2 (not gonna happen here)?

    Recently we've been putting more and more work into our own data services functionality and I am beginning to regret to having gone with GraniteDS instead of BlazeDS (the grass is always greener, eh?).
    I am wondering, what folks here have been doing in that regard, or does everyone in my situation shell out the big bucks for ES2 (not gonna happen here)?

  • How to read .db file for Data services in Linux Environment

    Hi all,
    Can anyone tell me how to read a .db file for SAP BODS 4.0 which got installed in Linux?
    This is Urgent...

    If we are talking about MS Access, AFAIK there is no native support of that format in SAP Data Services. You may try to find ODBC driver fot that.
    Thank you,
    Viacheslav.

  • Documentation DataQuality for Data Services

    Hi,
    I have difficulties finding a good integrated/total dokumentation for DataQuality (R3 version for integration with Data Services platform), user guide or technical manual.
    Anybody who knows ?
    Regards
    - jem

    Hi Jem,
    Go to: http://help.sap.com
    Choose "SAP BusinessObjects" on the first level menu
    Choose "IM Solutions" on the second level menu
    On the bottom of the side you finde the paragraph: The documentation related to these products is available on the SAP BusinessObjects Solution Portfolio Knowledge Center. klick on the link to the Knowledge Center.
    Choose "Data Services" in the "all products" drop down Box
    Choose <The Version you are interested in or the latest one>in the "all Releases" drop down box
    Then you get the list of all avaliable documentation material.
    Niels
    Edited by: Niels Weigel on Mar 29, 2010 10:04 AM

  • Bypassing apps asking for data service

    i have seen a thread somewhere that someone asked about bypassing the data service and someone said it is possible and he gave inrtusctions but it doesnt work for me. i.e. i reallllly wanna use the facebook app but all i have is wifi, no data plan so when i click on the facebook app that i downloaded, it says cannot connect, need data service...
    so my quesiton is... is there any way u can make the phone recognize the wifi instead of the data service so i can use the apps i want that need internet to work?

    1. The Facebook for BlackBerry application REQUIRES the BlackBerry Data Plan, no way around that.
    You can use m.facebook.com for the mobile fb website.
    2. Look for an application named something like "ForceWiFi" for apps that choose between BIS data vs. WiFi data connection. This will NOT still allow proprietary RIM application like the Facebook application to work on WiFi only.
    Good luck.
    1. If any post helps you please click the below the post(s) that helped you.
    2. Please resolve your thread by marking the post "Solution?" which solved it for you!
    3. Install free BlackBerry Protect today for backups of contacts and data.
    4. Guide to Unlocking your BlackBerry & Unlock Codes
    Join our BBM Channels (Beta)
    BlackBerry Support Forums Channel
    PIN: C0001B7B4   Display/Scan Bar Code
    Knowledge Base Updates
    PIN: C0005A9AA   Display/Scan Bar Code

  • Best way to handle Interface Return Type for Web Service Method

    Hi All,
    i have the followinig situation. I would like to create a method as a web service:
    Customer getCustomer(someType){....}
    ie: getCustomer method, with a parameter that indicates some backend data source. The method returns a Customer object. However, depending on the datasource this method uses (which is dependent on the type passed in, ie FooDB, BarDB etc) then i return either a:
    FooCustomer extends AbstractCustomer implements Customer
    BarCustomer extends AbstractCustomer implements Customer
    Now this fails because JAXB cant handle interfaces because when sending XML over the wire it needs a concrete representation (as far as i understand).
    So how should i deal with this?
    Do I need to create a differnet method for each datasource (foo DB, bar DB), ie:
    FooCustomer getFooCustomer()
    BarCustomer getBarCustomer()
    or do i continue calling getCustomer but somehow indicate in the WSDL that I have an AbstractCustomer object and some other bits from FooCusotmer or BarCustomer or ....
    kinda stumpeed here? I wouldve thought itd be handy to be able to do this (ie: call one getCustomer() method and get back Customer objects representing nay type of customer ... in some way...but cant see how to achieve this.
    Any pointers would be greatly appreciated
    cheers
    Marty

    Try to explore abstract schema type.

  • Handle Flex 4 data services as Object or as XML?

    Hi,
    I've been playing with dataservices as a source to populate several components & functions to generate CSV.
    My question is, what's the most efficient way to loop through the data in dataservices?
    Using object loop?:
    for each( item in dsrvc ){
       if( dsrvc[item] == value){
          //add item to component
    Using E4X:
    var newDP:dataprovider = dsrvc.customer.(lastname == value);
    component.dataProvider = newDP;

    Hi,
       When it comes to runtime performance of the applications created using Data Centric Development ( DCD ) wizards, they perform same as the ones created without using DCD.
       Even the code generated by these wizards are easy to read & maintain with proper inheritance, packages & overriding. But, if you are planning to use any of the MVC style frameworks, the generated code may not fit so well right now. We are already working on improving the experience for people who are using these frameworks.
       Overall, using DCD gives a lot of productivity gain with its unified wizards & advanced UI Authoring workflows including Automatic Form Generation, Charts, Master-Detail views, Paging, Client Side Data Management etc.
      Please let us know if you have any specific concerns in the generated code.
    Regards
    Srinivas Annam
    http://srinivasannam.wordpress.com

  • Where can I find the PAR for Data Services 3.1?

    I think DS 3.1 is already in RTM but couldn't find the PAR on the service marketplace. There is only one for version 3.0. I need this document to confirm that DS 3.1 doesn't support HPUX PA-RISC any more. My customer is still using DI 11.5.3 on PA-RISC which means they don't have a migration path - they know 11.7.3.0 limited version still supports it but won't take the risk of upgrading to a unsupported version.
    Thanks,
    Larry

    If you are on system 9 on windows then for planning you will probably have to make a registry change.
    Open the registry editor and navigate to:
    HKEY_LOCAL_MACHINE\SOFTWARE\Hyperion Solutions\HyperionPlanning\HyS9Planning
    Modify SysOutFile and provide a path that exists. For e.g. E:\hyperion\logs\Planning\Sysout_plan.log
    Restart planning, planning should know write to that log.
    Cheers
    John
    http://john-goodwin.blogspot.com/

  • No Network Available... Attaches to wifi but cant find 3G network for data service

    Took phone to local store and rep tried to fix... stated that they no longer have the true technical backroom equipment that they used to for diagnosis or repair.  Really didnt want to hear that since its a full option store in Aiken SC.
    Phone works, as stated it will attach to wifi in home but I cant access Backup Assistant or any other option that needs the 3G network.  Rep at store stated that I needed to call LG...
    Internal setting are for the Digital Only Hybrid... not finding 3G network
    set back to 1x only... still doesnt find network. 
    Any suggestions on a fix?
    Thanks for your help
    VegasBarbie

    If this is an issue specific to your home you might want to look for a 3g signal booster / repeater.

Maybe you are looking for