How to move a row to top in a report on button click

Hi,
I have a report and have 2 buttons(Top and Bottom). When I click on top button selected row should be moved to top in the list, when I click on bottom that select row should be moved to bottom. I checked Denes reorder rows example it has only up and down functionality.
Could some one help me in doing that.
Thanks in advance,
Sri

Hello, maybe I don´t get your problem, but I would just use: single table, form subform for row with positioned (manually like 2 rows) or flowed (with two "internal" subforms to help achieve 2-like-row-design of the row) content and that´s all. Otto
p.s.: if your problem is not that simple then I don´t get it, please clarify

Similar Messages

  • How to move result row for hierarchical character bellow corresponding rows

    Hi expert,
          in my query , I set a hierarchy for a character in row. but it result row is above rows, however I set all result row bellow corresponding rows in query property. also all other result rows display bellow corresponding rows. please tell me how to move result row for hierarchical character bellow corresponding rows.
    Many Thanks,

    Hi Yasinn,
    you are right and you can make it even shorter:
    LOOP AT ITAB.
      Collect ITAB Into ITAB2.
    EndLoop .
    It will work much faster using field-symbols:
    field-symbols:
      <itab> like line of itab.
    LOOP AT ITAB ASSIGNING <itab>.
      Collect <itab> Into ITAB2.
    EndLoop .
    BTW: Kishore Babu Gummadi's suggestion about the field catalog does not make any sense, not regarding your question and not regarding a field catalog derived from DDIC fields: What is the DDIC defined output length of ekbe-wrbtr?
    Regards,
    Clemens

  • How to move a row in an updatable report

    Hello,
    I'm using an updatable report. I need to move one row to up or down.
    And when moving the last row further down, it should show up as the first row of ny report.
    And moving the first column up, it should be moved to the end of my report.
    How can I do this ?
    Alain.

    Alain,
    Chanhe your login to something more firendly:)
    See here on how to do that:
    http://htmldb.oracle.com/pls/otn/f?p=31517:100
    Denes Kubicek

  • How to submit data from multiple Input Ports in single SUBMIT button  click

    Hi,
    I am in SPS8.
    What exactly steps I need to perform to submit data from multiple Input Ports.
    I couldn't able to submit One input Form and one Input Table to BAPI data service in single SUBMIT button click.
    I debugged the VC application in SPS8.
    While debugging, I found that when I click the SUBMIT button in the Input Form, Only data in that Input
    form are being passed to the BAPI, But not the Table Form data.
    If I click on the SUBMIT button in another Input Table, Only data from that table is being passed to the BAPI, but not the Input form data.
    Essentially I need to submit both of them in one SUBMIT button.
    Thanks,
    Ramakrishna

    Ramakrishna,
    From the word document that you sent to me the steps you are missing to map the appropriate information into the BAPI is first you are not mapping all data rows into the table input port. To do this double click on the input table view and change your selection mode from single to multiple. Then when you click on your link between the BAPI and your input table you will see a new option appears under data mapping "Mapping Scope" select All Data Rows.
    That's the first part of the problem to get the BAPI to recognize both the inputs coming from the form and the table eliminate the submit button from the form. Drag and drop a link from the output port of the table view to the Input port of the BAPI. Double click on the link between the BAPI and the table view and open the expressions editor for the two fields:
    1/ Automatic Source
    2/ SKIP_ITEMS_WITH_ERROR
    On the hierarchical folder structure on the right expand expand the Data Fields node to find the fields from the form and map them accordingly.
    Now when you hit the submit button on your table it should pass the BAPI all the parameters from both the form and the table.
    Hope this helps,
    Cheers,
    Scott

  • How to avoid default row on top of a table

    Dear Members,
    I have created a simple JSF page using ADF.
    In the page, I am displaying departments and employee data.
    Departments data is displayed using the ADF Form and the employee data is displayed using ADF Table.
    When I am running the page a default row is appearing above the ADF Table.
    I request you to please let me know, how to avoid this default row displayed on top of the table.
    Many thanks in advance.
    Regards.

    Hello John,
    My page code is as follows:
    *<?xml version='1.0' encoding='UTF-8'?>*
    *<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">*
    *<f:view xmlns:f="http://java.sun.com/jsf/core" xmlns:af="http://xmlns.oracle.com/adf/faces/rich">*
    *<af:document title="DeptEmp.jsf" id="d1">*
    *<af:messages id="m1"/>*
    *<af:form id="f1">*
    *<af:pageTemplate viewId="/oracle/templates/threeColumnTemplate.jspx" id="pt1">*
    *<f:facet name="center">*
    *<af:group id="g1">*
    *<af:panelGroupLayout id="pgl1" layout="vertical" halign="center">*
    *<af:panelFormLayout id="pfl1" maxColumns="2" rows="2">*
    *<af:inputText value="#{bindings.DepartmentId.inputValue}"*
    *label="#{bindings.DepartmentId.hints.label}"*
    *required="#{bindings.DepartmentId.hints.mandatory}"*
    *columns="#{bindings.DepartmentId.hints.displayWidth}"*
    *maximumLength="#{bindings.DepartmentId.hints.precision}"*
    *shortDesc="#{bindings.DepartmentId.hints.tooltip}" id="it1">*
    *<f:validator binding="#{bindings.DepartmentId.validator}"/>*
    *<af:convertNumber groupingUsed="false" pattern="#{bindings.DepartmentId.format}"/>*
    *</af:inputText>*
    *<af:inputText value="#{bindings.DepartmentName.inputValue}"*
    *label="#{bindings.DepartmentName.hints.label}"*
    *required="#{bindings.DepartmentName.hints.mandatory}"*
    *columns="#{bindings.DepartmentName.hints.displayWidth}"*
    *maximumLength="#{bindings.DepartmentName.hints.precision}"*
    *shortDesc="#{bindings.DepartmentName.hints.tooltip}" id="it12">*
    *<f:validator binding="#{bindings.DepartmentName.validator}"/>*
    *</af:inputText>*
    *<af:inputText value="#{bindings.LocationId.inputValue}"*
    *label="#{bindings.LocationId.hints.label}"*
    *required="#{bindings.LocationId.hints.mandatory}"*
    *columns="#{bindings.LocationId.hints.displayWidth}"*
    *maximumLength="#{bindings.LocationId.hints.precision}"*
    *shortDesc="#{bindings.LocationId.hints.tooltip}" id="it13">*
    *<f:validator binding="#{bindings.LocationId.validator}"/>*
    *<af:convertNumber groupingUsed="false" pattern="#{bindings.LocationId.format}"/>*
    *</af:inputText>*
    *<af:inputText value="#{bindings.ManagerId.inputValue}"*
    *label="#{bindings.ManagerId.hints.label}"*
    *required="#{bindings.ManagerId.hints.mandatory}"*
    *columns="#{bindings.ManagerId.hints.displayWidth}"*
    *maximumLength="#{bindings.ManagerId.hints.precision}"*
    *shortDesc="#{bindings.ManagerId.hints.tooltip}" id="it14">*
    *<f:validator binding="#{bindings.ManagerId.validator}"/>*
    *<af:convertNumber groupingUsed="false" pattern="#{bindings.ManagerId.format}"/>*
    *</af:inputText>*
    *<f:facet name="footer">*
    *<af:panelGroupLayout layout="vertical" id="pgl3">*
    *<af:panelGroupLayout layout="horizontal" id="pgl4">*
    *<f:facet name="separator">*
    *<af:spacer width="10" height="1" id="s1"/>*
    *</f:facet>*
    *<af:commandButton actionListener="#{bindings.First.execute}" text="First"*
    *disabled="#{!bindings.First.enabled}" partialSubmit="true"*
    *id="cb1"/>*
    *<af:commandButton actionListener="#{bindings.Previous.execute}"*
    *text="Previous" disabled="#{!bindings.Previous.enabled}"*
    *partialSubmit="true" id="cb2"/>*
    *<af:commandButton actionListener="#{bindings.Next.execute}" text="Next"*
    *disabled="#{!bindings.Next.enabled}" partialSubmit="true"*
    *id="cb3"/>*
    *<af:commandButton actionListener="#{bindings.Last.execute}" text="Last"*
    *disabled="#{!bindings.Last.enabled}" partialSubmit="true"*
    *id="cb4"/>*
    *</af:panelGroupLayout>*
    *<af:commandButton text="Submit" id="cb5"/>*
    *</af:panelGroupLayout>*
    *</f:facet>*
    *</af:panelFormLayout>*
    *</af:panelGroupLayout>*
    *<af:spacer width="10" height="20" id="s2"/>*
    *<af:separator id="s3"/>*
    *<af:panelGroupLayout id="pgl2" layout="vertical" halign="center">*
    *<af:table value="#{bindings.EmployeesVO1.collectionModel}" var="row"*
    *rows="#{bindings.EmployeesVO1.rangeSize}"*
    *emptyText="#{bindings.EmployeesVO1.viewable ? 'No data to display.' : 'Access Denied.'}"*
    *fetchSize="#{bindings.EmployeesVO1.rangeSize}" rowBandingInterval="0"*
    *filterModel="#{bindings.EmployeesVO1Query.queryDescriptor}"*
    *queryListener="#{bindings.EmployeesVO1Query.processQuery}" filterVisible="true"*
    *varStatus="vs"*
    *selectionListener="#{bindings.EmployeesVO1.collectionModel.makeCurrent}"*
    *rowSelection="multiple" id="t1" width="90%" partialTriggers="::cb6">*
    *<af:column sortProperty="#{bindings.EmployeesVO1.hints.CommissionPct.name}"*
    *filterable="true" sortable="true"*
    *headerText="#{bindings.EmployeesVO1.hints.CommissionPct.label}" id="c1">*
    *<af:inputText value="#{row.bindings.CommissionPct.inputValue}"*
    *label="#{bindings.EmployeesVO1.hints.CommissionPct.label}"*
    *required="#{bindings.EmployeesVO1.hints.CommissionPct.mandatory}"*
    *columns="#{bindings.EmployeesVO1.hints.CommissionPct.displayWidth}"*
    *maximumLength="#{bindings.EmployeesVO1.hints.CommissionPct.precision}"*
    *shortDesc="#{bindings.EmployeesVO1.hints.CommissionPct.tooltip}"*
    *id="it2">*
    *<f:validator binding="#{row.bindings.CommissionPct.validator}"/>*
    *</af:inputText>*
    *</af:column>*
    *<af:column sortProperty="#{bindings.EmployeesVO1.hints.DepartmentId.name}"*
    *filterable="true" sortable="true"*
    *headerText="#{bindings.EmployeesVO1.hints.DepartmentId.label}" id="c2">*
    *<af:inputText value="#{row.bindings.DepartmentId.inputValue}"*
    *label="#{bindings.EmployeesVO1.hints.DepartmentId.label}"*
    *required="#{bindings.EmployeesVO1.hints.DepartmentId.mandatory}"*
    *columns="#{bindings.EmployeesVO1.hints.DepartmentId.displayWidth}"*
    *maximumLength="#{bindings.EmployeesVO1.hints.DepartmentId.precision}"*
    *shortDesc="#{bindings.EmployeesVO1.hints.DepartmentId.tooltip}"*
    *id="it3" readOnly="true">*
    *<f:validator binding="#{row.bindings.DepartmentId.validator}"/>*
    *<af:convertNumber groupingUsed="false"*
    *pattern="#{bindings.EmployeesVO1.hints.DepartmentId.format}"/>*
    *</af:inputText>*
    *</af:column>*
    *<af:column sortProperty="#{bindings.EmployeesVO1.hints.Email.name}" filterable="true"*
    *sortable="true" headerText="#{bindings.EmployeesVO1.hints.Email.label}"*
    *id="c3">*
    *<af:inputText value="#{row.bindings.Email.inputValue}"*
    *label="#{bindings.EmployeesVO1.hints.Email.label}"*
    *required="#{bindings.EmployeesVO1.hints.Email.mandatory}"*
    *columns="#{bindings.EmployeesVO1.hints.Email.displayWidth}"*
    *maximumLength="#{bindings.EmployeesVO1.hints.Email.precision}"*
    *shortDesc="#{bindings.EmployeesVO1.hints.Email.tooltip}" id="it4">*
    *<f:validator binding="#{row.bindings.Email.validator}"/>*
    *</af:inputText>*
    *</af:column>*
    *<af:column sortProperty="#{bindings.EmployeesVO1.hints.EmployeeId.name}"*
    *filterable="true" sortable="true"*
    *headerText="#{bindings.EmployeesVO1.hints.EmployeeId.label}" id="c4">*
    *<af:inputText value="#{row.bindings.EmployeeId.inputValue}"*
    *label="#{bindings.EmployeesVO1.hints.EmployeeId.label}"*
    *required="#{bindings.EmployeesVO1.hints.EmployeeId.mandatory}"*
    *columns="#{bindings.EmployeesVO1.hints.EmployeeId.displayWidth}"*
    *maximumLength="#{bindings.EmployeesVO1.hints.EmployeeId.precision}"*
    *shortDesc="#{bindings.EmployeesVO1.hints.EmployeeId.tooltip}"*
    *id="it5">*
    *<f:validator binding="#{row.bindings.EmployeeId.validator}"/>*
    *<af:convertNumber groupingUsed="false"*
    *pattern="#{bindings.EmployeesVO1.hints.EmployeeId.format}"/>*
    *</af:inputText>*
    *</af:column>*
    *<af:column sortProperty="#{bindings.EmployeesVO1.hints.FirstName.name}"*
    *filterable="true" sortable="true"*
    *headerText="#{bindings.EmployeesVO1.hints.FirstName.label}" id="c5">*
    *<af:inputText value="#{row.bindings.FirstName.inputValue}"*
    *label="#{bindings.EmployeesVO1.hints.FirstName.label}"*
    *required="#{bindings.EmployeesVO1.hints.FirstName.mandatory}"*
    *columns="#{bindings.EmployeesVO1.hints.FirstName.displayWidth}"*
    *maximumLength="#{bindings.EmployeesVO1.hints.FirstName.precision}"*
    *shortDesc="#{bindings.EmployeesVO1.hints.FirstName.tooltip}" id="it6">*
    *<f:validator binding="#{row.bindings.FirstName.validator}"/>*
    *</af:inputText>*
    *</af:column>*
    *<af:column sortProperty="#{bindings.EmployeesVO1.hints.HireDate.name}" filterable="true"*
    *sortable="true" headerText="#{bindings.EmployeesVO1.hints.HireDate.label}"*
    *id="c6">*
    *<f:facet name="filter">*
    *<af:inputDate value="#{vs.filterCriteria.HireDate}" id="id1">*
    *<af:convertDateTime pattern="#{bindings.EmployeesVO1.hints.HireDate.format}"/>*
    *</af:inputDate>*
    *</f:facet>*
    *<af:inputDate value="#{row.bindings.HireDate.inputValue}"*
    *label="#{bindings.EmployeesVO1.hints.HireDate.label}"*
    *required="#{bindings.EmployeesVO1.hints.HireDate.mandatory}"*
    *columns="#{bindings.EmployeesVO1.hints.HireDate.displayWidth}"*
    *shortDesc="#{bindings.EmployeesVO1.hints.HireDate.tooltip}" id="id2">*
    *<f:validator binding="#{row.bindings.HireDate.validator}"/>*
    *<af:convertDateTime pattern="#{bindings.EmployeesVO1.hints.HireDate.format}"/>*
    *</af:inputDate>*
    *</af:column>*
    *<af:column sortProperty="#{bindings.EmployeesVO1.hints.JobId.name}" filterable="true"*
    *sortable="true" headerText="#{bindings.EmployeesVO1.hints.JobId.label}"*
    *id="c7">*
    *<af:inputText value="#{row.bindings.JobId.inputValue}"*
    *label="#{bindings.EmployeesVO1.hints.JobId.label}"*
    *required="#{bindings.EmployeesVO1.hints.JobId.mandatory}"*
    *columns="#{bindings.EmployeesVO1.hints.JobId.displayWidth}"*
    *maximumLength="#{bindings.EmployeesVO1.hints.JobId.precision}"*
    *shortDesc="#{bindings.EmployeesVO1.hints.JobId.tooltip}" id="it7">*
    *<f:validator binding="#{row.bindings.JobId.validator}"/>*
    *</af:inputText>*
    *</af:column>*
    *<af:column sortProperty="#{bindings.EmployeesVO1.hints.LastName.name}" filterable="true"*
    *sortable="true" headerText="#{bindings.EmployeesVO1.hints.LastName.label}"*
    *id="c8">*
    *<af:inputText value="#{row.bindings.LastName.inputValue}"*
    *label="#{bindings.EmployeesVO1.hints.LastName.label}"*
    *required="#{bindings.EmployeesVO1.hints.LastName.mandatory}"*
    *columns="#{bindings.EmployeesVO1.hints.LastName.displayWidth}"*
    *maximumLength="#{bindings.EmployeesVO1.hints.LastName.precision}"*
    *shortDesc="#{bindings.EmployeesVO1.hints.LastName.tooltip}" id="it8">*
    *<f:validator binding="#{row.bindings.LastName.validator}"/>*
    *</af:inputText>*
    *</af:column>*
    *<af:column sortProperty="#{bindings.EmployeesVO1.hints.ManagerId.name}"*
    *filterable="true" sortable="true"*
    *headerText="#{bindings.EmployeesVO1.hints.ManagerId.label}" id="c9">*
    *<af:inputText value="#{row.bindings.ManagerId.inputValue}"*
    *label="#{bindings.EmployeesVO1.hints.ManagerId.label}"*
    *required="#{bindings.EmployeesVO1.hints.ManagerId.mandatory}"*
    *columns="#{bindings.EmployeesVO1.hints.ManagerId.displayWidth}"*
    *maximumLength="#{bindings.EmployeesVO1.hints.ManagerId.precision}"*
    *shortDesc="#{bindings.EmployeesVO1.hints.ManagerId.tooltip}" id="it9">*
    *<f:validator binding="#{row.bindings.ManagerId.validator}"/>*
    *<af:convertNumber groupingUsed="false"*
    *pattern="#{bindings.EmployeesVO1.hints.ManagerId.format}"/>*
    *</af:inputText>*
    *</af:column>*
    *<af:column sortProperty="#{bindings.EmployeesVO1.hints.PhoneNumber.name}"*
    *filterable="true" sortable="true"*
    *headerText="#{bindings.EmployeesVO1.hints.PhoneNumber.label}" id="c10">*
    *<af:inputText value="#{row.bindings.PhoneNumber.inputValue}"*
    *label="#{bindings.EmployeesVO1.hints.PhoneNumber.label}"*
    *required="#{bindings.EmployeesVO1.hints.PhoneNumber.mandatory}"*
    *columns="#{bindings.EmployeesVO1.hints.PhoneNumber.displayWidth}"*
    *maximumLength="#{bindings.EmployeesVO1.hints.PhoneNumber.precision}"*
    *shortDesc="#{bindings.EmployeesVO1.hints.PhoneNumber.tooltip}"*
    *id="it10">*
    *<f:validator binding="#{row.bindings.PhoneNumber.validator}"/>*
    *</af:inputText>*
    *</af:column>*
    *<af:column sortProperty="#{bindings.EmployeesVO1.hints.Salary.name}" filterable="true"*
    *sortable="true" headerText="#{bindings.EmployeesVO1.hints.Salary.label}"*
    *id="c11">*
    *<af:inputText value="#{row.bindings.Salary.inputValue}"*
    *label="#{bindings.EmployeesVO1.hints.Salary.label}"*
    *required="#{bindings.EmployeesVO1.hints.Salary.mandatory}"*
    *columns="#{bindings.EmployeesVO1.hints.Salary.displayWidth}"*
    *maximumLength="#{bindings.EmployeesVO1.hints.Salary.precision}"*
    *shortDesc="#{bindings.EmployeesVO1.hints.Salary.tooltip}" id="it11">*
    *<f:validator binding="#{row.bindings.Salary.validator}"/>*
    *</af:inputText>*
    *</af:column>*
    *</af:table>*
    *<af:separator id="s4"/>*
    *<af:commandButton actionListener="#{bindings.CreateInsert.execute}" text="Create Employee"*
    *disabled="#{!bindings.CreateInsert.enabled}" id="cb6"/>*
    *</af:panelGroupLayout>*
    *<af:separator id="s5"/>*
    *<af:panelGroupLayout id="pgl5" layout="vertical" halign="center">*
    *<af:commandButton actionListener="#{bindings.Commit.execute}" text="Save"*
    *disabled="#{!bindings.Commit.enabled}" id="cb7"/>*
    *</af:panelGroupLayout>*
    *</af:group>*
    *</f:facet>*
    *<f:facet name="header"/>*
    *<f:facet name="branding"/>*
    *<f:facet name="copyright"/>*
    *<f:facet name="status"/>*
    *</af:pageTemplate>*
    *</af:form>*
    *</af:document>*
    *</f:view>*

  • How can i choose row to edit in alv report

    hello ,
    i done alv report with one coloumne that can be edit  ,
    in this coloumne i want to choose which rows can be edit
    and which will be close according to event  .
    i saw example program "BCALV_EDIT_02" that show this case
    but stile , i don't understand what is the action that
    do it .
    this is the  part
    IF p_mode EQ 'RW'.
    *§2a.Use attribute CL_GUI_ALV_GRID=>MC_STYLE_ENABLED to set a cell
       to status "editable".
        l_mode = cl_gui_alv_grid=>mc_style_enabled.
      ELSE. "p_mode eq 'RO'
    *§2b.Use attribute CL_GUI_ALV_GRID=>MC_STYLE_DISABLED to set a cell
       to status "non-editable".
        l_mode = cl_gui_alv_grid=>mc_style_disabled.
      ENDIF.
    so what is the part that will close the row for edit ?
    when i add this part in my report all the row is deleted.
    thanks.

    Dakota,
    You can change the settings at runtime.
    What you need to do is to have another column as part of the internal table, that has the data. This column, say, STYLE will refer to LVC_T_STYL. So, this becomes a nested internal table.
    Set the editable flga switched off at Fieldcat and layout level.
    Now, while filling the data in the table, or looping it separately, fill the Styles table for each row accordingly depending on the conditions. So, if you want the entire row to be enabled for editing, there will so many rows as the no. of columns in the inner internal table which is a column of that row.
    col1  col2   Col3  Style
    1     1      2     Col1 -- Style_Disabled
    ___________________Col2 -- Style_Disabled
    ___________________Col3 -- Style_Disabled
    This should solve your problem.
    Regards,
    Ravi
    note : Please reward the posts that help you.
    Message was edited by: Ravikumar Allampallam

  • How to print the logo in top centre (alv report)

    Hi friends,
         I need to print the company logo in the centre top of the alv report.Using the reuse_alv_commentry_write the logo is coming in the right side corner of report.
    Thanks & Regards,
    vijay.

    Hi,
    Try this out
    Build report title
      PERFORM build_report_title USING gd_report_title gd_logo.
      DATA:  gd_logo             TYPE sdydo_value,
    *&      Form  BUILD_REPORT_TITLE
          Build table for ALVtree header
    <->  p1        Header details
    <->  p2        Logo value
    FORM build_report_title CHANGING
          pt_report_title  TYPE slis_t_listheader
          pa_logo             TYPE sdydo_value.
      DATA: ls_line TYPE slis_listheader,
            ld_date(10) TYPE c.
    List Heading Line(TYPE H)
      CLEAR ls_line.
      ls_line-typ  = 'H'.
    ls_line-key     "Not Used For This Type(H)
      ls_line-info = 'User Message Service'.
      APPEND ls_line TO pt_report_title.
    Users name (Status Line- TYPE S)
      ls_line-typ  = 'S'.
      ls_line-key  = 'Name '.
      ls_line-info = gd_myname.
      APPEND ls_line TO pt_report_title.
    Status Line(TYPE S)
      ld_date(2) = sy-datum+6(2).
      ld_date+2(1) = '/'.
      ld_date3(2) = sy-datum4(2).
      ld_date+5(1) = '/'.
      ld_date+6(4) = sy-datum(4).
      ls_line-typ  = 'S'.
      ls_line-key  = 'Date'.
      ls_line-info = ld_date.
      APPEND ls_line TO pt_report_title.
    Action Line(TYPE A)
    CLEAR ls_line.
    ls_line-typ  = 'A'.
    CONCATENATE 'Report: ' sy-repid INTO ls_line-info  SEPARATED BY space
    APPEND ls_line TO pt_report_title.
    ENDFORM.                    "build_report_title
      CALL METHOD gd_userlist->set_table_for_first_display
         EXPORTING
                   is_hierarchy_header  = gd_hierarchy_header
                   it_list_commentary   = gd_report_title
    <b>              i_logo               = gd_logo</b>
                  i_background_id      = 'ALV_BACKGROUND'
                   i_save               = 'A'
                   is_variant            = gd_variant
         CHANGING
                   it_outtab            =  it_emptytab      "Must be empty
                   it_fieldcatalog      =  gd_fieldcat.

  • How to Select  a Row in a JTable, on a right mouse click?

    Hi all!
    I need to know the Row index in a JTable, on a right mouse click?
    Executing following code, I get the "Column Number" on a mouse click
    TableColumnModel columnModel = tableView.getColumnModel();
    int viewColumn = columnModel.getColumnIndexAtX(e.getX());
    int columnIdx = tableView.convertColumnIndexToModel(viewColumn);
    Dows any body know the code that gets "rowIdx" on a mouse e.getY() method??
    Hope early response!

    int row = table.rowAtPoint( e.getPoint() );
    int column = table.columnAtPoint( e.getPoint() );

  • How do I remove a child from the stage using a button click?

    I have a movieclip that requires Play, Pause, Forward and Back buttons. The movieclip has actionscript at various frames to load movieclips from the library and repeat them.
    I have tried using a timeline scrubber but it does not trigger the actionscript when scrubbing, only when the movie plays normally.
    My possible solution is to create Fwd and Back buttons that can go to specific frames where key animations will begin.
    I need to develop actionscript that will remove Children when the user clicks Back.
    This is how I am loading several movieclips along the timeline from my library:
    var shpA1:arSHPp1;
    function attachAR1 () {
      shpA1 = new arSHPp1 ();
      shpA1.x = -30;
      shpA1.y = 18;
      addChild (shpA1);
    //the interval is used to repeat the animation to represent continuous flow on a diagram
    var myInterval1:uint = setInterval (attachAR1, 500);
    This what I have tried so far (not working at all - no errors or trace):
    function remChild1(event:MouseEvent) :void {
        if(shpA1.stage)
            trace("arSHPp1 is in display list");
            shpA1.parent.removeChild(shpA1);
            shpA1 = null
        else
            trace("arSHPp1 isn't in display list");

    I did try that but it would not remove the child.
    i appreciate your help though.
    I am also trying to determine if a child is on the stage and if it is, remove it. I have created a button that will jump back on the timeline and the mc's that were loaded after this point in time.
    This looks like it should work. It doesn't give me any errors but the mc remains on the stage.
    var remMC;
    if (getChildByName("mc2") != null) {
      removeChild(mc2);

  • How to Dispose/Remove/Clear/Delete Rectangleshape created on Form by button click

    Hi Guys,
    I have a windows form where there are few textboxses and buttons.
    One of the button when clicked creates few rectangles to depict sort of design(its working)
    Now my problem is that I want to clear the form for the user to enter again.
    I am able to clear textbox but I am not able to remove the rectangles made.
    Could anyone suggest how to do it?
    I have tried searching for the example but could not find any.
    I have not used paint to draw my drawing so any graphic related answer wont work it seems.
    I found this but it is giving error :Unable to cast object of type 'System.Windows.Forms.Button' to type 'Microsoft.VisualBasic.PowerPacks.RectangleShape'"
    CType(sender, PowerPacks.RectangleShape).Dispose()
    what should I do?
    Thanks in Advance!
    Mak

    Hi Guys,
    I was able to find out how to remove the all the rectangles which I created
    If we just use this
    Invalidate()
    It will clear the entire surface of the control.
    But......
    The problem is how to remove specific Rectangles!
    Still looking for answers!!, all ideas welcome!
    Cheers
    Mak
    Hello,
    You could define that control variable outside that method, and hide them by setting its parent to nothing.
    Here is a simple sample.
    Imports Microsoft.VisualBasic.PowerPacks
    Public Class Form1
    Dim canvas As New ShapeContainer
    Dim Rect1 As New RectangleShape
    Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
    canvas.Parent = Me
    Rect1.Parent = canvas
    Rect1.Size = New System.Drawing.Size(140, 140)
    Rect1.Location = New System.Drawing.Point(2, 2)
    Rect1.BackStyle = BackStyle.Opaque
    Rect1.BackColor = Color.White
    End Sub
    Private Sub Button2_Click(sender As Object, e As EventArgs) Handles Button2.Click
    canvas.Parent = Nothing
    End Sub
    End Class
    Regards,
    Carl
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • How to run report on Button Click in Forms 9i

    Hi ,
    I want to run a report , when I press button on form
    it is RDF file . I have complied it and create a REP File .
    I has also set the report path in registry / HKEY_LOCAL_MACHINE/ SOFTWARE /ORACLE/ HOME1
    And then i has written these command line on Button click
    Declare
         pl_id           ParamList;
         al_id Alert;
         al_button     Number;
         M_RepFile     Varchar2(80);
    Begin
         pl_id := Get_Parameter_List('tmpdata');
         IF NOT Id_Null(pl_id) THEN
              Destroy_Parameter_List( pl_id );
         END IF;
         pl_id := Create_Parameter_List('tmpdata');
    Run_Product(REPORTS,'sitereport', SYNCHRONOUS,RUNTIME,FILESYSTEM,pl_id,NULL);
    Show_Window('MAIN');
    End;
    Message('Now Closing');Message('Now Closing');
    But only message at last is showing . No report being open .

    Look at this one
    Re: Run Report10g  Through form 10g

  • How to Figure out what checkboxes are selected upon a button click...

    If I have a panel with some JCheckBoxes and a JButton, how can I figure out what checkboxes are selected upon the button click? If I add an actionlistener to the button, inside actionPerformed, how would I know what checkboxes are selected? One caveat is that the name and number of these checkboxes are dymanically chaing based on a configuration file so I do not know what the names of these check boxes are.
    Any help/code sample would be appreciated.

    Here's one of several different ways to do it. It attaches an ItemListener to each checkBox. When the checkBox is clicked, it is either added or removed from a List of selected items. Clicking the button will show you the selected items.
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    import java.util.*;
    public class CheckBoxTest extends JFrame
      JCheckBox chkChoice1 = new JCheckBox("English");
      JCheckBox chkChoice2 = new JCheckBox("French");
      JCheckBox chkChoice3 = new JCheckBox("German");
      JCheckBox chkChoice4 = new JCheckBox("Italian");
      JTextArea txaDisplay = new JTextArea(5, 20);
      JButton btnShow = new JButton("Show Selected Items");
      ArrayList <JCheckBox>choices = new ArrayList<JCheckBox>();
      public CheckBoxTest()
        super("");
        setDefaultCloseOperation(EXIT_ON_CLOSE);
        chkChoice1.addItemListener(new CheckBoxListener(chkChoice1));
        chkChoice2.addItemListener(new CheckBoxListener(chkChoice2));
        chkChoice3.addItemListener(new CheckBoxListener(chkChoice3));
        chkChoice4.addItemListener(new CheckBoxListener(chkChoice4));
        btnShow.addActionListener(new ActionListener(){
          public void actionPerformed(ActionEvent event)
            txaDisplay.setText("");
            for (JCheckBox jcb : choices)
              txaDisplay.append(jcb.getText() + "\n");
        JPanel buttonPanel = new JPanel(new FlowLayout());
        buttonPanel.add(chkChoice1);
        buttonPanel.add(chkChoice2);
        buttonPanel.add(chkChoice3);
        buttonPanel.add(chkChoice4);
        JScrollPane scroll = new JScrollPane(txaDisplay);
        scroll.setHorizontalScrollBarPolicy(ScrollPaneConstants.HORIZONTAL_SCROLLBAR_AS_NEEDED);
        scroll.setVerticalScrollBarPolicy(ScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS);
        JPanel dataPanel = new JPanel();
        dataPanel.add(btnShow);
        dataPanel.add(scroll);
        Container c = getContentPane();
        c.setLayout(new BorderLayout());
        c.add(buttonPanel, BorderLayout.NORTH);
        c.add(dataPanel, BorderLayout.CENTER);
        pack();
      public static void main( String[] args )
        CheckBoxTest frame = new CheckBoxTest();
        frame.setVisible(true);
      class CheckBoxListener implements ItemListener
        JCheckBox checkBox;
        public CheckBoxListener(JCheckBox checkBox)
          this.checkBox = checkBox;
        public void itemStateChanged(ItemEvent event)
          if (checkBox.isSelected())
            choices.add(checkBox);
          else
            choices.remove(checkBox);
    }Or, you could just maintain all the checkboxes in a Collection ahead of time. When the Show button is selected, simple query isSelected() on each item.
    Again, there are several different ways.

  • How to move rows up and down on a SharePoint List Item

    Hello,
    I have created a simple Project Plan Template for my team using a SharePoint list.
    I have listed a sample below:
         Date  
                                Tasks        
                                               Owner
    03/09/14                             Gather requirement                        
        X
    05/09/14                             Develop                          
                          Y
    07/09/14                             Deploy                          
                            Y
    Currently there is no functionality in the template to add another task to update the Plan. eg: I want to add another task with a due date 04/09/14 to confirm requirements.
    So basically I want to be able to add an item (task) towards the end and then move it to desired position depending on the due date.
    Please suggest how this can be implemented without complex code changes as I am new to working with SharePoint.
    Many Thanks in advance,
    BH

    Hi ,
    Thanks for the response.
    But I am looking to move the rows in a particular list A and not between 2 separate list items A and B according to the date.
    List Project A has separate tasks defined which needs to accomplished in a timely manner for the project to complete on schedule.
    I want to be able to move these tasks which are in a table on the SharePoint List.
    Hope this is clear.
    Please let me know if you have suggestions for this.
    -BH

  • How to move a selected row data from one grid to another grid using button click handler in flex4

    hi friends,
    i am doing flex4 mxml web application,
    i am struck in this concept please help some one.
    i am using two seperated forms and each form having one data grid.
    In first datagrid i am having 5 rows and one button(outside the data grid with lable MOVE). when i am click a row from the datagrid and click the MOVE button means that row should disable from the present datagrid and that row will go and visible in  the second datagrid.
    i dont want drag and drop method, i want this process only using button click handler.
    how to do this?
    any suggession or snippet code are welcome.
    Thanks,
    B.venkatesan.

    Hi,
    You can get an idea from foolowing code and also from the link which i am providing.
    Code:
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute"
    width="613" height="502" viewSourceURL="../files/DataGridExampleCinco.mxml">
    <mx:Script>
    <![CDATA[
    import mx.collections.ArrayCollection;
    import mx.binding.utils.BindingUtils;
    [Bindable]
    private var allGames:ArrayCollection;
    [Bindable]
    private var selectedGames:ArrayCollection;
    private function initDGAllGames():void
    allGames = new ArrayCollection();
    allGames.addItem({name: "World of Warcraft",
    creator: "Blizzard", publisher: "Blizzard"});
    allGames.addItem({name: "Halo",
    creator: "Bungie", publisher: "Microsoft"});
    allGames.addItem({name: "Gears of War",
    creator: "Epic", publisher: "Microsoft"});
    allGames.addItem({name: "City of Heroes",
    creator: "Cryptic Studios", publisher: "NCSoft"});
    allGames.addItem({name: "Doom",
    creator: "id Software", publisher: "id Software"});
    protected function button1_clickHandler(event:MouseEvent):void
    BindingUtils.bindProperty(dgSelectedGames,"dataProvider" ,dgAllGames ,"selectedItems");
    ]]>
    </mx:Script>
    <mx:Label x="11" y="67" text="All our data"/>
    <mx:Label x="10" y="353" text="Selected Data"/>
    <mx:Form x="144" y="10" height="277">
    <mx:DataGrid id="dgAllGames" width="417" height="173"
    creationComplete="{initDGAllGames()}" dataProvider="{allGames}" editable="false">
    <mx:columns>
    <mx:DataGridColumn headerText="Game Name" dataField="name" width="115"/>
    <mx:DataGridColumn headerText="Creator" dataField="creator"/>
    <mx:DataGridColumn headerText="Publisher" dataField="publisher"/>
    </mx:columns>
    </mx:DataGrid>
    <mx:FormItem label="Label">
    <mx:Button label="Move" click="button1_clickHandler(event)"/>
    </mx:FormItem>
    </mx:Form>
    <mx:Form x="120" y="333">
    <mx:DataGrid id="dgSelectedGames" width="417" height="110" >
    <mx:columns>
    <mx:DataGridColumn headerText="Game Name" dataField="name" width="115"/>
    <mx:DataGridColumn headerText="Creator" dataField="creator"/>
    <mx:DataGridColumn headerText="Publisher" dataField="publisher"/>
    </mx:columns>
    </mx:DataGrid>
    </mx:Form>
    </mx:Application>
    Link:
    http://social.msdn.microsoft.com/Forums/en-US/winformsdatacontrols/thread/ae9bee8d-e2ac-43 c5-9b6d-c799d4abb2a3/
    Thanks and Regards,
    Vibhuti Gosavi | [email protected] | www.infocepts.com

  • In FF 29.0, how to move the address bar on the top of the tabs bar?

    It is OK in Firefox 28 and lower to set browser.tabs.onTop=false to move the address bar on the top of the tabs bar. But in Firefox 29, I can not find the browser.tabs.onTop
    who can tell me how to move the address bar to the top of the tabs bar?

    Here's the real, and only, solution:
    ftp://ftp.mozilla.org/pub/firefox/releases/28.0/win32/en-US/

Maybe you are looking for

  • Problem with Firefox and very heavy memory usage

    For several releases now, Firefox has been particularly heavy on memory usage. With its most recent version, with a single browser instance and only one tab, Firefox consumes more memory that any other application running on my Windows PC. The memory

  • How to edit and update table control into database?

    I am doing table control. Here are my codes: *& Report  ZHERA_TABLE2 REPORT  ZHERA_TABLE2. ***&SPWIZARD: DATA DECLARATION FOR TABLECONTROL 'ZTABLE_CONTROL' *&SPWIZARD: DEFINITION OF DDIC-TABLE TABLES:   ZHERA. *&SPWIZARD: TYPE FOR THE DATA OF TABLECO

  • Does anyone know how to remove sundays from the datepicker in BC?

    I have a client that is closed on Sundays and occasionally gets an irate customer that books late saturday and is upset that no one is there on Sundays. So I would really like to remove the option of Sundays from the date picker.

  • Add Text to outbound mail in action processing / form as PDF

    Hi Experts! We want to add some (static) text into outbound mails, that are sent during action processing of our smartforms. Here´s what where were standing so far: - We are using actions within transaction processing to send a service report to cust

  • Html pages linked to a stylesheet

    Is there a report in DW CS3 which will show all html pages linked to a particular stylesheet? Thanks, CMA