Custom FPM Event for Button row element

Hi Expects,
I have created a new button row element in standard screen, where I want to add custom FPM event and handle the same in get_data( ). But by default SAP is providing few event ID's in drop down.
Please help me how to add custom FPM event for  button row element.
Regards,
Reny Richard

Hi Remy,
Process Event method does have any signature parameters in it which allow us to disable/enable buttons.
We can handle this in Get data method.Get Data is always triggered after Process Event. So you can write that in Get Data instead.
****this is a sample code to do the same. You can do a read as well if single button needs tobe handled***
LOOP AT CT_ACTION_USAGE INTO lw_action WHERE id = (your event id for the button).
    lw_action-enabled = abap_false.
    MODIFY CT_ACTION_USAGE FROM lw_action TRANSPORTING enabled.
    EV_ACTION_USAGE_CHANGED = 'X'.
ENDLOOP.
***use field symbol to avoid modify if you want***

Similar Messages

  • How to set fire action event for particular rows in a table

    HI All,
    I have a requirement in which I want to set fire action event for particular rows in a table based on some condition.
    The table has columns like fullname,employee id etc.
    So i want to set fire action event for particulars rows only which will saisfy some condition.

    Atanu,
    Your approach(setting fire action for few rows) seems not possible. Better to go ahead with workaround.
    Do you want this functionality in processRequest(while page loading) or processFromRequest(on some event) method ? Give more explanation regd. your requirement ?
    In either case loop through the rows and when your condition is met write the action to be performed in controller.
    Regards,
    Anand

  • Hot keys for Button UI Elements

    Hi All,
    Just wanted to check if there are hot keys (Ctrlkey eg CtrlC) available for Button UI Elements in Web Dynpro.
    Regards
    Nikhil

    Hi Armin,
    Thanks for the reply.
    Closing the thread.
    Regards
    Nikhil

  • Custom tabular form for multi-row not saving data

    Ok, before anyone asks, yes, I did read the how-to:-)
    I have a custom tabular form, which I did cause I need to use popups and the popups that you can use in the wizard tabular form does not display the text but rather the value underneath it.
    It returns data rather nicely and when I go and update values I can tell it is changing the fields underneath. I put a process in that will display the values in text fields on the form (for one row only) and I see them changing from what is already there and with the proper values.
    However, when I do that the data that is displayed then gets reverted back to what it was previous to the update but reports that the process was successful.
    I have also tried to insert but that is basically doing the same thing. Can anyone guide me.
    SQL to generate the tablular form...
    SELECT x.sak_release_db
    , x.sak_object
    , x.sak_release
    , x.sak_participant
    , x.sak_csr
    FROM
    (SELECT htmldb_item.hidden(1,sak_release_db) sak_release_db
    , htmldb_item.popupkey_from_query(2, sak_object,
    'SELECT b.nam_schema||''.''||a.nam_technical as table_name , b.sak_object
    FROM system_object a
    , database_table b
    WHERE a.sak_object = b.sak_object') as sak_object
    , htmldb_item.hidden(4,sak_release) sak_release
    , htmldb_item.popupkey_from_query(5, sak_participant,
    'SELECT nam_first || '' '' || nam_last as name, sak_participant FROM co_participant') sak_participant
    , htmldb_item.popupkey_from_query(7, sak_csr,
    'SELECT external_id|| ''-''||id_split as co, sak_csr FROM co') sak_csr
    FROM release_db_xref
    UNION ALL
    SELECT htmldb_item.hidden(1,NULL) sak_release_db
    , htmldb_item.popupkey_from_query(2, NULL,
    'SELECT b.nam_schema||''.''||a.nam_technical as table_name , b.sak_object
    FROM system_object a
    , database_table b
    WHERE a.sak_object = b.sak_object') as sak_object
    , htmldb_item.hidden(4,NULL) sak_release
    , htmldb_item.popupkey_from_query(5, NULL,
    'SELECT nam_first || '' '' || nam_last as name, sak_participant FROM co_participant') sak_participant
    , htmldb_item.popupkey_from_query(7, NULL,
    'SELECT external_id|| ''-''||id_split as co, sak_csr FROM co') sak_csr
    FROM dual) x
    Process to verify that I have the correct global fields: (Type: PL/SQL anonymous block, Process Point: On Submit - After Computations and Validations)
    begin
    :P3_2 := replace(htmldb_application.g_f02(1),'%'||'null%',NULL);
    :P3_5 := replace(htmldb_application.g_f05(1),'%'||'null%',NULL);
    :P3_7 := replace(htmldb_application.g_f07(1),'%'||'null%',NULL);
    end;
    Process to do the insert/update. Note, I hardcoded the value in the where clause but I was originally using the global value for g_f01 (i also tried putting a commit in there for fun) (Type: PL/SQL anonymous block, Process Point: On Submit - After Computations and Validations):
    -- Update the RELEASE_DB_XREF table
    FOR i IN 1..htmldb_application.g_f01.count
    LOOP
    IF htmldb_application.g_f01(i) IS NOT NULL THEN
    UPDATE release_db_xref
    SET sak_object = replace(htmldb_application.g_f02(i),'%'||'null%',NULL)
    , sak_participant = replace(htmldb_application.g_f05(i),'%'||'null%',NULL)
    , sak_csr = replace(htmldb_application.g_f07(i),'%'||'null%',NULL)
    WHERE sak_release_db = 22;
    ELSE
    IF htmldb_application.g_f02(i) IS NOT NULL THEN
    INSERT INTO release_db_xref
    (sak_object
    ,sak_release
    ,sak_participant
    ,sak_csr)
    VALUES
    (replace(htmldb_application.g_f02(i),'%'||'null%',NULL)
    ,htmldb_application.g_f04(i)
    ,replace(htmldb_application.g_f05(i),'%'||'null%',NULL)
    ,replace(htmldb_application.g_f07(i),'%'||'null%',NULL));
    END IF;
    END IF;
    END LOOP;

    Florian,
    Checkboxes are different from other HTML form items. When you have a text box for example, there's always a value send to the server when submitting. Even if that value is NULL. When you have a checkbox however, you only get the value if the checkbox is checked. It's not posted to the server when it is not checked. That's the general behavior of HTML forms and not specific to Oracle HTML DB.
    When working with tabular forms in HTML DB, you can access your form values using the htmldb_application.g_f0x arrays. Now if you have for example 10 rows in your form, then you'll get ten elements in your array for text boxes, select lists, etc. For checkboxes however you'll only get as many elements as you have rows checked. If I read your update and insert code correctly, you're trying to use the checkbox arrays the same way you use the arrays based on other item types. My recommendation would be to use Yes/No select lists instead of checkboxes or at least use select lists initially to get it working and then work on properly processing the checkboxes.
    Some general information about working with checkboxes in tabuar forms can be found here:
    http://www.oracle.com/technology/products/database/htmldb/howtos/checkbox.html#CHECKBOX_IN_REPORT
    Hope this helps,
    Marc

  • Custom JDialog, waiting for Button Press

    I want to create a custom dialog so i can do the following:
    Color yrColor = MyColorChooser().showDialog();
    I can create the dialog just fine but i cant get it to return a value
    on a button press.
    Here is my code:
    public class MyColorChooser extends JDialog implements ActionListener{
    public MyColorChooser(){
    super(Main.Frame, "Color Chooser", true);
    // Gui Stuff
    public Color showDialog(){
    setVisible(true);
    // ?? how do i have it wait for button press??
    return YourColor;
    public void actionPerformed(ActionEvent e) {
    if( e.getSource() == Button ){
    returnColor()
    public void returnColor(){
    Color YourColor;
    JButton Button = new JButton();
    }Im clueless when it comes to JDialogs.
    I know i am probably approaching this all wrong.
    I need guidance more in the approach rather than the code.
    If anyone has any suggestions id appreciate it.
    Thank you!

    Maybe this simple example can give you some ideas. Note how I make the dialog modal. This will halt the program flow until the dialog is dismissed.
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    public class SimpleTextInputDialog extends JDialog implements ActionListener {
        private JTextField  inputField;
        private JButton     okButton;
        private JButton     cancelButton;
        private String      value;
        private SimpleTextInputDialog() {
            setTitle("Enter a value");
            setModal(true);
            inputField = new JTextField(20);
            JPanel textPanel = new JPanel();
            textPanel.add(inputField);
            getContentPane().add(textPanel, BorderLayout.CENTER);
            okButton = new JButton("OK");
            okButton.addActionListener(this);
            cancelButton = new JButton("Cancel");
            cancelButton.addActionListener(this);
            JPanel buttonPanel = new JPanel(
                    new FlowLayout(FlowLayout.CENTER, 10, 10));
            buttonPanel.add(okButton);
            buttonPanel.add(cancelButton);
            getContentPane().add(buttonPanel, BorderLayout.SOUTH);
            pack();
            setLocationRelativeTo(null);
        public void actionPerformed(ActionEvent e) {
            if( e.getSource() == okButton ) {
                value = inputField.getText();
            dispose();
        public static String getValue() {
            SimpleTextInputDialog dlg = new SimpleTextInputDialog();
            dlg.setVisible(true);
            return dlg.value;
        public static void main(String[] args) {
            String value = SimpleTextInputDialog.getValue();
            System.out.println("Entered value: " + value);
    }And as always, you should study the tutorials:
    "How to Make Dialogs":
    http://java.sun.com/docs/books/tutorial/uiswing/components/dialog.html

  • Condition Type Event for button doesnt fire after Tab Change?

    Hi,
    I have 3 Tabs (Interactive Reports) and when I change between these Tabs (without submit) my parameters getting null values, which is OK. For this situation my "condition type" of a button doesn't fire (button should disappear when parameter is null)?
    cheers,
    Bernhard
    Edited by: boffman on 05.07.2010 17:12

    IR reports use all the bells and whistles of DHTNL and Ajax. So without the Submit evnt you do not reload the page but only reload relevant regions (PPR).
    Net result is that the other items that have already been loaded when the page was loaded remain as they are, hidden or dispayed as the case may be.
    One could theoritically use Javascript to hide/show ($x_Hide and $x_Show) to toggle the buttom. But I am not clear how one would trigger that! which event on which HTML element? The tabs are generated by Apex as DHTML and that I believe is a black box.
    If a eent to trigger JS can be found then it will work.
    Regards.

  • Abap WD ALV: Event for calculation row?

    Hi,
    i have one Abap WebDynpro ALV Component. It is possible to register an event (ON_CLICK) for Cells which are an Link_to_action for example.
    My Table:
    ID | Group | Var
    A1 | Test | 4
    A2 | Test | 5
    A3 | Dev | 4
    A4 | Dev | 6
    If i create the ON_CLICK event for the last row, which is then a link_to_action column, i can click on the numbers and the event is triggered
    Now i have a table which uses the ALV Calculation feature and the Intermediate Results for the grouping.
    My new output view is:
    ID | Group | Var
    ->---Test    9
      A1 | Test | 4
      A2 | Test | 5
    ->---Dev  10
      A3 | Dev | 4
      A4 | Dev | 6
    (It calculates the sum of the vars and groups it by the second column)
    Now I need an Event if someone clicks on the numbers in the Var Row of the intermediate results row (here: 9 and 10). How can i do this?
    If this is not possible, how can i register an event if someone expands or collapses a intermediate result row?
    Kind Regards,
    Thomas
    Edited by: Thomas Rodemer on Oct 9, 2008 3:30 PM
    Edited by: Thomas Rodemer on Oct 9, 2008 3:30 PM

    Hi,
    Is the DDLBK is filled with support function? if yes then look if you can enhance the method by post method exit etc..
    Thanks,
    Chandra

  • Event for Table rows deselection

    Hi Guys,
    I have created a Table  and created a method for  event 'OnSelect'.I am capturing row values into an internal table when  user select a value from the table.Here my problem is once deselected after selecting the row ,the selected data is still appearing in the internal table but deselected value should get deleted from the table.How it can be acheived.Is there any event for deselection.
    Thanks
    Nandana.

    Hi nandana,
    If i am understanding your query correctly, on Row select you are appending the row value to an internal table.
    Now on deselect you want the row to be removed.
    So do one thing in that event method before appending the row into table check if the row value previously exist.
    If it exist then remove the row from internal table otherwise append it into the table.
    Check it works or not.
    If it is not working with onSelect event try to use onLeadSelect event.

  • Custom FPM Application for MSS

    Hi folks,
    I am trying to create some custom portal pages for MSS that will contain the Employee Search and other iViews based on the Generic iView List and/or Generic iView Table templates.
    The Business Package document for MSS (mySAP ERP) says that I have to create a new delta-linked  FPM Application and assign the required views to the perspective, which I have done via the Self Service Administrator role.
    The problem is, when I then try to create the new WebDynpro Java iViews, I can't see my FPM Application or views in the list.
    I am aware that I can just add extra views to the standard FPM Applications for MSS, but I really don't want to risk having those overwritten by support packs later on.
    Has anyone successfully done this before?
    Regards,
    John

    btw, I was kidding about the creators of the old FPM sitting in the corner
    When the new Java based ESS/MSS screens first came out they were so much better than the old IAC's, and we were very grateful for that.  We used them extensively where they could just be deployed "out of the box".
    Once we figured out how to integrate our own generic query iViews into the FPM framework for MSS we used lots of those too.
    I guess in a way they were too successful, and as a result the business kept demanding more and more self service applications that often weren't delivered as standard.
    Not being a Java shop (i.e. zero Java developers) we soon found that there was only so far we could go with the standard WDJ services.  Even something relatively simple like adding another standard field to a standard ESS screen without going down the NWDI path proved to be a rather frustrating process (for us at least), so we just started buidling our own with WDA.
    From a functional perspective, I don't really care if an application has been built in Java or Abap, as long as it does what I want, every time.  I can't see us going back and changing the standard Java services that we still use over to Abap, but for future developments the reality for us and lots of other customers is WDA.
    cheers.
    John

  • On Click event for button not firing

    Hi,
    I'm writing a portlet under Plumtree 5.0.2 and using web controls 2.1 (released version).
    I have a form that has a text box, a label, and a submit button. By cliking on the button the text from the box should appear in the label. If I run the application outside the portal everything seems to work fine, but on the portal the click event does not fire. why?
    I have my ptrender tag on the form, httpmodules in the config file, GetPostBackEventReference on Page_Load. Did I forget something?
    any advice is appreciated. Thanks
    Tania

    Tania,
    You'll need to add ptrender="true"to the button's opening tag if you want the button's server-side code to execute. Also, you won't need ptrender on the form's opening tag.
    From what I can see, placing ptrender on the form's opening tag can be used for two things:(i) when the user clicks a button (which doesn't have ptrender itself) causes the browser to return to the portal, similar to executing portletresponse.ReturnToPortal() in your server-side code.(ii) causing a third-party control to similarly return to the portal as (i) above.
    Nick.

  • Different onMouseOver Event for each row of a report

    Hi all,
    See
    http://htmldb.oracle.com/pls/otn/f?p=41861:1
    As you can see in the demo, all employees of a department are shown when you click the detail link for a department. This is done with the help of AJAX technologie to avoid the submit of the page.
    My question is: Is there a possibility to show the the employee report for the correct department when I move the mouse over the row of a department. In other words: what I am searching is a possiblity to define the behaviour of a certain row, so that code like
    <tr onMouseOver="javascript:getEmps(1)">....</tr>
    <tr onMouseOver="javascript:getEmps(2)">....</tr>
    is generated.
    Thank you in advance
    Stephan

    Hi,
    for this you need to call the PLSQL function upon table rendering, which means that you need a field in the table referencing a managed bean. In the managed bean you can use #{row} and resolve it using a ValueExpression. #{row} gives you access to the current rendered row (this is why you need to do it when the table renders) and thus allows you to call getAttribute(name) to get the values of field 1 - 3. The search field value you should get through the bindings reference (assuming the search form uses ADF). Then you create an operation binding for the executeWithParameters and call operationBindingName.getParamsMap().put(argname, argvalue); on it.
    Frank
    Ps.: I am concerned about the performance you get and wonder if it isn't possible to create a transient attribute that executes the function and displays the results. As I understand, the search parameters are only to filter the result set, which you still can do

  • CAHeadless Debug Event for Adobe Photoshop Elements 12

    I am getting this error periodically (every 5 min or so).
    What is interesting is that Adobe Photoshop Elements 12 is not even open and yet the following error appears:
    The error window is named  "CAHeadless Debug Event"
    Inside the window it says;
    CAHeadless has encountered an error.
    [..\..\Src\VideoFrameFactory.cpp-233]
    My machine:
    Windows 7 Home Premium Service Pack 1
    Manufacturer: iBUYPOWER Computers
    Processor: Intel(R) Core (TM) i7 CPU  [email protected] GHZ  2.83 GHZ
    12.0 Gig Ram
    64-bit Operating System
    Help?
    -Hppysnshn

    You need to contact Adobe Support either by chat or via phone when you have serial number and activation issues.  Here is a link to a page with options near the bottom to help make contact:
    http://helpx.adobe.com/contact.html?step=CCSN_downloading-installing-setting-up_licensing- activation_stillNeedHelp

  • Custom duplication event for datagrid

    hi guys , in the flexstore sample i saw a duplication functionality that executes when you add the same item to the shopping cart (instead of the shopping cart displaying the same item twice , it simply increases the quantity number of the item). Since am a bit of a noob when it comes to actionscript can anyone please show me how to do the same when dragging an item to the datagrid.

    In the Flextore project, look at productListEventHandler() in ProductCart.mxml.
    HTH,
    Carlos

  • Do you know a way for Java to support event for my 5 button mouse?

    I have MS mouse with 5 buttons
    I want the option in my app to support events for button number 4 and 5
    anyone knows a way?

    Could you be more clearer with your requirements. What you really want to achieve and what you get?
    And use the code tag to post the codes.

  • OnAction for the UI element "Image"

    Hi,
    I'm using the UI Element Image and I need to know if the User click on it.
    So, I was wondering why there is no Event onAction on this element and if you know an other element to do this.
    Thanks
    Philippe.

    Hi
      There is no event for Image ui element. If you want an action to happen when you click on a image then the maximum you could do is create a button and attach a image to the Image property of the button. That should help you to achieve your requirement.
    regards
    ravi

Maybe you are looking for

  • How to get the last row of a database table.

    HI , I want to get record exactly from the last row of a database table. How is that possible?

  • SCCM 2012 - Project 2010 Standard deployment failed with error 1603

    Hi everyone, I’m in the progress to roll out a software deployment via SCCM 2012, it’s to remove the current Project 2010 Professional we installed and reinstall the Standard version. We got a task sequence for the job, which is Reboot>Un-install Pro

  • Issue in Handling Unit creation.

    Dear All, We are using Handling Units functionality in the process order.  We are doing packing after confirmation, at the time of packing system is creating HU for those quantities which were confirmed at the last operation.  E.g. Confirmation quant

  • T4-2 Wont boot Solaris 10

    Hi, Brand new T4-2, had to reconfigure front plane hard drives in raid mirror using Fcode and the onboard SAS controller. Installed Solaris 10 from DVD no problem, ejected dvd and rebooted after install. Now when it boots It hangs just after the copy

  • Hide Content Area Home link

    How can we hide 'Content Area Home' link when Search Results are returned. We are also trying to hide the 'Bulk Action' and 'Save Search' links. Any pointers? We are going live on Portal Content Areas this week and we need to get these things sorted.