Group in a grid pane

Are there any examples for rendering a group of objects in a GridPane so that they are positioned properly ?
        Path path = new Path();
        path.getElements().add(new MoveTo(341,21));
        path.getElements().add(new CubicCurveTo(300, 20, 300, 20, 440, 300));
        PathTransition pathTransition = new PathTransition();
        pathTransition.setDuration(Duration.valueOf(3000));Does code like this require a Group in order to work ? Actually I want to add to a Group and also position using a GridPane or something like that.
I think I have the answer. I didn't need a Group to animate. I just added individual components to a GridPane.
Thanks,
Mohan
Edited by: Mohan on Nov 8, 2011 1:30 AM

Currently CSS in JFX can't really be used for layout (or sizing). It's one of those grey areas between what is styling (which should be in the CSS) and what is layout (which should be in the FXML). I think I remember Richard once mentioning in a forum or article that he did want to add alignment stuff to the CSS at some point, but don't quote me on that. You could have a search through Kenai to see if there is a feature request for it, and if not add one.
You could maybe fake it by having the labels stretch to take up the available space in the GridPane. To do this you need to disable the max size restriction (i.e. setMaxWidth and setMaxHeight to Integer.MAX_VALUE) and ensure your GridPane constraints are such that the label will fill the cell. Once you have a stretched label the alignment will come into play as the text is aligned relative to the area of the label (as opposed to a layout manager that aligns the whole label relative to its parent). I find putting a border on the label while debugging useful to work out what is going on.
Another, more flexible but less contained alternative might be to use variables in your FXML files. You can do this in a number of ways. One is to create a bean that has all your variables on it with getters and then you can pass this to the namespace of your FXML Loader and then reference it using stuff like ${myConstants.gridAlignment}. Another is to create static methods on a class that take a node, these can then be called from the FXML using similar notation to GridPane.alignment. This second approach only works for things where you want to work on the Node directly, but for your scenario that should be ok I think. And then there's always the option to enable a scripting language in your FXML, which allows you to do most anything.
Hope that helps,
zonski

