Find out the "Action" invoked in component controller

Hi,
Is there a way where i can find out in my component controller(wdPostProcessing) which button was clicked in the View?

I am using EVS. In that when the entered value doesn't match the enumeration values, it gives a error "String "xxx" doesn't match the enumeration". Now i when i click my custom Reset button in my WD application i want that all the values to be cleared (I have a bunch of EVS's ) on the screen. But when i have such error like the above my OnActionReset is not invoked at all until i clear manually all the invalid values in the EVS.
In debug i found that the control directly goes to component controller wdPostProcessing methods even before it invokes the OnActionXXXX events. So, here i want to identify the action generated on the view and do something to handle it.
I also want to give my custom message instead of seeing the standard message "String XXX doesn't match the enumeration".
Message was edited by: Aditya Atluri
Message was edited by: Aditya Atluri

Similar Messages

  • How do I find out the component ID on a certain page?

    How do I find out the component ID on a certain page? problems is that I'm using some page template which I do not have source code for that.I need to find out the component id to pass to UIComponent.findComponent(id) as parameter. is there anyway?
    Thanks

    If you go to the partial trigger property of any of your page component you can open the edit partial trigger browser.
    There you can find the components of your template and their ids

  • How to find out the Target Component name and Target view name

    Hi All Expert,
                      I want to know ,how to find out the target component and target view in WEB UI,when i click on a field which shows as a hyper link in WEB UI .At GUI level ,i know the how it will work.Any way to find out the component name and view name which is show the details of that field at GUI level .IF you go to transaction CRMD_ORDER then open the service contract id .then goto the item level value .there is 1 service data tab is available at item level.there is two button is available.first one is available time and second one is response time .if i click on any button then one popup is open which is shows the details of that button.I dont know how to find out the component name and view name from GUI level.
    Thanks in Advance....
    Vishwas Sahu

    Hi Vishwa,
                 The control would be something like this for navigation in Get_p_xxx method u mention as link and u mention a event name which gets triggered on the click of this hyperlink. So your GET_P_XXX method would have the following code:
    CASE iv_property.
        WHEN if_bsp_wd_model_setter_getter=>fp_fieldtype.
          rv_value = cl_bsp_dlc_view_descriptor=>field_type_event_link.
        WHEN if_bsp_wd_model_setter_getter=>fp_onclick.
          rv_value = 'EXAMPLE'.
    Now you have to create a method as EH_ONEXAMPLE at your IMPL class and within which you would give an outbound plug method. Within the outbound plug the target data would be filled in the collection and window outbound plug would be triggered.
    This is a huge topic and  i have just mentioned you basic things.
    Regards,
    Bharathy.

  • How to find out the containing jinternalframe?

    anyone know the solution to this problem?:
    1. i have a jinternalframe
    2. in the jinternalframe i have a jlist
    3. each list cell is rendered with a jlabel
    4. i have an action emanating from one of the list cells
    5. in the action handler, i need to get a reference to the containing internalframe
    of the component that is the source of the event (the jlabel rendered inside
    the jlist).
    in java 5, oddly, SwingUtilities.getAncestorOfClass() (that is, walking up the
    component hierarchy) works.
    in java 6, it doesn't.
    the problem is that jlists and other such model components are leaf components.
    they represent a discontinuity in the component containment hierarchy. the poor
    list cell renderers are and must remain dumb.
    anyhow, back to my question: is there any way to find out the containing
    jinternal frame?
    thanks, eitan

    is there any way to find out the containing jinternal frame?Not sure about the Renderer part, but here's a simple demo that puts a JList in a JScrollPane, which is then put on a JPanel, which is then put on the contentPane of a JFrame. Once the frame has been realized (this is key), there's a recursive method that will find whatever you're looking for.import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    public class MyFrame extends JFrame
      Component mysteryParent;
      public MyFrame()
        super("Find Parent");
        setName("The Amazing Frame");
        setDefaultCloseOperation(EXIT_ON_CLOSE);
        JList list = new JList();
        JScrollPane scroll = new JScrollPane(list);
        scroll.setName("The Silly Scroll");
        JPanel panel = new JPanel(new BorderLayout());
        panel.setName("The Plain Panel");
        panel.add(scroll, BorderLayout.CENTER);
        Container c = getContentPane();
        c.setLayout(new BorderLayout());
        c.add(panel, BorderLayout.CENTER);
        pack();
        // first, let's try to find the containing frame
        mysteryParent = getParentOf(list, JFrame.class);
        if (mysteryParent != null)
          System.out.println("The frame that contains the list is: " + mysteryParent.getName());
        // then, let's try to find the containing panel
        mysteryParent = getParentOf(list, JPanel.class);
        if (mysteryParent != null)
          System.out.println("The panel that contains the list is: " + mysteryParent.getName());
        // finally, let's try to find the containing scroll pane
        mysteryParent = getParentOf(list, JScrollPane.class);
        if (mysteryParent != null)
          System.out.println("The scrollPane that contains the list is: " + mysteryParent.getName());
      // recursive method:
      public Component getParentOf(Component child, Class parentClass)
        Component parent = null;
        if (child != null)
          parent = child.getParent();
        if (parent == null)
          return null;
        else if (parentClass.isInstance(parent))
          return parent;
        return getParentOf(parent, parentClass);
      public static void main( String[] args )
        MyFrame frame = new MyFrame();
        frame.setVisible(true);
    }I just swagged this just now, so maybe it could be improved.
    I'm guessing that SwingUtilities.getAncestorOfClass() already does this, but I've never used it so I'm not sure.

  • How to find out the name of a table?

    Hi
    How can I find out the name of a table which doesn't have a record history?
    Regards
    Rahman

    No direct way to know the tables. What you will find on the ABout this page link are the View Object (similar to record sets), Entity objects, controller and Application module. Generally EO is based on a table or the VO can be based on the query which you can find the corresponding xml file. But a button action might be calling a method in AM or CO which in turn call some wrapper method to interact with database. So nothing straight forward. You will have to analyze the all page related code objects.
    They are specific to OA framework and if you are not aware about them, better go through the initial chapters of OAF dev guide.
    --Shiv                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • How to find out the Transactions used per month & the USER who used that

    Hi,
    1)How to find out the Transactions used per month & the USER who used that?
    2)and can i get the above same for minimum 20 month?
    System : SAP- Enterprise Core Component.

    You can use my program...
    *& Report  Z_ABAP_TCODE_MONITOR
    *****&  Program Type          : Report                                 *
    *****&  Title                 : Z_ABAP_TCODE_MONITOR                   *
    *****&  Transaction code      : ZTCODE_USAGE                           *
    *****&  Developer name        : Shailendra Kolakaluri                  *
    *****&  Deveopment start date : 26 th Dec 2011                         *
    *****&  Development Package   : ZDEV                                   *
    *****&  Transport No          : DEVK906086                                       *
    *****&  Program Description   : This program is to display
    *List all tcodes executed during previous day.
    *& Show the number of users executing tcodes
    *& Modification history
    REPORT  Z_ABAP_TCODE_MONITOR.
    *& List all tcodes executed during previous day.
    *& Show the number of users executing tcodes
    TYPE-POOLS : slis.
    DATA: ind TYPE i,
          fcat TYPE slis_t_fieldcat_alv WITH HEADER LINE,
          layout TYPE slis_layout_alv,
          variant TYPE disvariant,
          events  TYPE slis_t_event WITH HEADER LINE,
          heading TYPE slis_t_listheader WITH HEADER LINE.
    *REPORT  z_report_usage.
    TYPES: BEGIN OF zusertcode,
      date   TYPE swncdatum,
      user   TYPE swncuname,
      mandt     TYPE swncmandt,
      tcode     TYPE swnctcode,
      report TYPE swncreportname,
      count     TYPE swncshcnt,
    END OF zusertcode.
    *data   : date type n.
    DATA: t_usertcode  TYPE swnc_t_aggusertcode,
          wa_usertcode TYPE swncaggusertcode,
          wa           TYPE zusertcode,
          t_ut         TYPE STANDARD TABLE OF zusertcode,
          wa_result    TYPE zusertcode,
          t_result     TYPE STANDARD TABLE OF zusertcode.
    PARAMETER: month TYPE dats DEFAULT sy-datum.
    *PARAMETER: date TYPE dats.
    *select-options : username for wa_usertcode-account.
    START-OF-SELECTION.
    PERFORM get_data.
    PERFORM get_fieldcatalog.
      PERFORM set_layout.
    PERFORM get_event.
    PERFORM get_comment.
      PERFORM display_data.
    FORM get_data .
    *date = sy-datum - 2 .
    After start-of-selection add this line (parameter Month required 01 as day).
      concatenate month+0(6) '01' into month.
      CALL FUNCTION 'SWNC_COLLECTOR_GET_AGGREGATES'
        EXPORTING
          component     = 'TOTAL'
          ASSIGNDSYS    = 'DEV'
          periodtype    = 'M'
          periodstrt    = month
        TABLES
          usertcode     = t_usertcode
        EXCEPTIONS
          no_data_found = 1
          OTHERS        = 2.
      wa-date  = month.
    *wa-date  = date.
      wa-mandt = sy-mandt.
    wa_usertcode-account = username.
      LOOP AT t_usertcode INTO wa_usertcode.
        wa-user = wa_usertcode-account.
        IF wa_usertcode-entry_id+72 = 'T'.
          wa-tcode  = wa_usertcode-entry_id.
          wa-report = space.
        ELSE.
          wa-tcode  = space.
          wa-report = wa_usertcode-entry_id.
        ENDIF.
        COLLECT wa INTO t_ut.
      ENDLOOP.
      SORT t_ut BY report ASCENDING.
      CLEAR: wa, wa_result.
    endform.
    FORM get_fieldcatalog .
    fcat-tabname     = 't_ut'.
    fcat-fieldname   = 'DATE'.
    fcat-seltext_l   = 'Date'.
    fcat-key         = 'X'.
    APPEND fcat.
      CLEAR fcat.
      fcat-tabname     = 't_ut'.
      fcat-fieldname   = 'MANDT'.
      fcat-seltext_l   = 'Client'.
      fcat-key         = 'X'.
      APPEND fcat.
      CLEAR fcat.
      fcat-tabname     = 't_ut'.
      fcat-fieldname   = 'USER'.
      fcat-seltext_l   = 'User Name'.
      fcat-key         = 'X'.
      APPEND fcat.
      CLEAR fcat.
      fcat-tabname     = 't_ut'.
      fcat-fieldname   = 'TCODE'.
      fcat-seltext_l   = 'Transaction Code'.
      fcat-key         = 'X'.
      APPEND fcat.
    ENDFORM.
    *&      Form  SET_LAYOUT
          text
    -->  p1        text
    <--  p2        text
    FORM set_layout .
      layout-colwidth_optimize = 'X'.
    ENDFORM.                    " SET_LAYOUT
    *&      Form  GET_EVENT
          text
    -->  p1        text
    <--  p2        text
    *FORM get_event .
    events-name = slis_ev_top_of_page.
    events-form = 'TOP_OF_PAGE'.
    APPEND events.
    *ENDFORM.                    " GET_EVENT
    **&      Form  GET_COMMENT
          text
    -->  p1        text
    <--  p2        text
    *FORM get_comment .
    DATA: text(30).
    text = 'Billing Report'.
    heading-typ = 'H'.
    heading-info = text.
    APPEND heading.
    *ENDFORM.                    " GET_COMMENT
    **&      Form  top_of_page
          text
    -->  p1        text
    <--  p2        text
    *FORM top_of_page .
    CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE'
       EXPORTING
         it_list_commentary       = heading[]
      I_LOGO                   =
      I_END_OF_LIST_GRID       =
    *ENDFORM.                    " top_of_page
    *&      Form  DISPLAY_DATA
          text
    -->  p1        text
    <--  p2        text
    FORM display_data .
      sort t_ut[].
    DELETE ADJACENT DUPLICATES FROM t_ut[] COMPARING ALL FIELDS.
      CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
        EXPORTING
          i_callback_program = sy-cprog
          is_layout          = layout
          it_fieldcat        = fcat[]
          i_save             = 'A'
          is_variant         = variant
          it_events          = events[]
        TABLES
          t_outtab           = t_ut
        EXCEPTIONS
          program_error      = 1
          OTHERS             = 2.
      IF sy-subrc <> 0.
        MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
      ENDIF.
    ENDFORM.                    " DISPLAY_DATA

  • How can you find out if another VI running on the same computer and how can you find out the name of that VI?

    Suppose that several VIs running simultaneously on the same computer. How can I find out the names of the running VIs, from another VI?
    If the already running VIs are clones of the same basic VI, open and run with the option "Prepare to call and forget", how can I find out the names and index of each clone? 

    I had an application where I spawned (= ran with Start Asynchronous Call) multiple (reentrant) copies of VIs, and would occasionally "lose control" of them.  I needed a way to find all VIs that were running "Top Level" and stop them (so I didn't have to log off from Windows).
    I used the Application Property "All VIs in Memory" to get an array of (wait for it ...) All VIs in Memory.  I took each name, opened a VI reference to it (simply wire the name string in, as the VI is, by definition, "in memory"), looked at its VI Execution State, and if it was Run Top Level, Invoked the FP.Close and Abort VI Methods.  [To prevent the VI that did all this from "committing Suicide", I compared the name string with the current Call Chain, and did nothing if there was a match].
    I think you could adopt this idea to do what you need.
    BS

  • How do I find out the name of my wireless chipset/interface?

    I'm doing a install of Arch and I need to setup my WLAN.
    So the wiki says:
    "After finishing the rest of this installation and rebooting, you can connect to the network with wifi-menu interface_name (where interface_name is the interface of your wireless chipset). "
    How do I find out the name of my interface?
    Last edited by psycho_tea_drinker (2013-07-03 12:36:40)

    psycho_tea_drinker wrote:
    hokasch wrote:
    Check your chipset (lspci), see if the corresponding kernel module got loaded. Look for dmesg errors. Another way to check device names (from the wiki):
    $ ls /sys/class/net
    How do I check if the kernal module got loaded?
    lspci | grep net
    > only shows my ethernet controller
    lsusb
    > does not show it ethier
    I forget to mention that it is a USB wifi dongle (Tplink TL-WN722N). And I'm also running within virtualbox - I hope that does not complicate matters?
    Probably. You'll need to make sure that VB guest can see your USB ports. You'll need the VB wiki pages for that though.
    I don't use it, so can't help, sorry.
    Last edited by skanky (2013-07-03 13:12:46)

  • How to find out the application server instance name?

    Hi,
    I installed an Oracle application server a long long while ago and completely forgot the things about the installation, including the name of the instance (I installed single instance, not cluster). Now I am trying to create a connection to the application server and I am prompted to fill in the instance name. Where in the installation can I find out the instance name?
    The version of the server as displayed when the server is started:
    $ ./oc4j -start
    Starting OC4J from /oraInventory/j2ee/home ...
    09/10/08 16:04:39 Oracle Containers for J2EE 10g (10.1.3.2.0)  initializedThis 10.1.3.2.0 number is somewhat confusing. As I understand it, right now if you download a copy of the Application server from Oracle web site, the current version is 10.1.3.1.0.
    I am also reading the installation guide now and when looking at the server starting messages on the screen, I realize that installing the server in the oraInventory directory is not quite right. Does that interfere with the correct functioning of the server? I installed it but have never tried to use it until now.
    Many thanks for your help!
    Newman

    J. Newman wrote:
    Hi,
    I installed an Oracle application server a long long while ago and completely forgot the things about the installation, including the name of the instance (I installed single instance, not cluster). Now I am trying to create a connection to the application server and I am prompted to fill in the instance name. Where in the installation can I find out the instance name?If you have access to that server, then the following should give the instance name.
    grep 'IASname' $ORACLE_HOME/config/ias.properties
    you should also see it in the AS Control Console page.
    The version of the server as displayed when the server is started:
    $ ./oc4j -start
    Starting OC4J from /oraInventory/j2ee/home ...
    09/10/08 16:04:39 Oracle Containers for J2EE 10g (10.1.3.2.0)  initializedThis 10.1.3.2.0 number is somewhat confusing. As I understand it, right now if you download a copy of the Application server from Oracle web site, the current version is 10.1.3.1.0.
    Regarding the version numbers, this fourth digit refers to the Component-specific release number. The OAS documentation says this about it.
    "This digit identifies a release level specific to a component. Different components can have different numbers in this position depending upon, for example, component patch sets or interim releases."
    I am also reading the installation guide now and when looking at the server starting messages on the screen, I realize that installing the server in the oraInventory directory is not quite right. Does that interfere with the correct functioning of the server? I installed it but have never tried to use it until now.
    Many thanks for your help!
    NewmanI think Oracle software should always be installed in a separate directory. I think it may also generate errors in its functioning but it will certainly create a whole lot confusion and mess in later administration and configurations.
    hope that helps!
    AMN
    Edited by: AMN on Oct 8, 2009 5:14 PM

  • How to find out the labview-ve​rsion of a vi

    Hello,
    is there a way to find out the labview-version of a vi?
    I have different projects here and o am not sure which project is created with which labview-version.
    Now i can do it manually to open each vi with different lv-version and check when i can opn it.
    Or is there a tool that can do this for me?
    thanks for tips

    TedAnderson wrote:
    Ultimately I wrote the utility that I'm attaching to this post.  It's in LV2012, so it will only report LV versions up through 2012.
    This isn't true at all.  The "Get VI Version"  invoke node will return the version of the VI, regardless of the development environment.  If you used that property in LabVIEW 7.1 and the VI file was a 2013 it will return the version 2013 which is the version of the VI, not the version of the developement environment.
    My utility will examine all vi, vit, and ctl files.  lvproj files throw error 1059 when input to Get VI Reference.  
    This is because the project is not a VI and getting the VI reference to a non VI file throws an error.  To do this you would need to use the Project >> Open Invoke node to get a reference to the project, and then use that reference to get the version.
    I also couldn't help but notice you aren't closing any of your references that you are opening.  This will mean each time you run this VI your memory will increase.  It will also increase much faster with a larger number of VIs.  Put a Close Reference function closing all the VI references you open.
    If you are interested in reading the version from disk instead of opening references you will need to look at the "vers" block data in the VI.  Assembling it is a little bit of a pain but you can figure it out if you know the version you are looking for when developing the code.
    Unofficial Forum Rules and Guidelines - Hooovahh - LabVIEW Overlord
    If 10 out of 10 experts in any field say something is bad, you should probably take their opinion seriously.

  • How to find out the number of fields in generated proxy structure?

    Hi All,
    Can anybody help me to find out the number of fields in generated proxy structure in back end system along with controller fields.
    i know how to get number of fields in XI system but i want the number of fields in back end system when we generate proxy including automatically generated controller fields.
    Thanks in advance.
    Regards,
    Ujwalkumar

    U mean u want to know at runtime?
    Get the output from ur proxy as a string, count the number of "<" characters and divide it by 2. :-P
    Of course, you'll have to treat the header fields separately.
    Regards,
    Henrique.

  • How to find out the application server info

    Hi, I am wondering how to find out the application server info in Java code, just like how to find out the db platform being used. Thanks

    Hi,
    I am not aware of any spec defined way of finding out such info. There may be vendor specific APIs or mechanisms.
    But you can use environment entries in your deployment descriptors to specify the information and make use of the entries inside your j2ee component. That will make your code platform neutral.
    Sahoo

  • How to find out the RSSI of a 3g/4g card connected to the RAP?

    Environment : This article applies to all Aruba Controller running Aruba OS 5.x and later.
    Answer :
    The following Remote Access Points RAP 5, RAP 3, RAP 115, RAP 108 and RAP109 supports the use of 3G/4G USB modems for internet Uplink. These modems extend client connectivity to places where an Ethernet uplink is not feasible. To find out the signal strength that your 3g/4g connected RAP is seeing from the cellular tower,
    "show ap debug system-status ap-name <name of ap> | include RSSI" can be used to check the information.
    Example:
    (M3.arubanetworks.com) # show ap debug system-status ap-name randerson-ap70 | include RSSI
    3G Uplink RSSI(in dBm) = -51

    Understand there is 3G/4G uplink and wired LAN uplink available, can we check with you whether there is a WIFI uplink available? ____

  • To find out the min and max memory been used by each parameter under SGA_MA

    Hi,
    Can any please tell me how to find out the min and max memory been used by each parameter under SGA_MAX and SGA_TARGET ? below is the db CRMS65T. If any such script is there please provide me
    SQL> select name from v$database;
    NAME
    CRMS65T
    SQL> show parameter sga
    NAME                                 TYPE        VALUE
    lock_sga                             boolean     FALSE
    pre_page_sga                         boolean     FALSE
    sga_max_size                         big integer 1000M
    sga_target                           big integer 1000MThanks in advance

    Can any please tell me how to find out the min and max memory been used by each parameter under SGA_MAX and SGA_TARGET ? below is the db CRMS65T. If any such script is there please provide meI guess your question is, each memory components of SGA? if so
    SQL> select * from v$sgainfo;
    NAME                                  BYTES RES
    Fixed SGA Size                      2088504 No
    Redo Buffers                       18882560 No
    Buffer Cache Size                 616562688 Yes
    Shared Pool Size                  301989888 Yes
    Large Pool Size                     4194304 Yes
    Java Pool Size                      4194304 Yes
    Streams Pool Size                         0 Yes
    Granule Size                        4194304 No
    Maximum SGA Size                  947912704 No
    Startup overhead in Shared Pool   125829120 No
    Free SGA Memory Available                 0Also check
    SQL> select COMPONENT,CURRENT_SIZE,MIN_SIZE,MAX_SIZE,USER_SPECIFIED_SIZE from v$sga_dynamic_components;
    shared pool                                                         301989888  301989888          0           209715200
    large pool                                                            4194304    4194304          0             4194304
    java pool                                                             4194304    4194304          0             4194304
    streams pool                                                                0          0          0                   0
    DEFAULT buffer cache                                                616562688  616562688          0           603979776
    KEEP buffer cache                                                           0          0          0                   0
    RECYCLE buffer cache                                                        0          0          0                   0
    DEFAULT 2K buffer cache                                                     0          0          0                   0
    DEFAULT 4K buffer cache                                                     0          0          0                   0
    DEFAULT 8K buffer cache                                                     0          0          0                   0
    DEFAULT 16K buffer cache                                                    0          0          0                   0
    DEFAULT 32K buffer cache                                                    0          0          0                   0
    ASM Buffer Cache                                                            0          0          0           603979776
    13 rows selected.
    SQL>Edited by: CKPT on Sep 19, 2011 8:55 AM

  • How to find out the difference between two payloads in the BPEL/xsl

    Hi,
    We are invoking a soa service from a BPEL with 10 input parameters and getting the output for only 7 parameters (where 10-7=3 are not returned by service as they are not processed by the service due to invalid input data).
    But the BPEL process should return the 10 payloads with 3 having the failures status.i.e need to find out the difference between input payload and the payload returned by the soa service.
    Can any one tell us, how to achieve this.
    Thanks in advance,
    Ram.

    Check the instance in EM console( in 11G) or BPEL console (in 10G ) and u can see the input and output xmls.

Maybe you are looking for