Raise event when user select a node or leaf of a recursive tree

What is the event when user choose a node or leaf of a recursive tree? When I select the tree node / leaf it does not raise the event in OnAction. Thanks!

Hi,
TreeNodeType and TreeItemType have ONACTION event assocaited with them. This event gets called when the node or leaf is selected by user. Put a break point in these method, then you'll call to know if they are actually getting called or not.

Similar Messages

  • When user select 1 row in alv some other rows must automaticaly get selecte

    When user selects say any row in alv with vbeln = 1234 all rows which have vbeln = 1234 also must get selected automaticaly.Is there some event to handle row selection in alv by clicking the push button beside each row to left of ALV?

    Hi
    U can implement an your push button in order to select the remaining rows: in user-command u need to implement a code where u get the selected line and the select the other.
    Or simply u can select the other lines as soon as the user do something after selecting a row.
    How to do it depends on whick kind of alv you're using: if the internal table fir output has a flag field for the marker, "To select a line" means to check that field.
    Max

  • How do I get a  value of a  cell when user selects in a JTable?

    Hi everybody,
    I need some help in order to complete my task. I 've a JTable. When user selects any particular column . I should able to get user selected value. I added a MouseListener to the table. And I 've written the following code - in mousePressed()
    JTable table = (JTable) e.getSource();
    iint col =JTablePartNumbers.getInstance().getSelectedColumn();
    int row = JTablePartNumbers.getInstance().getSelectedRow();
    System.out.println("row col value" +JTableModelPartNumbers.getInstance().getValueAt(row,col));
    I'm getting col and row value but when I'm using TableModel.getValue(row,col) - it is giving me null value.
    And my getValueAt() method is defined as
    public Object getValueAt( int nRow, int nCol )
         System.out.println("the nRow" nRow "And nCol " nCol "And row count" + getRowCount());
         int rowCount = getRowCount();
         System.out.println("the row count" +rowCount);
    if ( ( nRow < 0 ) || ( nRow >= getRowCount() ))
         return null;
              // Taking
              StartNewRevisedGenericSGMLFragmentsModel row = (StartNewRevisedGenericSGMLFragmentsModel) partNumberDetails.elementAt( nRow );
         //     System.out.println("row value" nRow "Col value" +nCol);
              switch ( nCol )
                   case 0:
                   return row.getParNo();                               case 1:
                        return row.getRev(); // gets model data
                   case 2:
                        return row.getDoneDate( );// gets revision data
              Vector rowVec = (Vector) partNumberDetails.get(nRow);
         return (String) rowVec.get(nCol);
    so please help me out resolving this problem.
    Thanks in advance
    purnima

    try calling jtable.getSelectionModel().addListSelectionListener(...)
    by the way, any good design of a generic UI Table must have a feature to do what you're talking about in an easy way. If it didn't, why would anyone use it?

  • How to make a report to display next 18 months of data with when user select a particular month from the filter in power pivot tabular model.

    Hi,
    i have a  dimension table  with month_key having values (201201,201202,201203.......202011,202012) and month name ( Jan 12, feb 12,......NOV 20, Dec 20)  and a fact  table with columns (month_key ,measure_types, Amount)
    My requirement is to create a power pivot report  in which when a user select a month from the filter, the report should display the (selected month+18 ) month's data against each type . when JAN 12 is selected ,the jan 2012 +18 = june 2013
    , month name should be populated with months till june 2013 only .
    i tried creating calculated column"END DATE " in the fact table with  dax expression to calculate the 18th monh from the current month  as below 
    month_key END DATE
    201201       201306    
    201202       201307      
    and thought of filtering the table with month key <= ENDDATE but it is not working as expected. could you please guide me on this ? Is there any time intelligence function that serve the purpose . Iam using  excel 2010
    ..hence could not do any calculation on the report side also. please suggest .
    Thanks in advance                                                                                                                                               

    Do you need to show the measure calculated for those 18 months as a total on 1 row, or do you need to select a single month and then display on row filters 18 distinct rows?
    The first is trivial as driezl has suggested.
    The second will require a second calendar table.
    I created this example workbook for a coworker who had a similar problem. You will have to use the disconnected table as your filter and pull your related table onto the rows.
    Finally, the easiest way to deal with the sort of date arithmetic you need to do is to restructure your date table to have a series of "Sequential" fields. These fields should be the number of units of time since the beginning of your calendar.
    For example, consider a calendar starting on January 1, 2010. For January - December 2010, [MonthSequential] = 1, 2, ..., 12. For January - December 2011, [MonthSequential] = 13, 14, ..., 24, and so on, incrementing by 1 for each sequential month in time.
    Assuming you have this set up in your date tables (one related to your model - DimDate - and one disconnected - DisconDimDate) your measure would look like this:
    18 Month Measure:=
    CALCULATE( [Measure]
    , FILTER( DimDate
    , DimDate[MonthSequential] >= MAX( DisconDimDate[MonthSequential] )
    && DimDate[MonthSequential] <= MAX( DisconDimDate[MonthSequential] ) + 18
    Please review this example along with the workbook I have linked above.

  • How to invoke an event when i select one of the items in my JComboBox

    Can any one help me for doing this,i have a combobox in a panel,when i select one item in the combobox some text fields below the combobox need to be disabled,that disabled components vary with the item selected,i try to do this by using event listener but some how i could not get invoke the event,pl some one help me for this,any help would be appreciated.
    Regards.

    The block:
    ivjJComboBox1.addMouseListener(new java.awt.event.MouseAdapter() {
    public void mouseClicked(MouseEvent e) {
    ivjJComboBox1_mouseClicked(e);
    usually should be included in your constructor or init method.
    The method:
    void ivjJComboBox1_mouseClicked(MouseEvent e){
    String s = (String)ivjJComboBox1.getSelectedItem();
    System.out.println(s);
    should be outside your constructor or init method.
    So it should be:
    public class yourClassName extends xxxxx implements xxxxx
    public yourClassName (...) {
    ivjJComboBox1.addMouseListener(new java.awt.event.MouseAdapter() {
    public void mouseClicked(MouseEvent e) {
    ivjJComboBox1_mouseClicked(e);
    void ivjJComboBox1_mouseClicked(MouseEvent e){
    String s = (String)ivjJComboBox1.getSelectedItem();
    System.out.println(s);

  • Display report directly to PDF instead of when user selects that

    Hi, We have a requirement where we want to export report directly to PDF when user runs a report. We have a Java application where parameter screen for Crystal reports is displayed. When user clicks process button after selecting parameter then a new ReportViewer window appears. Right now after running report user selects export option to export to PDF. They want to open report directly to PDF instead of opening report / selecting export option.
    We have Crystal reports saved in BOXI R2 SP3 on IIS.  We are using .NET SDK to do this.
    Thanks,

    You can export and stream directly using RAS.
    [Sample|http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/b09a5013-9e3b-2c10-41af-85f08f91c895;jsessionid=(J2EE3417700)ID0302179550DB10992550101163851332End]

  • Display the panel container when user select the specific tab in a tab set

    Hi SAP Experts,
    I've faced some problems and i would like to seek some help from the experts.
    Basically, my requirement is to display the component "panel container" which contains some data whenever a user select e.g. Tab "A" of my component Tab set. Similarly, it hides again when the user select Tab "B" and another panel container appear for it.
    I am not sure if this is achievable in Xcelsius. Experts, please advise me.
    Your help will be greatly appreciated!
    Thanks a lot!
    Feel free to clear any doubts with me
    Best regards,
    htoh

    actually, you can not do that, since you dont have a reference of the current selected tab

  • Tigger event when user change iphone time

    It is possible, we can trigger event if user change date and time of iphone.

    Did you traced ICI, if any de-register events getting published when you close IE.

  • How to capture multiple rows of ALV grid when user selected?

    Actually,It is easy to get one single line.However, my user wants select several lines of ALV grid  by condition  .  i need to process the selected lines ,so i need to put these lines into an internal table. But now, i have no idea to capture the lines.
    What method for an ALV Grid will return the lines the user has selected?
    Appreciate for your help!
    Edited by: Heyman52 on Aug 25, 2010 4:28 AM
    Edited by: Heyman52 on Aug 25, 2010 4:30 AM

    Hi,
    Once user selects multiple rows and press another button for further execution, you can modify your internal table with marked rows using selection column.
    You need to add user command code in your ALV grid call. Please refer below code.
    CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
          EXPORTING
            I_CALLBACK_PROGRAM       = SY-REPID
            I_CALLBACK_PF_STATUS_SET = 'F_GUI_STATUS'
            I_CALLBACK_USER_COMMAND  = 'F_USERCOMMAND'
            I_GRID_TITLE             = TEXT-026
            IS_LAYOUT                = WA_LAYOUT
            IT_FIELDCAT              = I_FIELDCAT
          TABLES
            T_OUTTAB                 = I_OUTTAB
          EXCEPTIONS
            PROGRAM_ERROR            = 1
            OTHERS                   = 2.
        IF SY-SUBRC NE 0.
          MESSAGE S475 DISPLAY LIKE 'E'.
          LEAVE LIST-PROCESSING.
        ENDIF.
    *- User command for details display.
        PERFORM F_USERCOMMAND USING I_UCOMM
                                    I_SELFIELD.
    FORM F_USERCOMMAND USING FP_R_UCOMM LIKE SY-UCOMM
                             FP_SELFIELD TYPE SLIS_SELFIELD.
    IF L_V_REF_GRID IS INITIAL.
        CALL FUNCTION 'GET_GLOBALS_FROM_SLVC_FULLSCR'
          IMPORTING
            E_GRID = L_V_REF_GRID.
      ENDIF.
      IF NOT L_V_REF_GRID IS INITIAL.
        CALL METHOD L_V_REF_GRID->CHECK_CHANGED_DATA.
      ENDIF.
    ENDFORM.
    You can then read your final internal table as below and take the selected records in another internal table.
    LOOP AT I_OUTTAB ASSIGNING <FS_OUTTAB> WHERE SEL EQ 'X'.
            APPEND <FS_OUTTAB> TO I_CHECK.
          ENDLOOP.
    Edited by: Archana Pawar on Aug 25, 2010 11:16 AM

  • Onchange events when transforming select lists for EXTJS integration

    Hi,
    We have the folloiwng code that transforms select lists to extjs combo boxes
      var selectfield = Ext.query('select[class!="shuttle"][class!="multiselect"]');
      for (var r = 0; r < selectfield.length; r++) {
        //If there is an onchange event then don't convert as onchange is lost
        //This is used for cascading LOVs so we need to find a way of getting this to work
        if((selectfield[r].onchange == '' || selectfield[r].onchange == null) && ((r>0 && selectfield[r-1].onchange == null) || r==0) && selectfield[r].id != 'apexir_NUM_ROWS') {
          var newselect = new Ext.form.ComboBox({
            //hiddenId: selectfield[r].id,
            //hiddenName: selectfield[r].id,
            id: selectfield[r].id,
            typeAhead: true,
            triggerAction: 'all',
            transform: selectfield[r].id,
            width: selectfield[r].clientWidth+5,
            emptyText:'Please select...',
            forceSelection: true,
            maxHeight: 200,
            disabled: selectfield[r].disabled
      }The code does not convert select boxes that have onchange events as the code above seems to suggest they get lost when transforming. Does anyone know if that is the case, and if not how I amend the code to include the onchange events from the original select lists.
    Regards
    Paul

    Hi Vee,
    Thanks for pointing it out -- here at work the only version of IE I have is 6 and I assumed (as usually is the case) it was because of a bug in that specific version. However, I have the all-powerful, (allegedly) standards-compliant IE 9 at home and it behaved exactly the same way!
    So you cannot say this is due to an old, non-supported browser. Surely it fits in the bug category then? After all events should not be triggered at random...
    Thanks also for the suggestion to fix it. I didn't try it because, in the end, I found out that if I use onchange instead of onblur (in the text field) the problem doesn't occur! onblur would be better, but onchange works fine for what I need.
    Thanks
    Luis

  • Best way to make my WDA read only when user selects from FPM toolbar

    Using FPM, we've inserted a custom web dynpro application to maintain our gate dates in PPM 5.0.
    When the user presses the Read Only button on the FPM toolbar, what's the best way to turn our fields off? Just create a new attribute in our Component Controller context node and bind it to all the screen fields?

    Hallo Robert,
    I think it is the best and easy way to realize this.

  • User exit to find sy-comm when user select a tab at item level data in VA02

    Hi Gurus,
    is there any user exit in VA02 in which we can find the command button pressed in the sale order line item data where we find sales A sales B .....and condition tab in the screen.
    rewards for sure.
    thanks

    Dear Mandy,
    How to find user exits:
    Display the program where you are searching for and exit and search for CALL CUSTOMER-EXIT
    If you know the Exit name, go to transaction CMOD.
    Choose menu Utillities->SAP Enhancements. Enter the exit name and press enter.
    You will now come to a screen that shows the function module exits for the exit.
    3. Using Project management of SAP Enhancements, we want to create a project to enahance trasnaction VA01 .
    - Go to transaction CMOD
    - Create a project called ZVA01
    - Choose the Enhancement assign radio button and press the Change button
    In the first column enter V45A0002 Predefine sold-to party in sales document. 
    Note that an enhancement can only be used in 1 project. If the enhancement is already in use, and error message will be displayed
    Press Save
    Press Components. You can now see that enhancement uses user exit EXIT_SAPMV45A_002. Double click on the exit.
    Now the function module is displayed. Double click on include ZXVVAU04 in the function module
    Insert the following code into the include: E_KUNNR = '2155'.
    Activate the include program. Go back to CMOD and activate the project. 
    Goto transaction VA01 and craete a salesorder. 
    Finding the user-exits of a SAP transaction code
    * Finding the user-exits of a SAP transaction code
    * Enter the transaction code in which you are looking for the user-exit
    * and it will list you the list of user-exits in the transaction code.
    * Also a drill down is possible which will help you to branch to SMOD.
    report zuserexit no standard page heading.
    tables : tstc, tadir, modsapt, modact, trdir, tfdir, enlfdir.
             tables : tstct.
    data : jtab like tadir occurs 0 with header line.
    data : field1(30).
    data : v_devclass like tadir-devclass.
    parameters : p_tcode like tstc-tcode obligatory.
    select single * from tstc where tcode eq p_tcode.
    if sy-subrc eq 0.
       select single * from tadir where pgmid = 'R3TR'
                        and object = 'PROG'
                        and obj_name = tstc-pgmna.
       move : tadir-devclass to v_devclass.
          if sy-subrc ne 0.
             select single * from trdir where name = tstc-pgmna.
             if trdir-subc eq 'F'.
                select single * from tfdir where pname = tstc-pgmna.
                select single * from enlfdir where funcname =
                tfdir-funcname.
                select single * from tadir where pgmid = 'R3TR'
                                   and object = 'FUGR'
                                   and obj_name eq enlfdir-area.
                move : tadir-devclass to v_devclass.
              endif.
           endif.
           select * from tadir into table jtab
                         where pgmid = 'R3TR'
                           and object = 'SMOD'
                           and devclass = v_devclass.
            select single * from tstct where sprsl eq sy-langu and
                                             tcode eq p_tcode.
            format color col_positive intensified off.
            write:/(19) 'Transaction Code - ',
                 20(20) p_tcode,
                 45(50) tstct-ttext.
                        skip.
            if not jtab[] is initial.
               write:/(95) sy-uline.
               format color col_heading intensified on.
               write:/1 sy-vline,
                      2 'Exit Name',
                     21 sy-vline ,
                     22 'Description',
                     95 sy-vline.
               write:/(95) sy-uline.
               loop at jtab.
                  select single * from modsapt
                         where sprsl = sy-langu and
                                name = jtab-obj_name.
                       format color col_normal intensified off.
                       write:/1 sy-vline,
                              2 jtab-obj_name hotspot on,
                             21 sy-vline ,
                             22 modsapt-modtext,
                             95 sy-vline.
               endloop.
               write:/(95) sy-uline.
               describe table jtab.
               skip.
               format color col_total intensified on.
               write:/ 'No of Exits:' , sy-tfill.
            else.
               format color col_negative intensified on.
               write:/(95) 'No User Exit exists'.
            endif.
          else.
              format color col_negative intensified on.
              write:/(95) 'Transaction Code Does Not Exist'.
          endif.
    at line-selection.
       get cursor field field1.
       check field1(4) eq 'JTAB'.
       set parameter id 'MON' field sy-lisel+1(10).
       call transaction 'SMOD' and skip first   screen.
    *---End of Program
    Best Regards,
    Rajesh
    <b>Please award points if found helpful.</b>

  • Trigger events when user closes a Web Form?

    Hi. Is there a way to fire code (a trigger perhaps?) when a user unexpectedly closes the entire browser window by clicking on the X in the upper, right corner of the browser?
    Or, is there a way to prevent the user from being able to close the browser window by clicking on the X?
    Any help would be great. Thanks.
    Edited by: sharpe on Jun 26, 2012 11:20 AM

    The concepts behind a running form tend to be a mystery for some. However, there is no reason to believe that any Oracle magic occurs when running an Oracle Forms application. On the client side, the running for is a standard java applet. Like any applet running in a browser, the browser uses a plug-in (the JRE in this case) to support the content (the applet). The browser creates a container on the page where the JRE can present its content or host the applet, based on the underlying html. Once the applet starts, it will be displayed in this container space on the page within the browser window. In the case of Oracle Forms, we decided it would be nice to offer an option where the form could be exposed outside of this browser space and float freely.
    So the answer to your question regarding what the "window" is called, well the browser is the "browser" and the floating window is actually a java frame which can be created in any applet. Again, no Oracle magic here. ;)
    Generally, separateFrame=true is used when more real-estate is needed or when you simply do not want to see the browser controls. That said, I often recommend against using separateFrame=true for a variety of reasons. One of the most common reasons is that if the browser window which is hosting the form is closed or if the browser navigates from the current page, the running form will terminate. Because the browser, in this case, is not doing anything obvious, end-users can easily make the mistake of thinking it is ok to navigate to a webpage using the currently shown blank page. This will cause the form to close.
    If you don't mind having the browser controls visible then using separateFrame=false is probably a better way to go. This would also allow you to use the note I mentioned in order to detect attempts to close the browser, assuming you are using Forms 10.1.2.3 or newer and JRE 1.6. To detect the closing of the "separateFrame" you likely would need to create a java bean, which may become a little more complicated than what can be described here. But remember what I mentioned above, if you use separateFrame=true and the hosting browser is closed, the form will also close. So in this case, you would have to code to detect both the applet frame closing as well as the browser window.
    There are a variety of ways in which some of the browser controls can be hidden using java script, so this can offer some help if using separateFrame=false. So this is yet another option.

  • Raising event when value for a parameter in alert monitor changes

    Hi All,
    We are using Redwood Cronacle version 7 and have connected it to SAP solution Manager System to get the central monitoring data. Now we want to raise a particular event whenever value for a specific parameter in alert monitor gets changed.
    I had a look of already present functions in JCS_MON package, but was not able to find any pre-existing function.
    Any pointers on how to achieve this...
    Thanks a lot.
    Best regards,
    Vithalprasad

    Hi Anton,
    Thanks for your reply. We want the event to be raised on one of the parameters which is coming from SAP solution Manager. This event is required to be raised every time the value of that parameter gets changed from its current value. So it is not possible to define some severity where value can be defined.
    One way can be to store the previous value in one custom table in repository and keep on checking with the present value. Once the difference is found then raise the even & replace the current value with the new value. But just want to know if there is some better solution for this.
    Thanks a lot.
    Best regards,
    Vithalprasad

  • Catch event when user add an Invoice (push the Add button)

    i have User Defined Table(@User_Table1)
    so i like too whenever user click the Add Button, beside add an invoice..it write to the @User_Table1..
    at the moment, i using Screen Painter to make the form not using the existing one like A/R Invoice for example
    thanks

    I dont know about possibility how to continue the process of adding in case, that there will be some user input like msgbox, inputbox or something else. The only way how to do it (in my oppinion) is to at the end of the code set bubbleevent to true (maybe the msgbox sets it to false).  You have 2 choices how to recevie invoice details:
    - in case of beforeaction = true receive it from active form
    - in case of beforaction = false receive number of invoice and through object get details of invoice
    Petr

Maybe you are looking for

  • How to get all previous versions page contents of a publishing page using SharePoint Client Object Model 2010

    How to get all previous versions page contents and other field values of a publishing page using SharePoint Client Object Model 2010? Thanks, Osmita

  • Check on bukrs

    hello, I am trying to implement check for the company code entered by the user.the company code entered should be a valid entry in table T001.The problem is when i enter '1' as company code then the query is not executed despite '0001' being present

  • Cover flow view in itunes

    Hello I am a new iTunes user. I love the feature that allows you to view your music arranged under their album covers. But when I am viewing the covers in iTunes it creates multiple entries of the same album if there is an additional artist performin

  • "Don't show this again" checkbox in prompt?

    All, So I have a few scripts that are designed to act on the currently open document. Some of them by nature are pretty destructive to the document because they're designed to do some crazy stuff. So, when the user runs the script, I'm currently pres

  • GG user objects (schema) on separate server?

    Dear community! Is it possible to store checkpoint tables and other GGS_* tables (if created for DDL replication) on server other than the source/target for extract/replicat processes? We are integrating with other department's system and do not want