How to create result state target in DC

Hi,
Currently i am able to create the result state for the callable object in Development Component.. But after adding the callable object into Guided Procedure, I'm not able to define the Target for the result state as there is no dropdown list control for me to select. (e.g. if success, target to Action A.. if failure, target to Action B)
May i know how can i code the target state in development component, so that when i add the callable object i am able to define the target..
Thanks,
Cindy

Hi Cindy;
Could you explain your problem in detail.
If you want to bring in a result in a webdynpro CO add the follwing codes in the getdescription Method in the interface controller.
IGPCOResultStateInfo resultStateSuccess     = technicalDescription.addResultState("RESULT_NAME_FAILURE");
          resultStateSuccess.setNameKey("FAILURE_KEY");
          resultStateSuccess.setDescriptionKey("FAILURE_DESCRIPTION_KEY");
And the following code in the complete method in the component controller
IWDTextAccessor textAccessor = wdComponentAPI.getTextAccessor();
          IContextElement contextElement = wdContext.currentContextElement();
          IGPExecutionContext executionContext = contextElement.getExecutionContext();
          try
          executionContext.setResultState("Failure");
                         executionContext.processingComplete();
          catch(GPInvocationException e)
               String localizedMessage= textAccessor.getText("ERROR_SETTING_PARAMETERS");
                           wdComponentAPI.getMessageManager().reportSuccess(e.getMessage());
          catch(GPEngineException e)
          String localizedMessage = textAccessor.getText("INTERNAL_ERROR");
I hope this will solve your problem.
Kindly let us know the result
Regards
Sivaprasath

