How two button approve & reject execute action in interactive form?

Dear All,
i want put 2 buttons in interactive form and call action on execution of button.
Reagards,
Gurprit Bhatia

Hi,
Hi Gurprit,
Drag & drop "Submit" button from "Web dynpro Native" Tab. and change the button text as per as per your requirement.
select the button there you can see the submit button script. there set a flag indicator to segregate the button.
e.g :  Flag.rawValue = "X" ;   
Approve       Flag.rawValue = "Y" ;   
Reject .
in menu bar  select Utilities(M) and click on "Insert WebDynpro Script"
Edited by: Naganath Mudale on Sep 14, 2009 7:27 AM

Similar Messages

  • Workspace View having two buttons Approve/Reject

    Hi,
    My client wants us to change the BPM workspace completely. We have a manager role.
    The client wants us to create a view with a column with a certain ID. Based on that ID, the manager would either approve or reject instances in his role.
    But the client does not want us to use a BPM Presentation or a JSP to approve or reject the instance. That would be a lot of clicks for the manager i.e. first login and open his workspace, then click on the BPM presentation or JSP and then click on the approve or reject button.
    This would be more than 2 clicks for the manager which he does not want to do.
    Therefore our client wants us to build an easy way to approve or reject instances. And this easy way is to have these two buttons in the workspace view itself. Based on this one column which contains the ID in the view, the manager would then approve or rejcct the instance.
    How can we change the workspace and the views inside the workspace to accomodate this requirement of having two buttons?
    Any idea?

    Does it have to be two new buttons on the workspace inbox list? You can create interactives that are simple methods. You define two methods or tasks. They're called "optional tasks". They can be used with a screen-flow too, if you want. So you have a manager who may want to drill down into the work item and look at it. They would then open a screen-flow/JSP page and accept or deny the work item. Or they can select one of two optional tasks; accept or deny. You do this directly from the inbox view without going into the screenflow. You can do this by modifying the workspace to add extra buttons or just use the OOB functionality to select one of the two optional tasks. It's not a button, just a drop-down select list that is available in the inbox view.
    If you have to go the route of adding buttons to the inbox view, you may be able to do this with the workspace decorator. It'll take some work to figure out how to link the buttons to the optional tasks, but it's possible. I don't have a ready solution for doing this, you'd have to figure that out yourself.
    To get started on using the workspace decorator, refer to my blog:
    http://blog.ssglimited.com/2010/02/19/customizing-oracle-bpm-using-worklist-decorator/
    HTH.
    Mark

  • User Decision buttons(Approve,Reject) in workitem along with a tcode link

    Hi Friends,
    I have a requirement to give two buttons in workitem.so that when user clicks the workitem,
    he can get two options to either approve or reject the invoice.
    They also want to see the document,so i need to give the link for the transaction code in workitem.
    I have given the method as a default one in business object,and in method i am calling the transaction.
    but still my required output is not coming.Workitem is only executing the tcode,when i m clicking on the workitem.
    For this do i need to design a screen?
    If yes how to give the link in custimized screen.
    Thanks in advance.
    Madhu.

    Let's get clear.
    You have a decision workitem with two options.
    This step is linked to a standard Task which calls to method PROCESS from standard Business Obect DECISION.
    You should copy the standard task 8267 and in the new task create a reference to the business object and pass it from WF through binding.
    When the workitem is created a hyperlink will appear in Attachments box. When this link is clicked the default method of the BOR will be called. The key of the BOR instance was already defined with the binding.
    You can also attach more BOR instances passing them to the task through binding with the obect _Attach.Objects.

  • How to implement Approve/Reject kind functionality

    Hi All,
    I have a requirement to implement Approve/Reject functionality.
    anybody have any idea please help.
    Thanks in Advance

    Hi,
    Check the below link for your reference
    https://forums.oracle.com/thread/2545870
    https://forums.oracle.com/thread/2538796?tstart=275
    Thanks
    Lakshmi

  • How to hide a fieldsuFF08elementsuFF09 in the Adobe Interactive form ?....urgent...

    Hi Experts,
    I'm working on Adobe Interactive form developed in WDP ABAP.( I have successfully config the ADS in my server.)
    Action:
    1. Create two view -
    first_view and second_view in the WDP ABAP..
    2. In the first_view, there are a input field( named "elements_number") and a button(named "create_button") .
    3. In the second_view, there is Adobe Interactive form ( named "adobe_form" ). There are 3 text_fields elements in the Adobe Interactive form.
    4. Run the WDP ABAP: first_view is opened. Type a number ex."2" in the "elements_number", click the "create_button".
    5. The second_view is opened.
    6. The "adobe_form" is occured.
    7. There are 2 text_fields displayed in the "adobe_form" and 1 text_field hiden in the "adobe_form".
    Steps (1) ~ (6), I have completed, but I don't know how to implement the step (7).
    Please give me some hint on this. I try to use the CL_WD_ADOBE_SERVICE, but I didn't found any examples. Do you give me some ways to implement the function? Thanks a lot.
    Thank you very much.
    Thanks,
    Tao

    Hello Wang,
    You need to transfer some additional information in an unused data field. Then, by using scripting within the form template, you can hide the input fields in question.
    Best regards,
    Thomas

  • How to get the values enterd in the interactive form and store it in table.

    Hi Experts,
    I have a requirement, i want to display the editable fields in Adobe form and have a button.If i click the button what i enter in the fields that will be store in the table.
    I tried but the button action is not going....
    In the Form i put the layout type as : xACFLayout.
    and in the webdynpro the enabled property checked and display type put the activeX still the form in the fields are in non-editable....
    Can you please give me step by step procedure for the same.
    Thank you in advacne..
    Thanks.
    Rrrr.

    Hi,
    I put the form layout is ZCI.
    When i click the button the acion was not trigerring.
    Please help me in this ASAP. It's imp for me..
    For your understand;
    My Requirement:
    I have a interactive form in that 2 input fields 1. First name 2.Last name and one button .
    If i clcik the button what i enterd in the above 2 inputfields i have to get store it in R/3 table.
    I tried this one.
    1. Created the view in the context created the node "adobe" cardinality... (1..1) and below created the child node "input" cardinality(1..1) and 2 attributes first name and last name.and other attribute pdfsource type xstring.
    created the UI element Interactive form, and chekc the enabled checkbox, and display type "native" and binding the  data source property to node  "adobe" cardinality... (1..1) and pdf source to pdfsource node. and templet  gave  "ZFORM" and gave the interface name "ZINTERFACE" and drag and drop the node elements into layout
    and created the webdybnpro button and webdynpro event gave *clcik and javascript and save activated the form.
    2. In the Ui elemt in view action onsubmit wrote the code to get the context element values and insert  that int0o table.
    But here the Submit button action was not trigerring.....................
    can you please help me in the same..... ASAP give any sugesstion what i have to change in this scenario.....

  • How to binnding the data in the adobe interactive forms for making a table?

    Hi, experts,
    Function:
    Through the sharing context node between adobe interactive form and a WDA for ABAP, display the data of the sflight_node in the ADOBE.
    version:
    Acrobat Reader 8.1.0
    currently both of the SAP-ABA and SAP-BASIS SP level: 9
    ADS : Successful.
    The following is my action:
    1.     Create a interface (Z_SFLIGHT_INTF) with a attribute node (SFLIGHT_NODE) that type is "sflight"  using the transaction code "sfp"
    2.     Create a form (Z_SFLIGHT_FORM) using the transaction code "sfp" with the interface Z_SFLIGHT_INTF.
    3.     Trag the sflight_node in the Z_SFLIGHT_INTF to the form( Z_SFLIGHT_FORM).
    4.     Open the layout tab in the form(Z_SFLIGHT_FORM), and create a table(table1). Click the table created just now, select the binding tab in the object tab, and in the Default Binding, select the SFLIGHT_NODE under the Z_SFLIGHT_FORM.
    Problem 1:
    Do you tell me whether is right for binding the context SFLIGHT_NODE using this way? If bind 3 context attributes in the sflight, how can I do it?
    5.     Create a WDA for abap (ZZ_02_SFLIGHT), and create a view(MAINVIEW) using transaction code "se80" in the sap-gui with adobe interactive form. Set the templatesource(Z_SFLIGHT_FORM) in the  adobe interactive form properties and saved, and then, datasource is "MAINVIEW_Z_SFLIGHT_FORM" automatically.
    6.     But I only found the attribute SFLIGHT_NODE under the context node(Z_SFLIGHT_NODE), and  I don't found the NODE ( SFLIGHT_NODE ) context in the context tab in the WDA for abap so that I don't set data to the context NODE (SFLIGHT_NODE).
    Problem 2:
    Do you tell me what can I do it so that I get the node SFLIGHT_NODE rather than attribute in the WDA for setting the data to the CONTEXT NODE (SFLIGHT_NODE)?
    Thanks a lot.
    Best regards,
    Tao

    Hi, experts,
    You can reply back to me via e-mail if you think we should discuss this internally at [email protected] or [email protected]
    Thanks a lot.
    Best regards,
    tao

  • Button to load dynamic image in interactive form webdynpro for java

    Hi all
    i tried to use image field to load dynamic image as shown in the online interactive form tutorial
    and it worked for test but when try it with view appears inside viewset it doesnt....
    so i think if we could call the image after render by pressing a button inside the form it may work
    but the problem is i have no idea about how to implement such solution ,so if any one has any idea about how to implement such solution i will be thankful if he can share me the solution.
    thanks.....
    Naguib..

    use the following tutorial. it is very easy to follow and it works fine, i have tried that.
    http://www.docstoc.com/docs/2540673/How-To-Integrate-ADOBE-form-on-WebdynPro-for-ABAP-and-Deploy-it-
    in case of some more problems, ask again and point out the part of tutorial where there is a problem.

  • How to capture full file path on Adobe Interactive Form using Acro JS

    Hi All,
    I have a requirement where I have a field ZPATH1 on Adobe Interactive Form. I am putting a BROWSE button and writing following JavaScript on CLICK event on this button for populating the chosen file path into field ZPATH1.
    *Start of JavaScript
    var sFile;
    event.target.importDataObject(sFile);
    var oFile;
    oFile = event.target.getDataObject(sFile);
    this.parent.parent.Sub_Form_Fields_Mass.ZPATH1.rawValue = oFile.path;
    *End of JavaScript
    1. event.target.importDataObject(sFile) --> Giving me the pop up to select the file.
    2. this.parent.parent.Sub_Form_Fields_Mass.ZPATH1.rawValue = oFile.path; --> Putting the oFile path in field ZPATH1 on the form.
    3. This way is only giving me the selected FILE NAME whereas I need the complete path.
    I have tried below way also:
    this.parent.parent.Sub_Form_Fields_Mass.ZPATH1.rawValue = even.target.path;
    This function returns me the complete path but in URL form. It does not give me the presentation server path.
    Please suggest me how to get the complete path of presentation server to the file.
    Appreciation would be honored in form of points!!!
    Regards,
    Ashish

    please post it here for quick response
    and also search in adobe forums also for java script related.
    http://www.adobe.com/support/forums/index.html

  • How much effort in developing an offline adobe interactive form - crm 2007

    We have a requirement to develop an offline adobe interactive form in crm 2007 sp4.  The form will be linked with a visit transaction and when saved will also facilittae the transfer of the form from crm to outlook via groupware integration.  From what i can see we have the following steps which will need to be implemented.
    1 - Develop web service to pull information from the created visit to the Offline Adobe Interactive Form
    2 - Create an Adobe interactive Form template to hold the details of the visit
    3 - Set up Groupware Integration to pass the form from CRM to Outook (DONE)
    4 - Develop some approach for uploading the form data back to the CRM server (of which there appears to be three approaches - Submit by Email / WebServices / WebDynpro-Upload )
    The form itself is not going to be too detailed.  It will be prepopulated with the following fields:
    Account No, Account Name, Contact, Date, Time, Transaction No, Transaction Category.  It will also have a number of text fields which will be used to capture the details of the visit.  It will have a submit button to allow for the data to be uploaded by the appropriate upload method.
    Can anyone give me some guidance as to how long it would take to implement such a requirement.
    Thanks in advance
    Eddie

    Hi,
    Do review this Thread, I think this will help you.
    [Adobe Interactive Forms / Web Services - Connection query|Adobe Interactive Forms / Web Services - Connection query;
    Regards
    Pradeep Goli

  • How File Path will be decided for downloading Interactive form

    Hi,
    I have error like...
    java.io.FileNotFoundException: temp\webdynpro\web\local\DynPro6\Components\com.dynpro.DynPro6\PurchaseRequisition.pdf (The system cannot find the path specified)
    Can any busy suggest how the path will be decided for local and server ..
    Please helpme in that,
    Regards,
    Gurprit Bhatia
    Message was edited by:
            GURPRIT BHATIA
    Message was edited by:
            GURPRIT BHATIA
    Message was edited by:
            GURPRIT BHATIA

    Hi,
    Do review this Thread, I think this will help you.
    [Adobe Interactive Forms / Web Services - Connection query|Adobe Interactive Forms / Web Services - Connection query;
    Regards
    Pradeep Goli

  • How to implement enter-query , execute-query in Apex Forms

    Hi,
    I am new to Oracle Application Express. I want to know what is the equivalent of ENTER-QUERY and EXECUTE-QUERY features of Oracle Forms in Oracle APEX? I saw a lot of documentation, but everywhere I found that APEX forms only have 3 database actions, (1) INSERT (2) UPDATE & (3) DELETE.
    Does anybody know how we can do QUERY in APEX Forms? (like we do in Oracle Developer Forms).
    Thanks in advance.

    Oracle APEX is a web/ stateless environment. So you do not have the same functionality/ features as in a Oracle Forms environment which is session/state oriented.
    You can however achieve functionality similar to Enter Query / Execute Query through other means.
    The easiest is to use the Forms with Report wizard. It creates 2 pages, the first one is a report and the other a Form. Clicking on the Report rows takes you to the Form page in Edit mode where as the the Create button takes you to the Form in Insert mode.
    If you want to have the enter-query / execute query on a single page it will require significant effort and skills. Try it when you have acquired some more skills in Apex.
    In APEX , like any other web application, you have to think in the web paradigm and not client-server. Even Forms 11g is essentially client-server like and is session oriented through the forms applet.
    Regards,

  • How do I display my pdf output on interactive form?

    Hi all,
    I use interactive form ui element and bind its pdf source property to my attribute 'SOURCE' typed xstring.
    I call my custom fm to process some data return me an itab which consist of lines of pdf binary data. I moved it to another itab which is lines of hexadecimal text. I have a big problem displaying my lt_xstring below on ineractive form. Either I get type not compatible or acess via null object reference error issues. Any idea anyone???
    TYPES: BEGIN OF ty_buffer,
             lv_buffer TYPE xstring,
           END OF ty_buffer.
    TYPES: BEGIN OF ty_string,
             lv_string TYPE string,
           END OF ty_string.
    TYPES: BEGIN OF ty_xstring,
             lv_xstring TYPE xstring,
           END OF ty_xstring.
    DATA lt_buffer TYPE STANDARD TABLE OF ty_buffer.
    DATA lt_string TYPE STANDARD TABLE OF ty_string.
    DATA lt_xstring TYPE STANDARD TABLE OF ty_xstring.
    DATA lw_buffer TYPE ty_buffer.
    DATA lw_string TYPE ty_string.
    DATA lw_xstring TYPE ty_xstring.
    DATA lw_pdf     TYPE soli.
    *EXPORT my_data = lv_string TO DATA BUFFER lv_buffer.
    *IMPORT my_data TO lv_xstring FROM DATA BUFFER lv_buffer IN CHAR-TO-HEX MODE.
    LOOP AT ltg_pdf INTO lw_pdf.
      lw_string-lv_string = lw_pdf-line.
      EXPORT my_data = lw_string-lv_string TO DATA BUFFER lw_buffer-lv_buffer.
      IMPORT my_data TO lw_xstring-lv_xstring FROM DATA BUFFER lw_buffer-lv_buffer IN CHAR-TO-HEX MODE.
      APPEND lw_xstring to lt_xstring.
      CLEAR lw_pdf.
      CLEAR lw_string.
      CLEAR lw_buffer.
    ENDLOOP.

    Hi Siong,
    If you are using web dynpro than whatever the values presents in the context will be displayed in the Form.
    in case of web dynpro you need to to perform any parsing or transformation.
    Just make sure than you are properly mapping the web dynpro context and Pdf context.
    check your web dynpro component, if you get the correct values in context, than these values will be displayed in fore also.
    Thanks & Regards,
    Arvind

  • How to call HTTP web services in an Interactive Form?

    Hi all,
    I am using Adobe Livecycle Designer currently in a trial 8.2 version.
    I need to invoke an HTTP Web Service (non-SOAP) in an Adobe Interactive Form. The Net.HTTP method does not work due to security reasons. The error message I get is:
    (german)
    " NotAllowedError: Sicherheitseinstellungen verhindern den Zugriff auf diese Eigenschaft oder Methode.
    Net.HTTP.request:28:XFA:form1[0]:mysubform[0]:Region[0]:change"
    In english this translates to: "Security settings prohibit the call of this property or method.
    And indeed the "Javascript for Acrobat API reference" includes the following note:
    "Note:This method can only be made outside the context of a document (for example, in a folder level JavaScript)."
    So this method seems to be excluded from use in an Adobe document, e. g. in an interactive form. But why is it then listed at all? Is there a way to call HTTP Web Services in an Adobe Interactive Form by somehow branching out the call outside the document itself? Of course I do not want to call a SOAP service which then calls the HTTP Web Service ;-)
    Is there any other way to invoke HTTP Web Services in an Adobe Interactive Form?
    Thanks a lot for your response!
    Regards
    Christoph

    Hello Kavita,
    patterns are not processed during editing. If you can't use the default behavior of the numeric field when a character is entered (handled when the user finished editing), you could use scripting to process input. Depending on what you want to do you could use the exit event or the change event.
    A change event has a property called "change" that caused the event. You could try "xfa.host.messageBox( upper(event.change) )" in FormCalc to show the characters in upper case.
    But, you should go this way only if the patterns for editing and for display and validation scripts can't be used in your case.
    Best regards
    Juergen

  • How to Display Node Data ( 100 Lines ) in INteractive form UI Element

    HI All,
    I have requirement to display Standard report output in interactive form UI element .I have taken the Stadard report Output to an internal table and converted into xstring format and trying to exporting to the node with attribute type xstring . and binding this attirbute to interactive form UI element PDf Source property.
    But I am getting the error 'File Does not begin with %pdf- '.
    pls find the below code which i am using for converting Itab Data into Xstring
    CALL FUNCTION 'SOTR_SERV_TABLE_TO_STRING'
        IMPORTING
          text     = wa_string
        TABLES
          text_tab = it_itab.
      DATA: lv_xstring TYPE xstring.
    CALL FUNCTION 'SCMS_STRING_TO_XSTRING'
       EXPORTING
         text   = wa_string
       IMPORTING
         buffer = lv_xstring
       EXCEPTIONS
         failed = 1
         OTHERS = 2.
    CALL FUNCTION 'SCMS_FTEXT_TO_XSTRING'
      EXPORTING
        input_length       = '7285'
      FIRST_LINE         = 0
      LAST_LINE          = 0
      MIMETYPE           = ' '
      ENCODING           =
    IMPORTING
       BUFFER             = lv_xstring
      tables
        ftext_tab          = it_itab
    EXCEPTIONS
      FAILED             = 1
      OTHERS             = 2
    Please help me on this..
    Thanks in advance .
    Kiran.

    HI
    You cannot just simply convert one string to xstring and then set it in pdfsource to get the pdf.
    what is required is little bit lengthy than wht you are doing right now.
    you need to use adobe live cycle designer to design the form first and bound the layout UIs there to the context and then
    when the pdf wll be generated it will have the data.
    1. Go to transaction SFP ad create one interface there with some parameter say data.
    2. create a form based on this interface.
    3. in the template source property of the UI give the form you have created it will automatically create context for the import
    parameter that you have given in the interface.
    4. now you need to double click on the interactive form UI to open Adobe live cycle designer to design the layout of the form to
      display the data that you will get form the import parameter.
    5. pass the required data to the context which is created as the import parameter
    these are the steps required to create a PDF form having the data passed by you from the programm dynamically.
    here is a link for a demo tutorial.
    [http://wiki.sdn.sap.com/wiki/display/WDABAP/CallAdobeFormthroughABAPWebDynpro|http://wiki.sdn.sap.com/wiki/display/WDABAP/CallAdobeFormthroughABAPWebDynpro]
    thanks
    sarbjeet singh

Maybe you are looking for

  • Download in Interactive Report Attributes

    Hi, all -- I am using APEX 3.1. In the Interactive Report Attributes, I added the filename: status.csv. I apply the change, but I don't see any change on the page. I was expecting a link at the bottom of the report to invoke the download. If my expec

  • Why does the Video looks Pixelated after Burning DVD

    In IDVD when I preview the video it looks great, when I burn the DVD it comes out very very pixelated. I've changed the preferences from Best Performance to Best Quality, and the project properties as well I've done the same. Does anyone know why thi

  • How to implement support packages with BW connected to R/3??

    Hello! We use a BW system togehther with our ECC6. So we have activated Datasources in LBWE. Every time, when I import a support package, there is a warning regardin LBWE an data to process. Our workaround is to stop the updater in sm13, empty the qu

  • Progress Bar Widget

    Hi. I'm looking for a simple progress bar (a.k.a ticker) widget and wondering if anyone knows of one that might exist. Everything I see is for a specific purpose - none that match my need. I am looking for something more universal, where I can set th

  • Is it possible to do the excise utilization in previous period?

    Hi gurus, I am having some query about CENVAT Utilization. is it possible to do the utilization in previous period? i had put the Feb 2009 opening exicse balances & now doing the March 2009 excise transaction entry. while doing the utilization on 03.