Similar Messages

  • How to digit grouping in result grid?

    Hello Community & SQL Dev team,
    Asking on behalf of my workmate :)
    ===================
    Does anyone know to enable digit grouping in result grid?
    Display: 999,999,999
    Instead off: 999999999
    ===================
    Yury

    Thanks Barry, the feature request has been submitted:
    https://apex.oracle.com/pls/apex/f?p=43135:7:10812276646823::NO:RP,7:P7_ID:36181
    Forum members: visit the link and vote for the feature if you would find it useful.
    Cheers!
    Marc

  • Multiple ALV Grid Panes in single screen

    Hi all,
    How can we get multiple ALV Grid panes in single output.
    Is it possible to get the same without using OOPS.
    Thanks in advance. 
    Eswar

    Hi,
    You can do this by creating 2 custom controls on the layout of the screen, and then you will also need to create 2 custom containers in your ABAP program, 1 for each ALV.
    Ex :
    grid  TYPE REF TO cl_gui_alv_grid,
    custom_container TYPE REF TO cl_gui_custom_container,
    grid  TYPE REF TO cl_gui_alv_grid,
    custom_container TYPE REF TO cl_gui_custom_container,
    regards,
    Advait

  • Grouping in ALV Grid Output

    Hi Experts,
    In ALV grid, need to group some of the rows, like sales order no. with line items( no repeating order nos in each row, etc)..
    ne idea ??
    Thanks,
    Bikash

    Hi,
    You can use the SORT internal table..
    Let's say you want to draw a line after the material number changes..
    DATA: T_SORT TYPE slis_t_sortinfo_alv.
    DATA: S_SORT like line of t_sort.
    S_SORT-SPOS = '1'.
    S_SORT-FIELDNAME = 'MATNR'.
    S_SORT-UP = 'X'.
    S_SORT-GROUP = '*' . " For underline.
    APPEND S_SORT TO T_SORT.
    Pass the T_SORT to the sort internal table parameter of the ALV FM..
    Hope this is what you want..
    Thanks,
    Naren

  • Partial grouping of ALV grid lines

    Hello.
    I have the following table and I want to do a partial grouping of the lines:
    Order number | Vendor | Oder line | Order quantity | Total quatity shipped | Track ID | Shipped |
    418          | ABC    | 01        | 08             | 00                    | TR007    | 08      |
    418          | ABC    | 02        | 10             | 05                    | TR008    | 05      |
    418          | ABC    | 02        | 10             | 05                    | TR009    | 05      |
    418          | ABC    | 03        | 13             | 13                    | TR010    | 13      |
    Now, if the first three column values of a line are equal, then the equal lines should be partially grouped. In this sample line 2 and 3 are equal, so the result of the grouping should look like this:
    Order number | Vendor | Oder line | Order quantity | Total quatity shipped | Track ID | Shipped |
    418          | ABC    | 01        | 08             | 00                    | TR007    | 08      |
                 |        |           |                |                       | TR008    | 05      |
    418          | ABC    | 02        | 10             | 10                    ----------------------
                 |        |           |                |                       | TR009    | 05      |
    418          | ABC    | 03        | 13             | 13                    | TR010    | 13      |
    I've already tried to sort the columns, but then I get the following and this is not what I need:
    Order number | Vendor | Oder line | Order quantity | Total quatity shipped | Track ID | Shipped |
    418          | ABC    | 01        | 08             | 00                    | TR007    | 08      |
                 |        ---------------------------------------------------------------------------
                 |        | 02        | 10             | 05                    | TR008    | 05      |
                 |        |           ---------------------------------------------------------------
                 |        |           | 10             | 05                    | TR009    | 05      |
                 |        ---------------------------------------------------------------------------
                 |        | 03        | 13             | 13                    | TR010    | 13      |
    Can someone help me to solve this problem?
    Regards,
    Benjamin

    Hi Selva
    Normally my alv output like this
      Deisp date Packing Material Noof packing
       18/15/2010   hdp                 5
       18/05/2010    pail                10
       20/052010     hdp                25
    I need tha alv out pu like this
         Dispatch date  18/05/2010
                            hdp           5
                            pail           10
         Dispatch date 20/05/2010
                           hdp          25

  • Not getting alerts even after applied the monitoring policy on user defined group.

    Hi,
    recently we have installed OEM Ops center 12c for monitoring our oracle servers. I have created a user defined group and applied a userdefined monitoring policy on that group. I have threshold  70% as crtical and 50 % as warning in my monitoring policy.
    Some of my servers are having 77% disk utlization and im not getting any alerts for that.
    What will be the problem?
    When i see the membership of particular group (group -> membership in center pane), im not able to see the monitoring policy name on the monitoring policy column but i have applied policy on that group.
    Please help me to resolve the issue.
    Thanks,
    Veijar

    Hi Stijn,
    Thanks for the response.
    You are right. I was sending personalized iBot to group 'Financial Analyst'. A non-OBI user(Reshmi) belongs to this group.
    But still problem has not been completely resolved.Still users in group either Administrator/Financial Analyst not getting alert via mail.
    Atleast the users in Administrator group should get alert via mail, since both are defined in rpd.
    Now when i send non-personalized ibot to group 'Financial Analyst', All the users other than Reshmi get alert on their dashboard but they don't get alert
    via mail.Also Reshmi does not get alert via mail and error file shows error like -
    No devices for user: Reshmi.
    Now i am not getting the error nQSError: 43001 Authentication failed for Reshmil in repository Star: invalid user/password. (08004)
    which i was getting earlier while sending personalized ibot.
    I have already defined the Mail tab contents using Job Manager. Also i have selected User Destinations both Interactive Dashboard and Active Delivery
    Profile.
    Why the users don't get alert via mail? What could be the problem?

  • Problem in Grouping the ALV output

    Hi Experts
    I want to group the ALV Grid output Division wise
    for that I have written following code
      wa_sort-spos = '1'.
      wa_sort-fieldname = 'REGIOAREA' .
      wa_sort-tabname = 'IT_FINAL' .
      wa_sort-up = 'X'.
      wa_sort-group = '*'.
      wa_sort-subtot = 'X'.
      APPEND wa_sort TO it_sort .
      CLEAR  wa_sort.
    I m passing it_sort table in the FM for sorting but output is not getting grouped can you please
    tell me what is the problem ?
    How to group the report ?
    Helpful answers will be highly rewarded
    Regards
    Bikas

    Hi ,
           I also have the similar way coded .
      DATA: s_sort TYPE slis_sortinfo_alv.
      CLEAR s_sort.
      s_sort-fieldname = rv_fieldname.
      s_sort-spos = rv_spos.
      s_sort-up = c_x.
      s_sort-group   = c_underline.
      APPEND s_sort TO rt_sort.
      CLEAR  s_sort.
    I don't have a subtotal for that fiels .
    It works for me .

  • Move JS Grid control Pivoted grid to Left side

    Hi Everyone,
    i have implemented JS Grid in my custom application page to display SharePoint list data in tabular fashion and i have enabled the Pivoted grid pane,by default the pivoted grid pane will be displayed on the right
    side but my requirement is to display the  pivoted grid pane on the left side as shown below.

    There are not so many information explaining how to customize JS Grid control,can someone guide me on this.

  • Oracle user writing to ASM disks owned by grid

    Version:11gR2
    OS: Solaris, AIX, LINUX
    When Grid infrastructure is owned by grid user, the permissions should be like
    # chown grid:asmadmin /dev/rdsk/cxtydzs4
    # chmod 660 /dev/rdsk/cxtydzs4But, how does oracle user which belongs to dba group manage to write to these disks ?

    Hi,
    If the device names are the same on all nodes, then enter commands similar to the following on all nodes to change the owner, group, and permissions on the character raw device files for the disk devices where grid is the Oracle Grid
    Infrastructure installation owner, and asmadmin is the OSASM group
    example
    # chown grid:asmadmin /dev/rhdiskn
    # chmod 660 /dev/rhdiskn
    see this link
    http://download.oracle.com/docs/cd/E11882_01/install.112/e17210.pdf

  • How to properly resize a group

    I have following problem:
    To fit a group properly into a pane I want to resize it. Currently, I use setScale.. . The size changes, however the bounds remain the same.
    What is the correct way to achieve that?
    import javafx.application.Application;
    import javafx.scene.Group;
    import javafx.scene.Scene;
    import javafx.scene.control.Button;
    import javafx.scene.control.TitledPane;
    import javafx.scene.layout.HBox;
    import javafx.scene.layout.StackPane;
    import javafx.scene.layout.VBox;
    import javafx.scene.paint.Color;
    import javafx.scene.shape.Circle;
    import javafx.stage.Stage;
    public class JavaFXApplication1 extends Application {
        @Override
        public void start(Stage primaryStage) {
            HBox root = new HBox();
            VBox left = new VBox();
            root.getChildren().add(left);
            //create a titled pane with the max width of 100
            TitledPane tp = new TitledPane();       
            tp.setPrefWidth(100);
         tp.setMaxWidth(100);
         tp.setText("Notification");
         tp.setCollapsible(false);
            left.getChildren().add(tp);
            StackPane stackPane = new StackPane();
         stackPane.setPrefHeight(180);
         stackPane.setPrefWidth(100);
         stackPane.setMaxWidth(100);
         tp.setContent(stackPane);
           //just a second node beneth the Titled Pane  
            root.getChildren().add(new Button("Test"));
           // now create a larger circle, scale it down
           // and add it to the stackpane within the titdled pane
           Group gnote = new Group();       
           Circle cleft = new Circle(100,Color.GOLDENROD);
           gnote.getChildren().add(cleft);
           gnote.setScaleX(0.5);
           gnote.setScaleY(0.5);             
           stackPane.getChildren().add(gnote);
            Scene scene = new Scene(root, 300, 250);       
            primaryStage.setTitle("Hello World!");
            primaryStage.setScene(scene);
            primaryStage.show();
        }Edited by: skauf on 17.01.2013 07:29

    Note to myself:
    Put the scaling group into another group. This was too obvious.

  • Formatted Search on Add On Grid

    Hi,
    I am trying to create a formatted search on a add-on grid but can not seem to execute it.
    I need to retrieve a UDF from ODLN onto a field on the same grid.
    The information I get from system information is:
    [From=NBS_FindCC Item=Grid Pane =0 Column=DocNum Row=0 Variable=2 # 000004415,Docnum]
    I have tried:
    Select U_FREIGHT From ODLN where ODLN.DocNum = $[NBS_FindCC.Docnum.0]
    Select U_FREIGHT From ODLN where ODLN.DocNum = $[$NBS_FindCC.Docnum.0]
    Select U_FREIGHT From ODLN where ODLN.DocNum = $[Grid.Docnum.0]
    I also believe the docnum is generated using a script directly from ODLN and not from a source UDT.
    Your quick response will be much appreciated.
    Thanks
    Jacques

    Hi Gordon,
    This is a grid being populated only by only documents and I don't believe the information is stored in a UDT but only extracted from ODLN using Select Queries.
    I thought about using a UDT but could not trace any UDT with this information in and this why I am assuming select queries are being used.
    Regards,
    Jacques

  • To update an alv grid..

    Hello everyone,
    I have a requirement.
      update button in selection-screen.
    I have an alv grid display and I have to maintain last 2 fields in editable mode in the output and the user will enter the values after executing the report in the output screen and will save it.
    and when he will select  display radiobutton in the selection-screen ,,
    the entries which he entered above has to display ,,( all the entries should display in the output ).
    is it possible ? if yes, then let me know the procedure.
    will be rewarded..

    Hi,
           yes it is possible 
    all u need to do is call a new alv with same funtion modules and pass the updated internal table to these function modules
    i have the same req for 'SAVE' button in menu , u just change it by your radio button in the sample code below
    type-pools : slis.
    types : begin of t_mat,
            matnr type matnr,
            werks type werks_d,
            lgort type lgort_d,
            labst type labst,
            meins type meins,
            maktx type maktx,
            name1 type name1,
            lgobe type lgobe,
            msehl type msehl,
            v_lights type c,
            v_row type c length 4,     "FOR ROW COLOR
            v_col type slis_t_specialcol_alv,
            end of t_mat,
            begin of t_makt,
            matnr type matnr,
            maktx type maktx,
            end of t_makt,
            begin of t_marc,
            matnr type matnr,
            werks type werks_d,
            end of t_marc,
            begin of t_mard,
            matnr type matnr,
            werks type werks_d,
            lgort type lgort_d,
            labst type labst,
            end of t_mard,
            begin of t_t001l,
            werks type werks_d,
            lgort type lgort_d,
            lgobe type lgobe,
            end of t_t001l,
            begin of t_t001w,
            werks type werks_d,
            name1 type name1,
            end of t_t001w.
    types : begin of wa_mat,
            werks type werks,
            end of wa_mat.
    data : flag type i value 0.
    ******VARIABLE DECLARATION********
    data:v_prog_name type sy-repid,      "VARIABLE FOR PROG NAME
         v_grid_title type lvc_title. "VARIABLE FOR GRID TITLE
    *****INTERNAL TABLE DECLARATION***
    data:  it_mat type standard table of t_mat,
           it_marc type standard table of t_marc,
           it_mard type standard table of t_mard,
           it_t001l type standard table of t_t001l,
           it_t001w type standard table of t_t001w,
           it_makt type standard table of t_makt,
           it_fieldcat  type slis_t_fieldcat_alv,
           it_sortinfo   type slis_t_sortinfo_alv,
           it_eventcat   type slis_t_event,
           it_listheader type slis_t_listheader,
           t_color type slis_specialcol_alv.
    data : it_werks type standard table of wa_mat.
    *****WORK AREA DECLARATION*********
    data:  wa_mat type t_mat,
           wa_mard type t_mard,
           wa_t001l type t_t001l,
           wa_t001w type t_t001w,
           wa_makt type t_makt,
           wa_layout type slis_layout_alv.
    data : wa_werks type wa_mat.
    data : wa_variant1          like disvariant,
           wa_variant2          like disvariant.
               Selection-Screen                        *
    selection-screen begin of block plant with frame title text-001.
    select-options:  s_plant for wa_mat-werks,
                     s_stor for wa_mat-lgort.
    parameters     : p_var like disvariant-variant.
    selection-screen end of block plant.
    selection-screen begin of block output with frame title text-002.
    parameter:  p_rb_01 radiobutton group rd1 default 'X',  " list
                p_rb_02 radiobutton group rd1.              " grid
    selection-screen end of block output.
                   Initialization                      *
    perform zf_initialization.
                 At Selection Screen                   *
    at selection-screen on value-request for p_var.
      wa_variant1-report = sy-repid.
      call function 'REUSE_ALV_VARIANT_F4'
        exporting
          is_variant                = wa_variant1
      I_TABNAME_HEADER          =
      I_TABNAME_ITEM            =
      IT_DEFAULT_FIELDCAT       =
         i_save                    = 'A'
       i_display_via_grid        = 'X'
    importing
        e_exit                    = v_exit
         es_variant                = wa_variant2
       exceptions
         not_found                 = 1
         program_error             = 2
         others                    = 3
      if sy-subrc = 0.
        p_var = wa_variant2-variant.
      else.
        clear wa_variant2.
      endif.
    at selection-screen.
      perform zf_validate_sel_screen.
                Start of Selection                     *
    start-of-selection.
      perform zf_get_data.
              End of Selection                         *
    end-of-selection.
      perform zf_display_data.
    *&      Form  zf_initialization
      This will intialize all the variables, work area & subroutines
    -->  p1        text
    <--  p2        text
    form zf_initialization .
      clear :   wa_mat,
                wa_mard,
                wa_t001l,
                wa_t001w,
                wa_makt,
                wa_layout.
      refresh : it_mat,
                it_marc,
                it_mard,
                it_t001l,
                it_t001w,
                it_makt,
                it_fieldcat,
                it_sortinfo,
                it_eventcat,
                it_listheader.
      v_prog_name = sy-repid.
      wa_variant2-report = sy-repid.
      call function 'REUSE_ALV_VARIANT_DEFAULT_GET'
        exporting
          i_save        = 'A'
        changing
          cs_variant    = wa_variant2
        exceptions
          wrong_input   = 1
          not_found     = 2
          program_error = 3
          others        = 4.
      if sy-subrc = 0.
        p_var = wa_variant2-variant.
      else.
        p_var = '/DEFAULT'.
      endif.
    endform.                    " zf_initialization
    *&      Form  zf_validate_sel_screen
      This is to validate the inputs on the selction screen
    -->  p1        text
    <--  p2        text
    form zf_validate_sel_screen .
      if not p_var is initial.
        wa_variant1-report = sy-repid.
        wa_variant1-variant = p_var.
        call function 'REUSE_ALV_VARIANT_EXISTENCE'
          exporting
            i_save        = 'A'
          changing
            cs_variant    = wa_variant1
          exceptions
            wrong_input   = 1
            not_found     = 2
            program_error = 3
            others        = 4.
        if sy-subrc = 0.
          clear wa_variant2.
          move p_var to wa_variant2-variant.
          move sy-repid to wa_variant2-report.
        else.
          message e006. "No such variant exists
        endif.
      else.
        clear wa_variant1.
      endif.
      select werks from marc into wa_mat-werks where werks in s_plant.
        exit.
      endselect.
      if sy-subrc <> 0.
        message e002.
        clear wa_mat.
      endif.
      select lgort from mard into wa_mat-lgort where lgort in s_stor.
        exit.
      endselect.
      if sy-subrc <> 0.
        message e003.
        clear wa_mat.
      endif.
    endform.                    " zf_validate_sel_screen
    *&      Form  zf_get_data
      This will fetch data from the database tables & finally merge them
         into a single internal table, to pass it to alv
    -->  p1        text
    <--  p2        text
    form zf_get_data .
      select matnr werks into table it_marc from marc where werks in s_plant
      if sy-subrc = 0.
        sort it_marc by matnr werks.
      endif.
      if it_marc[] is not initial.
        select matnr maktx into table it_makt from makt
                          for all entries in it_marc
                          where matnr = it_marc-matnr
                            and spras = sy-langu.
        if sy-subrc = 0.
          sort it_makt by matnr.
        endif.
        select matnr werks lgort labst into table it_mard from mard
                                       for all entries in it_marc
                                       where matnr = it_marc-matnr
                                             and werks = it_marc-werks
                                             and lgort in s_stor.
        if sy-subrc = 0.
          sort it_mard by matnr werks lgort.
        endif.
        select werks name1 into table it_t001w from t001w
                           for all entries in it_marc
                           where werks = it_marc-werks.
        if sy-subrc = 0.
          sort it_t001w by werks.
        endif.
      endif.
      if it_mard[] is not initial.
        select werks lgort lgobe into table it_t001l from t001l
                                 for all entries in it_mard
                                 where werks = it_mard-werks
                                   and lgort = it_mard-lgort.
        if sy-subrc = 0.
          sort it_t001l by werks lgort.
        endif.
      endif.
      clear : wa_mat,
              wa_mard,
              wa_t001l,
              wa_t001w,
              wa_makt.
      loop at it_mard into wa_mard.
        wa_mat-matnr = wa_mard-matnr.
        wa_mat-werks = wa_mard-werks.
        wa_mat-lgort = wa_mard-lgort.
        wa_mat-labst = wa_mard-labst.
        read table it_makt into wa_makt with key matnr = wa_mard-matnr
    binary search.
        if sy-subrc = 0.
          wa_mat-maktx = wa_makt-maktx.
        endif.
        read table it_t001l into wa_t001l with key werks = wa_mard-werks
    lgort = wa_mard-lgort binary search.
        if sy-subrc = 0.
          wa_mat-lgobe = wa_t001l-lgobe.
        endif.
        read table it_t001w into wa_t001w with key werks = wa_mard-werks
    binary search.
        if sy-subrc = 0.
          wa_mat-name1 = wa_t001w-name1.
        endif.
        append wa_mat to it_mat.
      endloop.
      sort it_mat by matnr werks lgort.
      loop at it_mat into wa_mat.
        clear t_color.
        if wa_mat-labst < 100.
          wa_mat-v_lights = '1'.
          t_color-fieldname = 'LABST'.
          t_color-color-col = 6.
          append t_color to wa_mat-v_col.
          wa_mat-v_row = 'C610'.
          modify it_mat from wa_mat.
        elseif wa_mat-labst < 1000.
          wa_mat-v_lights = '2'.
          t_color-fieldname = 'LABST'.
          t_color-color-col = 3.
          append t_color to wa_mat-v_col.
          wa_mat-v_row = 'C510'.
          modify it_mat from wa_mat.
        else.
          wa_mat-v_lights = '3'.
          t_color-fieldname = 'LABST'.
          t_color-color-col = 5.
          append t_color to wa_mat-v_col.
          wa_mat-v_row = 'C210'.
          modify it_mat from wa_mat.
        endif.
        clear wa_mat.
      endloop.
    endform.                    " zf_get_data
    *&      Form  zf_display_data
    -->  p1        text
    <--  p2        text
    form zf_display_data .
    *If Internal Table Is Populated Then Only Display Alv Report.
      if not it_mat[] is initial.
    &---Prepare fieldcatalog .
        perform zf_build_fieldcat using it_fieldcat.
    &---Build event catalog.
        perform zf_eventcat using it_eventcat.
    &---Build Listheader for TOP OF PAGE EVENT.
        perform zf_build_listheader using it_listheader.
    &---Build layout.
        perform zf_layout.
    &---Build sorting.
        perform zf_sorting using it_sortinfo.
    &---Initializating Grid Title
        perform zf_build_grid_title.
    IF GRID RADIO button (ALV GRID) IS selected .
        if p_rb_02 is not initial.
    DISPLAY ALV GRID.
          perform zf_display_alv_grid.
        else.
    DISPLAY ALV LIST.
          perform zf_display_alv_list.
        endif.
      else.
    *&---If Table is not Populated ie Records Does not exist
        message s001.
      endif.
    endform.                    " zf_display_data
    *&      Form  ZF_BUILD_FIELDCAT
          text
         -->P_IT_FIELDCAT  text
    form zf_build_fieldcat  using    p_it_fieldcat type slis_t_fieldcat_alv.
    *Declaring Local Variable
      data: l_fieldcat type slis_fieldcat_alv.
      clear l_fieldcat.
    for First field
      l_fieldcat-col_pos     = '1'.          "POSITION OF THE COLUMN.
      l_fieldcat-fieldname   = 'WERKS'.      "FIELD FOR WHICH CATALOG
      l_fieldcat-tabname     = 'IT_MAT'.     "NAME OF INTERNAL TABLE
      l_fieldcat-ref_tabname = 'MARC'.       "FOR F1 & F4 HELP AS REFERNCED
      l_fieldcat-key         = 'X'.          "MAKING FIELD AS KEY FIELD
      l_fieldcat-outputlen   =  4.           "SET THE OUTPUT LENGTH.
      l_fieldcat-seltext_l   = text-003.  "Long text for header.
      l_fieldcat-seltext_m   = text-003.    "Medium text for header.
      l_fieldcat-seltext_s   = text-003.           "Short text for header.
      append l_fieldcat to p_it_fieldcat.
      clear l_fieldcat.
    for Second field
      l_fieldcat-col_pos     = '2'.          "POSITION OF THE COLUMN.
      l_fieldcat-fieldname   = 'LGORT'.      "FIELD FOR WHICH CATALOG
      l_fieldcat-tabname     = 'IT_MAT'.     "NAME OF INTERNAL TABLE
      l_fieldcat-ref_tabname = 'MARD'.       "FOR F1 & F4 HELP AS REFERNCED
      l_fieldcat-key         = 'X'.          "MAKING FIELD AS KEY FIELD
      l_fieldcat-outputlen   =  4.           "SET THE OUTPUT LENGTH.
      l_fieldcat-seltext_l   = text-004.  "Long text for header.
      l_fieldcat-seltext_m   = text-005.    "Medium text for header.
      l_fieldcat-seltext_s   = text-006.           "Short text for header.
      append l_fieldcat to p_it_fieldcat.
      clear l_fieldcat.
    for third field
      l_fieldcat-col_pos     = '3'.          "POSITION OF THE COLUMN.
      l_fieldcat-fieldname   = 'MATNR'.      "FIELD FOR WHICH CATALOG
      l_fieldcat-tabname     = 'IT_MAT'.     "NAME OF INTERNAL TABLE
      l_fieldcat-ref_tabname = 'MARA'.       "FOR F1 & F4 HELP AS REFERNCED
    l_fieldcat-key         = 'X'.          "MAKING FIELD AS KEY FIELD
      l_fieldcat-outputlen   =  18.           "SET THE OUTPUT LENGTH.
      l_fieldcat-seltext_l   = text-007.  "Long text for header.
      l_fieldcat-seltext_m   = text-008.    "Medium text for header.
      l_fieldcat-seltext_s   = text-009.           "Short text for header.
      append l_fieldcat to p_it_fieldcat.
      clear l_fieldcat.
    for fourth field
      l_fieldcat-col_pos     = '4'.          "POSITION OF THE COLUMN.
      l_fieldcat-fieldname   = 'LABST'.      "FIELD FOR WHICH CATALOG
      l_fieldcat-tabname     = 'IT_MAT'.     "NAME OF INTERNAL TABLE
      l_fieldcat-ref_tabname = 'MARD'.       "FOR F1 & F4 HELP AS REFERNCED
      l_fieldcat-outputlen   =  16.           "SET THE OUTPUT LENGTH.
      l_fieldcat-seltext_l   = text-010.  "Long text for header.
      l_fieldcat-seltext_m   = text-011.    "Medium text for header.
      l_fieldcat-seltext_s   = text-012.           "Short text for header.
      l_fieldcat-do_sum = 'X'.
      l_fieldcat-input       = 'X'.          "Making the field editable
      l_fieldcat-edit        = 'X'.
      append l_fieldcat to p_it_fieldcat.
      clear l_fieldcat.
    endform.                    " ZF_BUILD_FIELDCAT
    *&      Form  zf_eventcat
          text
         -->P_IT_EVENTCAT  text
    form zf_eventcat  using    p_it_eventcat type slis_t_event.
      data l_eventcat type slis_alv_event.
      clear l_eventcat.
    *Get all the events.
      call function 'REUSE_ALV_EVENTS_GET'
        exporting
          i_list_type     = 0
        importing
          et_events       = p_it_eventcat
        exceptions
          list_type_wrong = 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.
    TOP-OF-PAGE FORM
      clear l_eventcat.
      read table p_it_eventcat into l_eventcat with key
                              name = slis_ev_top_of_page.
      if sy-subrc = 0.
        move 'ZF_TOP_OF_PAGE' to l_eventcat-form.
        modify p_it_eventcat from l_eventcat index sy-tabix
                                             transporting form.
      endif.
    PF_STATUS_SET FORM
      clear l_eventcat.
      read table p_it_eventcat into l_eventcat with key
                              name = slis_ev_pf_status_set.
      if sy-subrc = 0.
        move 'ZF_PF_STATUS_SET' to l_eventcat-form.
        modify p_it_eventcat from l_eventcat index sy-tabix
                                          transporting form.
      endif.
    USER_COMMAND FORM
      clear l_eventcat.
      read table p_it_eventcat into  l_eventcat with key
                               name = slis_ev_user_command.
      if sy-subrc = 0.
        move 'ZF_USER_COMMAND' to  l_eventcat-form.
        modify p_it_eventcat from l_eventcat index sy-tabix
                                          transporting form.
      endif.
    endform.                    " zf_eventcat
    *&      Form  ZF_BUILD_LISTHEADER
          text
         -->P_IT_LISTHEADER  text
    form zf_build_listheader  using  p_it_listheader type slis_t_listheader.
      data: l_listheader type slis_listheader.
      refresh p_it_listheader.
      clear l_listheader.
      l_listheader-typ = 'H'.   "Header
    l_listheader-key = 'FCIL,INDIA'. "Ignored for "Header" Type
      l_listheader-info = text-013.
      append l_listheader to p_it_listheader.
      clear l_listheader.
      data : lv_date(10) type c .
      write sy-datum to lv_date .
      l_listheader-typ = 'S'.
      l_listheader-key = 'DATE'.
      l_listheader-info = lv_date.
      append l_listheader to p_it_listheader.
      clear l_listheader.
      l_listheader-typ = 'A'.
    l_listheader-key = 'COMMENT'.    " key is ignored
      l_listheader-info = text-014.
      append l_listheader to p_it_listheader.
      clear l_listheader.
      l_listheader-typ = 'S'.
      l_listheader-key = text-016.
    l_listheader-info = 'Input Plant'.
      append l_listheader to p_it_listheader.
      clear l_listheader.
      l_listheader-typ = 'S'.
      l_listheader-key = text-017.
    l_listheader-info = 'Plant'.
      append l_listheader to p_it_listheader.
      select werks from marc into  table it_werks where werks in s_plant.
      sort it_werks by werks.
      delete adjacent duplicates from it_werks comparing werks.
      loop at it_werks into wa_werks.
        clear l_listheader.
        l_listheader-typ = 'S'.
       l_listheader-key = 'X'.
        l_listheader-info = wa_werks-werks.
        append l_listheader to p_it_listheader.
      endloop.
    endform.                    " ZF_BUILD_LISTHEADER
    *&      Form  ZF_LAYOUT
          text
    -->  p1        text
    <--  p2        text
    form zf_layout .
      clear wa_layout.
      wa_layout-zebra = 'X'.
      wa_layout-lights_fieldname = 'V_LIGHTS'.
      wa_layout-lights_tabname   = 'IT_MAT'.
      wa_layout-info_fieldname = 'V_ROW'. " infofield for listoutput
      wa_layout-coltab_fieldname = 'V_COL'. " colors
    endform.                    " ZF_LAYOUT
    *&      Form  ZF_SORTING
          text
         -->P_IT_SORTINFO  text
    form zf_sorting  using    p_it_sortinfo type slis_t_sortinfo_alv.
      data l_sortinfo type slis_sortinfo_alv.
      clear l_sortinfo.
      l_sortinfo-spos = '1'.
      l_sortinfo-fieldname = 'WERKS'.
      l_sortinfo-tabname = 'IT_MAT'.
      l_sortinfo-up = 'X'.
      l_sortinfo-group = 'UL'.              "UNDERLINE AFTER EVERY GROUP
      l_sortinfo-subtot = 'X'.
      append l_sortinfo to p_it_sortinfo.
    endform.                    " ZF_SORTING
    *&      Form  ZF_BUILD_GRID_TITLE
          text
    -->  p1        text
    <--  p2        text
    form zf_build_grid_title .
      v_grid_title = text-015.
    endform.                    " ZF_BUILD_GRID_TITLE
    *&      Form  ZF_DISPLAY_ALV_GRID
          text
    -->  p1        text
    <--  p2        text
    form zf_display_alv_grid .
      call function 'REUSE_ALV_GRID_DISPLAY'
       exporting
      I_INTERFACE_CHECK                 = ' '
      I_BYPASSING_BUFFER                = ' '
      I_BUFFER_ACTIVE                   = ' '
         i_callback_program                = v_prog_name
       i_callback_pf_status_set          = 'ZF_PF_STATUS_SET'
       i_callback_user_command           = 'ZF_USER_COMMAND'
       i_callback_top_of_page            = 'ZF_TOP_OF_PAGE'
      I_CALLBACK_HTML_TOP_OF_PAGE       = ' '
      I_CALLBACK_HTML_END_OF_LIST       = ' '
      I_STRUCTURE_NAME                  =
      I_BACKGROUND_ID                   = ' '
         i_grid_title                      = v_grid_title
      I_GRID_SETTINGS                   =
         is_layout                         = wa_layout
         it_fieldcat                       = it_fieldcat
      IT_EXCLUDING                      =
      IT_SPECIAL_GROUPS                 =
       it_sort                           = it_sortinfo
      IT_FILTER                         =
      IS_SEL_HIDE                       =
      I_DEFAULT                         = 'X'
       i_save                            = 'A'
       is_variant                        = wa_variant2
       it_events                         = it_eventcat
      IT_EVENT_EXIT                     =
      IS_PRINT                          =
      IS_REPREP_ID                      =
      I_SCREEN_START_COLUMN             = 0
      I_SCREEN_START_LINE               = 0
      I_SCREEN_END_COLUMN               = 0
      I_SCREEN_END_LINE                 = 0
      IT_ALV_GRAPHICS                   =
      IT_HYPERLINK                      =
      IT_ADD_FIELDCAT                   =
      IT_EXCEPT_QINFO                   =
      I_HTML_HEIGHT_TOP                 =
      I_HTML_HEIGHT_END                 =
    IMPORTING
      E_EXIT_CAUSED_BY_CALLER           =
      ES_EXIT_CAUSED_BY_USER            =
        tables
          t_outtab                          = it_mat
    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.                    " ZF_DISPLAY_ALV_GRID
    *&      Form  zf_display_alv_list
          text
    -->  p1        text
    <--  p2        text
    form zf_display_alv_list .
      call function 'REUSE_ALV_LIST_DISPLAY'
       exporting
      I_INTERFACE_CHECK              = ' '
      I_BYPASSING_BUFFER             =
      I_BUFFER_ACTIVE                = ' '
         i_callback_program             = v_prog_name
       i_callback_pf_status_set       = 'ZF_PF_STATUS_SET'
       i_callback_user_command        = 'ZF_USER_COMMAND'
      I_STRUCTURE_NAME               =
         is_layout                      = wa_layout
         it_fieldcat                    = it_fieldcat
      IT_EXCLUDING                   =
      IT_SPECIAL_GROUPS              =
       it_sort                        = it_sortinfo
      IT_FILTER                      =
      IS_SEL_HIDE                    =
      I_DEFAULT                      = 'X'
      I_SAVE                         = 'A'
      IS_VARIANT                     = WA_VARIANT2
       it_events                      = it_eventcat
      IT_EVENT_EXIT                  =
      IS_PRINT                       =
      IS_REPREP_ID                   =
      I_SCREEN_START_COLUMN          = 0
      I_SCREEN_START_LINE            = 0
      I_SCREEN_END_COLUMN            = 0
      I_SCREEN_END_LINE              = 0
    IMPORTING
      E_EXIT_CAUSED_BY_CALLER        =
      ES_EXIT_CAUSED_BY_USER         =
        tables
          t_outtab                       = it_mat
       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.                    " zf_display_alv_list
    *&      Form  zf_top_of_page
          text
    -->  p1        text
    <--  p2        text
    form zf_top_of_page .
      call function 'REUSE_ALV_COMMENTARY_WRITE'
        exporting
          it_list_commentary       = it_listheader
         i_logo                   = 'ENJOYSAP_LOGO'
      I_END_OF_LIST_GRID       =
    endform.                    " zf_top_of_page
    *&      Form  zf_pf_status_set
          text
    -->  p1        text
    <--  p2        text
    form zf_pf_status_set using rt_extab type slis_t_extab.
      set pf-status  'ALV_MENU_MAT' excluding  'BACK'.
      case sy-ucomm.
        when 'SAVE'.
    IF flag <> 0.
          set pf-status  'ALV_MENU_MAT' .
    ENDIF.
      endcase.
    endform.                    " zf_pf_status_set
    *&      Form  zf_user_command
          text
    -->  p1        text
    <--  p2        text
    form zf_user_command using r_ucomm like sy-ucomm
                            rs_selfield type slis_selfield.
    sy-ucomm = r_ucomm.
      case r_ucomm.
        when 'SAVE'.
          flag = flag + 1.
          read table it_mat index rs_selfield-tabindex into wa_mat.
          wa_mat-labst = rs_selfield-value.
          if rs_selfield-value < 100.
            wa_mat-v_lights = '1'.
            t_color-fieldname = 'LABST'.
            t_color-color-col = 6.
            wa_mat-v_row = 'C610'.
            clear wa_mat-v_col.
            append t_color to wa_mat-v_col.
          elseif rs_selfield-value < 1000.
            wa_mat-v_lights = '2'.
            t_color-fieldname = 'LABST'.
            t_color-color-col = 3.
            wa_mat-v_row = 'C510'.
            clear wa_mat-v_col.
            append t_color to wa_mat-v_col.
          else.
            wa_mat-v_lights = '3'.
            t_color-fieldname = 'LABST'.
            t_color-color-col = 5.
            wa_mat-v_row = 'C210'.
            clear wa_mat-v_col.
            append t_color to wa_mat-v_col.
          endif.
          modify it_mat from wa_mat index rs_selfield-tabindex.
    IF GRID RADIO button (ALV GRID) IS selected .
          if p_rb_02 is not initial.
           SET PF-STATUS  'ALV_MENU_MAT'.
    DISPLAY ALV GRID.
            perform zf_display_alv_grid.
          else.
           SET PF-STATUS  'ALV_MENU_MAT'.
    DISPLAY ALV LIST.
            perform zf_display_alv_list.
          endif.
          set screen 0.
        when 'BACK'.
          leave screen.
        when others.
          message i004.
      endcase.
       WHEN 'BACK'.
    CASE sy-ucomm.
       WHEN 'BACK'.
         LEAVE SCREEN.
    ENDCASE.
    endform.                    " zf_user_command
    reward points if helpful

  • Open enclosing group when selecting a layer?

    Hello,
    In Photoshop when I cmd+click a layer the enclosing group is opened and the clicked layer is highlighted.
    However, in Fireworks the group does not get opened, but just highlighted.
    Here is what happens in Photoshop:
    http://i.imgur.com/vMnQOMS.gif
    Is it possible to achieve the same behaviour in Fireworks?
    Thanks,
    Rossen

    If your mouse is more closely related to an object than a group, in the canvas, that's what gets selected.
    You are clicking directly on an object, so of course that's what gets selected.  That's what should be selected.  Select outside those objects and you'll probably get the group.  But there are other groups there, also.  Motion isn't psychic.  No app is.
    Select the group in the layers pane, very simple.

  • Run Singlular Database Control and Grid Control Agents at the same time????

    Hello,
    I have walked into a new job where one of my 1st tasks is installing and configuring EM Grid Control version 10.2.0.3. Most of the individual databases already have singular EM/Database Control also set up for basic monitoring - some are 10.2.0.1 databases; some are 9.2.0.7 databases.
    Can I continue to run the existing singular EM Database Controls for monitoring and managing the databases while I am getting connected, the new agents up and running, and the Grid Control templates and alerts and notification fully set up?
    Or will I have to shut down those agents fully prior to installing the new 10.2.0.3 agents???
    I am hoping so since they use different communication ports of 1158 for the singular Database Controls versus 4889 for Enterprise Wide Grid Control.
    Thanks for any help in clarifying this.
    KL

    OK, so as long as I keep the homes separate & straight, I could conceivably allow them both (Database Control and Grid Control Agent) to run AND be used at the same time - even when using secured grid control (https), correct? Just have the separate homes for separate agents and use separate ports for the different consoles?
    Of course I might still run into an issue with this, ass I am also in the process of securing Grid Control... The current Database Console used by the app users to monitor is NOT an https url...
    The real reason for this is because some app users are used to using the EM Database Control for application monitoring. I would like to not take that away from them while I am in the process of setting up all of the users, roles, alerts, groups, etc. on Grid Control.

  • Split pane

    I have a split pane with 2 grid panes. One of them toggles based on other properties. If this toggle pane hides then the visible pane should occupy the entire split pane.
    I used managed property and pref width property but that didn't help.

    This works fine for me with just default settings:
    import javafx.application.Application;
    import javafx.beans.value.ChangeListener;
    import javafx.beans.value.ObservableValue;
    import javafx.scene.Scene;
    import javafx.scene.control.Label;
    import javafx.scene.control.SplitPane;
    import javafx.scene.control.ToggleButton;
    import javafx.scene.layout.BorderPane;
    import javafx.scene.layout.GridPane;
    import javafx.stage.Stage;
    public class SplitClosablePaneTest extends Application {
        @Override
        public void start(Stage primaryStage) {
            final SplitPane splitPane = new SplitPane();
            final GridPane overview = new GridPane();
            final GridPane details = new GridPane();
            overview.add(new Label("Overview"), 0, 0);
            overview.setStyle("-fx-background-color: antiquewhite;");
            details.add(new Label("Details"), 0, 0);
            splitPane.getItems().addAll(overview, details);
            final ToggleButton toggle = new ToggleButton("Hide Details");
            toggle.setSelected(true);
            toggle.selectedProperty().addListener(new ChangeListener<Boolean>() {
                @Override
                public void changed(ObservableValue<? extends Boolean> observable,
                        Boolean wasSelected, Boolean isSelected) {
                    if (isSelected) {
                        if (!splitPane.getItems().contains(details)) {
                            splitPane.getItems().add(details);
                        toggle.setText("Hide Details");
                    } else {
                        splitPane.getItems().remove(details);
                        toggle.setText("Show Details");
            final BorderPane root = new BorderPane();
            root.setTop(toggle);
            root.setCenter(splitPane);
            primaryStage.setScene(new Scene(root, 400, 200));
            primaryStage.show();
        public static void main(String[] args) {
            launch(args);

Maybe you are looking for

  • RFC ADAPTER : Data not getting trasfered to XI

    Hi All, I am using an RFC to File adapter scenerio , The sender is RFC FM ,The config has some constants on reciving side . When the outbound program is run , only the  constants are transfered to XI , but the other fields are not getting populated i

  • N95 v21.0.016 bug(?) in SIP phone

    This one had me stumped for a while... My N95 is hooked up to my own Asterisk server and, as such, rings whenever someone calls me by VoIP or on any of the DID numbers I have attached to my VoIP account. It's logged in as extension 2002 on my server

  • Insert select statement is taking ages

    Sybase version: Adaptive Server Enterprise/12.5.4/EBF 15432 ESD#8/P/Sun_svr4/OS 5.8/ase1254/2105/64-bit/FBO/Sat Mar 22 14:38:37 2008 Hi guyz, I have a question about the performance of a statement that is very slow and I'd like to have you input. I h

  • Which is Good for Performance?

    Hi, I am bit confused about this code from performance point of view, say If I write like this : for(int i=0;i<1000;i++)   //declaring variables in the loop   int j, k;   double d;   CustomClassObj classObj = new CustomClassObj(); }And if I declare a

  • Can i install EHP5 directly.

    Hi Guys,    I've been in a confusion. I've to install ECC 6.0 EHP5 directly. Is it possible to install it directly. Not IDES version. Some tells we can install directly. But some tells we have install ECC 6.0 first and then have to upgrade to EHP5. C