Similar Messages

  • How to implement result states in custom web dynpro components

    Hi all,
    My callable objects are custom implemented -web dynpro Componenets
    How am i to implement the result states in them so that i can use them to take logical decisions.?
    There is decision dialog component in  Process Control Callable Object. It has Exit states. I need my component also to have exit states like that
    Help me to implement this.
    Points assured for help

    Hi Shobhendra,
    You can define the result states of your custom Web Dynpro callable object like this in the getDescription() method:
    //add success result state
    IGPCOResultStateInfo success =               technicalDescription.addResultState("Success");
    success.setDescriptionKey("Success");
    //add failure result state
    IGPCOResultStateInfo failure =               technicalDescription.addResultState("Failed");
    failure.setDescriptionKey("Failure");
    And in the custom comelete() method (which will be called at the end of the execution of the WDP comp from GP) you can set the actual resultstate at runtime:
    executionContext.setResultState("Success");
    or
    executionContext.setResultState("Failed");
    The result states defined in the WDP callable object will appear in the the GP design time and you can set target for each result state.
    For more info on how to implement the WDP callable object check the doc:
    <a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/50d74ada-0c01-0010-07a8-8c118d408e59">Implementating Web Dynpro callable Object</a>
    Please let me know if you need any further help.
    Thanks,
    Dipankar
    [P.S. Award points for helpful answer]

  • How to create active state or current state in spry menu ?

    i have build a vertical menu with spry menu widget, Just
    wondering if any one can guide me how to create an active state or
    current state in the menu.
    I want the visitor to understand which page they are on, so
    just want to change the colour of the active link.

    <helpful but self-serving too>
    There are several ways to do this, but the easiest way, if I
    may say so,
    is to use my divaGPS Extension. It works with virtually any
    menu type
    and is designed to accomplish precisely what you are asking
    for quickly
    and easily.
    </back to our regularly scheduled programming>
    E. Michael Brandt
    www.divaHTML.com
    divaPOP : standards-compliant popup windows
    divaGPS : you-are-here menu highlighting
    divaFAQ : FAQ pages with pizazz
    www.valleywebdesigns.com
    JustSo PictureWindow
    JustSo PhotoAlbum

  • How to Create groups and targets....

    Hi guys,
    Here is a chance of getting some easy points
    I know that it may seem a dumb question but I can't find out how to create a transport group and a transport target....
    I've read help.sap and some other threads related to the subject but all I was able to get was:
    help.SAP.com
    "Procedure
    Defining Groups of Business Systems
    Define groups of business systems for different areas of use (for example, testing and production) and assign an Integration Server to each group.
           1.      On the initial screen of the SLD, choose Business Landscape.
           2.      From the dropdown list box for the input field Groups, choose Edit Groups…. "
    Well I can't find where is the dropdown list....:S
    I'm using SP10 and all I have in the SLD are 3 options:
    1.Technical Systems
    View and Define Systems and Servers
    2. Landscapes
    View and Configure Groups of Systems
    3. Business Systems
    View and Configure Business Systems for Use in Exchange Infrastructure (XI)
    If I choose "Landscapes", the only thing I'm able to do is to create a landscape from a specific type (Adminitration, General, Transports, NWDI systems, etc....)
    If I create a landscape with the type 'Transports" and then associate a technical System, I thought that in my Business System I would be able to choose this lanscape....
    But The only thing I have is group and transport target and they're completely empty, showing "No additional groups available" and "No targets"...
    Can anyone help me and get some easy rewarding points?

    Hi Chirag,
    I've read the following link, but the question is....
    - Where is the link to create transport groups? That is my only question It's as easy as that
    Found it...sorry I knew it was easy
    Edited by: Gonçalo Mouro Vaz on Dec 20, 2007 5:13 PM

  • Can someone pls Help me: How to create a Fake target table(Dummy)  in DAC

    Hi There,
    Can someone pls Help me in creating a Fake target table(Dummy) in DAC?
    Thanks,
    Raghu

    Raghu
    You need to create a task so that you can hook sources and targets together.
    First, Design --> Tables tab --> New --> Below 'Edit' -->Table Type (Source) for your source tables.
    Design --> Tables tab --> New --> Below 'Edit' -->Check warehouse and Table Type (Fact or Fact Temporary) for your target tables.
    Points if helpful
    Kris

  • How to create rollback statements automatically

    Hi People
    I need to write a script which can generate the ROLLBACK statements for the IMPLEMENTATIONS(Create table, view, index, package, trigger etc Insert table, update table, delete table, Grant etc - which means that implementation could be anything) .
    Is there is anyway that I can create or generate corresponding ROLLBACK statements for each statement that i exceute on my database?
    Basically there could be a list of operations that I will do and later on I would like to bring the database back to where it was prior to the implementation.

    Welcome to the forum!
    Whenever you post provide your 4 digit Oracle version (result of SELECT * FROM V$VERSION).
    >
    Is there is anyway that I can create or generate corresponding ROLLBACK statements for each statement that i exceute on my database?
    Basically there could be a list of operations that I will do and later on I would like to bring the database back to where it was prior to the implementation.
    >
    You could use Oracle's FLASHBACK DATABASE funtionality. See Using Flashback Database and Restore Points in the backup and recovery doc
    http://docs.oracle.com/cd/E11882_01/backup.112/e10642/flashdb.htm
    Chapter 16 of that doc shows how to do it - Performing Flashback and Database Point-In-Time Recovery
    http://docs.oracle.com/cd/B28359_01/backup.111/b28270/rcmflash.htm

  • How to create a state view / alert view hosting more than one class?

    We have an applications which has two type of servers: one is connector server while another one is processing server. So I created two classes for each of them: ConnectSrvClass and ProcessSrvClass. Each of the class has a property "Type" to mark
    what kind of server it is.
    Now I want to create ONE SINGLE state view to display the state of both classes. Samething I want to create ONE SINGLE alert view to display alert coming from either type of the servers. Is it possible? If so, how?
    Thanks!

    Create an instance group, and then scope the view based on that group. This will work well for an alert view, but not as well for state view. If you want state view with multiple classes using same seed, then you can select the server role as base for
    those classes and display state of each in a single view. This is
    explained here.
    Jonathan Almquist | SCOMskills, LLC (http://scomskills.com)

  • How to create/import a target schema from a source schema using data pump?

    I have seen some examples where schema remapping will be done through remote link which I cannot as both the target schema and source schema are in same machine ...but I am not sure how to do it with out using remote link? I would be great if some one could provide a example
    Thanks in Advance

    I'm not sure what you are asking here, but I'll try to give some examples on remapping a schema:
    expdp prived_user/password schemas=orig_schema_1 directory=dpump_dir dumpfile=orig_schema_1.dmp
    impdp prived_user/password schemas=orig_schema_1 directory=dpump_dir dumpfile=orig_schema_1.dmp remap_schema=orig_schema_1:new_schema_1
    If you want to try without a dumpfile then you need a loop back dblink.  (A dblink on your database that points to the same database.  This would be your command:
    impdp prived_user/password schemas=orig_schema_1 directory=dpump_dir network_link=loop_back_link remap_schema=orig_schema_1:new_schema_1
    Hope this helps.  If not, can you explain your question a little more?
    Dean

  • How to create result file path and name in teststand

    Hi, 
    I would like to create specific path(folder) and file name to result files. For example ..\date\ArticleNr\DateTimeSerialNr.xml.  Thank you very much in adance.
    Kri. 

    Kri,
    You can use Configure >> Report Options, and then select the Report File Pathname tab to configure where your reports will end up, and what the file name will be. If you want to have these be different for each sequence, then add the ReportOptions Callback to each sequence and then modify the settings in the Parameters.ReportOptions container to what you want.
    This link may also be helpful as it talks about what you're are trying to do: Report File Name
    -Jack

  • How to create interface when target is a webservice

    Hi
    I have following requirement
    I want to sent data from a table to a web service.I have source as oracle database table and in the target end
    i have web service.Do i have to reverse engineer the webservice in this case.If so how i have make web service as target in the interface.Can some one explain the process how i need to start ?.
    Thanks in advance.
    BS

    In order to use the web service, you should get the WSDL of the webservice, so that you can reverse engineer the XML. In ODI you should populate the XML in one or more interfaces, then use the ODIInvoke WebService request to call the actual service with your data. These steps can be put together into a package for execution as a single step.

  • I am missing "other" as a target for the result state

    Hi,
    I am trying to implement a quite complex scenario using guided procedure design time.
    I am not able to find “other” as a target for the result state of a callable object (the system proposes me just the sequential action or termination, nothing more, so I am not able to change my flow as I would like).
    My portal is NW04s SP10.
    I fount that target (other) using a portal sp11, so I suppose that it could be a problem concerning sp10 release, but I was not able to find a confirmation for that
    Regards
    Giuseppe

    Hi Giuseppe,
    If I have well understood you’re trying to call in result state an action that is not in your current block.
    To do this you have to install SP11 and the “other” will appear as possible choice in the result state target.
    Regards
    alessio

  • How to display results set of multiple reports into a single report table

    Our goal is to create a single report (or dashboard) that shows the "funnel" of object creations related to each campaign. The flow goes from Activity to Lead to Opportunity as well as multiple steps within each (ie. Unqualified Lead -> Qualified Lead, etc).
    We currently have 3 separate reports in three different subject areas, each reporting the different metrics and we would like to combine the output into a single Unified report.
    For example what we currently have is:
    Activities:
    Campaign Name # of Activities
    Campaign A 12
    Campaign B 26
    Leads:
    Campaign Name # of Leads # of Qualified Leads
    Campaign A 10 4
    Campaign B 20 18
    Opportunities:
    Campaign Name # of Opportunities # of Opps per Sales Stage ... # of Wins Closed Revenue
    Campaign A 3 2 1 $1,000.00
    Campaign B 10 8 3 $2,800.00
    What we want to see is:
    Combined:
    Campaign Name - Campaign Cost - # of Activities - # of Leads - # of Qualified Leads - # of Opportunities - # of Opps per Sales Stage - # of Wins - Closed Revenue
    Campaign A - $423.00 - 12 - 10 - 4 - 3 - 2 - 1 - $1,000.00
    Campaign B - $ 1,000.00 - 26 - 20 - 18 - 10 - 8 - 3 - $2,800.00
    We have tried using the "Combine with similar analysis" but the number of columns for each subject area differ. We also tried creating multiple UNION criteria (one for each column), but in the case of # of Opps per Sales Stage and Closed Revenue, those are not "Metrics" fields, so they won't combine.

    Hi, You may have to create some dummy fields to equate the no. of field in each of the report matching the data type too and get a one single report using combined analytics and then using the resultant data you can create a simple pivot like below. Haven't tried it before
    -- Venky CRMIT
    Hi Venky,
    I am facing the same problem. Can you please say Steps how to create resultant data and Combine in pivot Table .
    Please Help me .
    Thanks in Advance .
    My mail id is :
    [email protected]

  • How to create Store Procedure for export result select in .txt or .csv

    Hello,
    I'm using MSSQL Server.
    How to export results query  in .txt or .csv?
    But
    I can not use bcp or SQLCMD.

    1) linked server
    insert into txtsrv...table1#txt(CustomerNumber,CustomerName,EntryDate)
    select orderid, shipname, orderdate
    from Northwind..orders
    Set up the linked server
    Connecting a directory of text files as a linked server is easy.  Here’s how:
    In Windows, create a new directory for the linked server.  
    For this article, that directory will be E:\txtsvr. 
    Add that directory as a linked server with sp_addlinkedserver:
    EXEC sp_addlinkedserver txtsrv, 'Jet 4.0',
      'Microsoft.Jet.OLEDB.4.0', 'e:\txtsrv', NULL, 'Text' 
    That’s all that’s required to add the linked server txtsrv
     as a connection to the text files in E:\txtsvr, but there are
     no tables in txtsvr yet.  Also missing is a required file, schema.ini, 
    which must contain a description of each table’s format.  
    You can  learn more about schema.ini from the Microsoft MSDN Library,
     but for now, just use Notepad or your favorite text editor 
    to create the file e:\txtsrv\schema.ini as shown in Listing 1. 
     In addition, create an empty text file in e:\txtsrv named table1.txt.
    The file e:\txtsrv\table1.txt is now an empty table in the linked server txtsrv.  
    We can see that if we list information about all the tables in txtserv with 
    the system stored procedure sp_tables_ex:
    EXEC sp_addlinkedsrvlogin txtsrv, FALSE, Admin, NULL
    EXEC sp_tables_ex txtsrv
    Text files are tables
    We can’t issue a CREATE TABLE statement against this linked server, 
    but we have created a table easily enough.  We can, however, 
    run INSERT and SELECT queries, if we use the four-part naming 
    convention <server>…<table> (that’s three dots):
    Best Regards,Uri Dimant SQL Server MVP,
    http://sqlblog.com/blogs/uri_dimant/
    MS SQL optimization: MS SQL Development and Optimization
    MS SQL Consulting:
    Large scale of database and data cleansing
    Remote DBA Services:
    Improves MS SQL Database Performance
    SQL Server Integration Services:
    Business Intelligence

  • How would I create buttons states for MCs I am creating abstract MCs

    I am creating a generic website that would have abstract MCs that would load jpg or TXT fields for the user interface to allow for fast updates to the site. The MCs that would make up the user interface would be empty and load things into it using XML or PHP later on. How would I create button states for the user interface MCs.  I started creating a function for every MC button state but I thought there might be a more efficient way.
    would creating a array help in this case?
    and is using URLRequest the way to link to pages with in a movie well the flash movie that is the site it's self?
    /*---------------------------- THE START OF MY ACTION SCRIPT ------------------------------*/
    var waywardLogo_mc:MovieClip = new MovieClip;
    var theCollection_mc:MovieClip = new MovieClip;
    var newsPage_mc:MovieClip = new MovieClip;
    var whatthe#$@!doyouwant!?_mc:MovieClip = new MovieClip;
    /*---------------------------- onOver ------------------------------*/
    waywardLogo_mc.addEventListener(MouseEvent.ROLL_OVER,onOver);
    theCollection_mc.addEventListener(MouseEvent.ROLL_OVER,onOver);
    newspage_mc.addEventListener(MouseEvent.ROLL_OVER,onOver);
    whatthe#$@!doyouwant!?_mc.addEventListener(MouseEvent.ROLL_OVER,onOver);
    /*---------------------------- onOut ------------------------------*/
    waywardLogo_mc.addEventListener(MouseEvent.ROLL_OUT,onOut);
    theCollection_mc.addEventListener(MouseEvent.ROLL_OUT,onOut);
    newspage_mc.addEventListener(MouseEvent.ROLL_OUT,onOut);
    whatthe#$@!doyouwant!?_mc.addEventListener(MouseEvent.ROLL_OUT,onOut);
    /*---------------------------- onClick ------------------------------*/
    waywardLogo_mc.addEventListener(MouseEvent.CLICK,onClick);
    theCollection_mc.addEventListener(MouseEvent.CLICK,onClick);
    newspage_mc.addEventListener(MouseEvent.CLICK,onClick);
    whatthe#$@!doyouwant!?_mc.addEventListener(MouseEvent.CLICK,onClick);
    function onOver(event:MouseEvent):void
    event.target.alpha = .5;
    function onOut(event:MouseEvent):void
    event.target.alpha = 1;
    function onClick(event:MouseEvent):void
    event.target.URLRequest("");
    /*---------------------------- onover, onOut, onClick buttonModes ------------------------------*/
    waywardLogo_mc.buttonMode = true;
    theCollection_mc.buttonMode = true;
    newspage_mc.buttonMode = true;
    whatthe#$@!doyouwant!?_mc.buttonMode = true;

    click insert/new symbol, tick movieclip, assign a name, tick export for actionscript and in the class textfield enter a name (say ButtonClass) and click ok.
    attached to the first frame of your new movieclip, type stop() in the actions panel.  put whatever graphic you want on-stage for your button's up stage.  create another keyframe, label it "over" and put whatever graphic you want for button's over state on-stage.
    in a layer above those graphics, you'll probably want to add a dynamic textfield so each of your buttons can have different text.  assign the textfield and instance name (say tf) and extend its timeline to the last frame of your movieclip button.
    then when you want to create a button, on your timeline you can use:
    var b:ButtonClass=new ButtonClass();  // these two lines need to be entered for each button
    buttonhandlerF(b,someX,someY);
    //-------code between dotted lines only needs to be entered once no matter how many buttons you add --------------------
    function buttonhandlerF(b:ButtonClass,x:Number,y:Number){
    b.addEventListener(MouseEvent.MOUSE_OVER,overF);
    b.addEventListener(MouseEVent.MOUSE_OUT,outF);
    b.x=x
    b.y=y
    addChild(b);
    function overF(e:MouseEvent){
    e.currentTarget.gotoAndStop("over");
    function outF(e:MouseEvent){
    e.currentTarget.gotoAndStop(1);
    //-------code between dotted lines only needs to be entered once --------------------
    // you'll also want to create a click listener and listener function
    the code between the dotted lines is amenable to being added to a ButtonClass.as class file if want to expand your capabilities.

  • How to Create a new column from two different result sets

    How to Create a new column from two different result sets, both the result set uses the different date dimensions.

    i got solutions for this is apply filters in column formula it self, based on the requirement.

Maybe you are looking for