Reuse_alv_grid_display enable the row  in newly entered row

Hello gurus,
there is custom program where they have used the REUSE_ALV_GRID_DISPLAY,in this i have added one custom button by clicking on it, in the output a new row should be entered so that the user can enter new record and able to save , in my case new row is coming but some of the fields are coming in disable mode which i have made disable mode for displaying the output while filling the field cat. but now when new row is entered that particular should be enabled in all the fields.
FORM user_command USING r_ucomm TYPE syucomm
rs_selfield TYPE slis_selfield.
ok_code = sy-ucomm.
CASE r_ucomm.
WHEN '&NEW'.
APPEND lw_rule_def TO gt_rule_def.
DESCRIBE TABLE gt_rule_def LINES gv_lines.
r_ucomm = '&REFRESH'.
endcase.
endform.
in the perform of display. I have written the below code. And DESCRIBE TABLE gt_rule_def lines gv_lines_def will be filled before the button click.
PERFORM new_record_fcat.
call fm reuse_alv_grid_display.
*& Form NEW_RECORD_FCAT
* text
* --> p1 text
* <-- p2 text
FORM new_record_fcat .
IF gv_lines GT gv_lines_def.
FIELD-SYMBOLS: <fs_fcat> TYPE slis_fieldcat_alv.
LOOP AT gt_fieldcat ASSIGNING <fs_fcat>.
IF <fs_fcat>-fieldname EQ gc_package_type.
<fs_fcat>-edit = 'X'.
ENDIF.
IF <fs_fcat>-fieldname EQ gc_crusr.
<fs_fcat>-edit = 'X'
ENDIF.
IF <fs_fcat>-fieldname EQ gc_crdat.
<fs_fcat>-edit = 'X'.
ENDIF.
IF <fs_fcat>-fieldname EQ gc_chusr.
<fs_fcat>-edit = 'X'.
ENDIF.
IF <fs_fcat>-fieldname EQ gc_chdat.
<fs_fcat>-edit = 'X'.
ENDIF.
IF <fs_fcat>-fieldname EQ gc_chtim.
<fs_fcat>-edit = 'X'.
ENDIF.
ENDLOOP.
ENDIF.
ENDFORM. " NEW_RECORD_FCAT
But when we click on the insert button the in debug PERFORM new_record_fcat. Is not triggering
Please guide me how to do it , only newly entered row should be enabled .
Regards,
vanamala kashavena

pfa where i am getting the issue .when i click on the insert button new row will be added in the out put but it is coming in disable mode for some fields i want for the newly added row should be editable mode.
Regards,
vanamala kashavena

Similar Messages

  • How to make the row header of the JTable respond to mouse events?

    Is there an easy way to enable the row header of a JTable so it listens to mouse events? I have put a button in the first cell of the row header but I can't click in it.
    I'm asking for an easy way because I've seen some fairly complicated examples on the web that seem close to what I want but I was hoping something simple like getRowHeader().setEnabled(true) would do the trick for my case...

    What's your row header, another JTable or something else? Check out camickr's [url http://tips4java.wordpress.com/2009/07/12/table-button-column/]Table Button Column.
    db
    edit Or to get better help sooner, post a [url http://mindprod.com/jgloss/sscce.html]SSCCE (Short, Self Contained, Compilable and Executable) example that demonstrates the problem.
    Edited by: Darryl Burke

  • Newly Entered Posting Date - System Message in 2007

    Hi,
    I also have the same questions as I found in the below thread
    What G/L Accounts are Updated Accordingly when the Posting Date is Changed?
    What are the G/L accounts updated when you say u2018yesu2019? Is this update is for the new fiscal year G/L accounts?
    My Client recently upgraded from 2005A to 2007A and the new posting period starts from 01/08/09 to 31/0710
    When the posting date is changed to July 09 (Which is the previous posting period) in A/P or A/R Invoices, the following message appears
    Newly Entered Posting Date Relates to Another Posting Period. Do you want to update G/L accounts accordingly? Yes No
    Also the message keeps coming every time when posting for previous posting period. How to stop this system message?
    Thanks in advance
    Mohan

    Dear Mohan,
    The system message 'Newly entered posting date relates to another
    posting period, do you want to update G/L accounts accordingly' does not
    prevent the document from being added, it is just an alert message.
    The business background of this alert is that it may be possible that
    user has the changes done already to the G/L Account Determination in a
    new year. Therefore an alert is initiated to avoid any wrong postings to
    another period. I.e. this does not mean the system will somehow alter
    the G/L accounts after the alert was displayed and the message is for
    user information only.
    We had investigated the issue and found the following observations
    -Posting period for 01/08/2008 created
    -Create any transaction in previous posting period. (31/07/2008)
    -The system gives this message
    -If there is no posting period created for 2008, there will not be any
    message
    So whenever you enter any transaction in previous posting period other
    than the latest the system gives this message.Because system will update
    the accounts for that period.
    From the functional perspective, this transation can be added, and once
    it has been added to the previous fiscal year you need to perform the
    year-end closing again. It is a standard system behaviour.
    If you press yes the system will update the accounts involved for that
    period and the new account balance will be update accordingly.
    You can test it in a test environment.
    Please refer to note 800291 for more information.
    Kind regards,
    Apple

  • Iterator not reflected on entering new values for the row

    Hi,
    I am having an editable table coming from an EJB Stateless Session Bean. I created a data control out of the session bean and dragged and dropped the output
    of the method in the session bean as a table in the jspx page. On click of the "Create" link, I have an action listener that creates a new row in the top of
    the table.
    DCIteratorBinding iter = DFUtils.findIterator("getMultSortReportListIterator");
    RowSetIterator rowSetIter = iter.getRowSetIterator();
    Row row = rowSetIter.createRow();
    row.setNewRowState(Row.STATUS_NEW);
    row.setAttribute("reportName", "");
    row.setAttribute("sectionName", "");
    row.setAttribute("userId", "");
    row.setAttribute("viewCriteria", "");
    rowSetIter.insertRowAtRangeIndex(0, row);
    rowSetIter.setCurrentRowAtRangeIndex(0);
    After the row is created, I enter values into the row and click on "Save" link. The action Listener for the save link is:
    BindingContainer bindings = getBindings();
    DCIteratorBinding iter = (DCIteratorBinding) bindings.get("getMultSortReportListIterator");
    //Read the entered values from the iterator
    Row currentRow = iter.getRowAtRangeIndex(0);
    String reportName = currentRow.getAttribute("reportName").toString();
    String sectionName = currentRow.getAttribute("sectionName").toString();
    Long userId = Long.parseLong(currentRow.getAttribute("userId").toString());
    String viewCriteria = currentRow.getAttribute("viewCriteria").toString();
    //Store to database
    MultipleSortReport multipleSortReportBean = new MultipleSortReport(reportName, sectionName, userId, viewCriteria);
    OperationBinding operationBinding = bindings.getOperationBinding("persistMultipleSortReportTest");
    Map params = operationBinding.getParamsMap();
    params.put("multipleSortReportObj", multipleSortReportBean);
    IMultipleSortReport multipleSortReportInfo = (IMultipleSortReport)operationBinding.execute();
    The problem is that after entering the values into the newly created row, I have to tab out of the row and click with the mouse to place the cursor in the
    end of the next row's first field for the iterator to reflect the entered values. If i enter the last column in the new row and after entering it I directly
    click on "Save", the newly entered values are not reflected in the iterator. The iterator is still reflecting the old values of the row i.e. "" empty fields
    as it was initialized during Create Row.
    Can you help me fix this problem. I want the iterator to reflect the newly entered values without having to tab out of the row.

    Marvin,
    I would suggest starting to debug your new CT in the following order
    1) ABAP - run directly in SAP to confirm you are getting the data you expect
    2) Set breakpoints in ABAP and confirm your transmit is calling into your ABAP as expected
    3) Java - Add breakpoints and step through your Java class to confirm it is getting back the data as expected
    4) ATE - Look at the CT in the ATE to view the contents
    --Bill

  • How do I enable the top row of touch buttons on Pavilion dv6000?

    How do I enable the top row of touch buttons on Pavilion dv6000, they're turned off.
    This question was solved.
    View Solution.

    Make sure that the HP Quick Launch SW is installed.
    Click the White Kudos Star to say Thanks
    Please mark Accept As Solution if it solves your problem

  • How to enable /disable the row in ALV?

    Hi Experts,
    I have gone through some threads on this but I did not find useful to my requirement.
    My requirement is:
    Consider two columns : one is set delete column (a button) and another editable field.
    When the user presses on set delete button. The editable field should be disabled and it should be enabled whenever the user presses the button again.
    Kindly let me know the solution.
    Thanks.

    Hi,
    As i am also new to web dynpro abap. I found it a gud thing to learn about ALV grid.
    So, I tried doing it like that and found that its not at all difficult.
    Here is the procedure that i followed.
    1. Create a context node with two attribute from any table structure and one attribute of type wdy_boolean for controlling the
        enable property of input field.
    2. i used the supply function to fill the node. Here is the code for the same.
    data lt_dealer type wd_this->Elements_zdealer.             "My node name is zdealer
    DATA ls_dealer LIKE LINE OF lt_dealer.
    select * from zdealer into corresponding fields of table lt_dealer.
    loop at lt_dealer into ls_dealer.
      ls_dealer-enable = abap_true.                             "to enable all the fields initially
      modify lt_dealer from ls_dealer.
      endloop.
    node->bind_table( lt_dealer ).
    3. create view container UIelment in the view and embed table view of the ALV used comp.
    4.  add interface controller of SALV_WD_TABLE to the used controller in the view and also add comp controller of our
    local comp to the used controller list of interface contrl of Used comp. And then map the data node to the node we have filled in
    the supply function.
    5. go to the wddoinit method to configure the ALV grid. means adding button and input field and binding the enable property of
    input field. Here is the code for the same.
    data lo_cmp_usage type ref to if_wd_component_usage.
      lo_cmp_usage =   wd_this->wd_cpuse_alv( ).
      if lo_cmp_usage->has_active_component( ) is initial.
        lo_cmp_usage->create_component( ).
      endif.
      DATA lo_INTERFACECONTROLLER TYPE REF TO IWCI_SALV_WD_TABLE .
      lo_INTERFACECONTROLLER =   wd_this->wd_cpifc_alv( ).
        DATA lo_value TYPE ref to cl_salv_wd_config_table.
        lo_value = lo_interfacecontroller->get_model(
    lo_value->IF_SALV_WD_TABLE_SETTINGS~SET_CELL_ACTION_EVENT_ENABLED( abap_true ).
    lo_value->IF_SALV_WD_TABLE_SETTINGS~SET_READ_ONLY( ABAP_FALSE ).
    data btn type ref to cl_salv_wd_uie_button.
    data inp type ref to cl_salv_wd_uie_input_field.
    data col1 type ref to cl_salv_wd_column.
    data col type ref to cl_salv_wd_column.
    data col2 type ref to cl_salv_wd_column.
    call method lo_value->IF_SALV_WD_COLUMN_SETTINGS~GET_COLUMN
    exporting
      id = 'NAME'                         "col name is NAME (col with button)
      receiving
      value = col.
    call method lo_value->IF_SALV_WD_COLUMN_SETTINGS~GET_COLUMN
    exporting
      id = 'LOCATION'                "col name is LOCATION (col with input field)
      receiving
      value = col1.
    call method lo_value->IF_SALV_WD_COLUMN_SETTINGS~GET_COLUMN
    exporting
      id = 'ENABLE'                   "this col is used to control the enable property of input field and we will make it invisible.
      receiving
      value = col2.
    create object btn.
    CREATE OBJECT INP
    EXPORTING
      VALUE_FIELDNAME = 'LOCATION'.
    inp->set_enabled_fieldname( 'ENABLE' ).
    COL1->SET_CELL_EDITOR( INP ).
    btn->SET_TEXT_FIELDNAME( 'NAME' ).
    col->set_cell_editor( btn ).
    col2->set_visible( '01' ).                     " making the enable col invisible
    Now you need to create one eventhanlder for the action of cell action.
    for this create an eventhandler and then even col there select ON_CELL_ACTION for the inerface cntrl of ALV.
    now write the code in this eventhandler for enabling or disabling the input field after checking the current value and
    row number from which the button was clicked. code for the same.
    DATA lo_INTERFACECONTROLLER TYPE REF TO IWCI_SALV_WD_TABLE .
      lo_INTERFACECONTROLLER =   wd_this->wd_cpifc_alv( ).
        DATA lo_value TYPE ref to cl_salv_wd_config_table.
        lo_value = lo_interfacecontroller->get_model(
    data inp type ref to cl_salv_wd_uie_input_field.
    data col1 type ref to cl_salv_wd_column.
    data str type string.
    str = R_PARAM->COLUMN.
    data indx type i.
      indx = r_param->index.               " this will get the row number
      DATA lo_nd_zdealer TYPE REF TO if_wd_context_node.
      DATA lo_el_zdealer TYPE REF TO if_wd_context_element.
      DATA ls_zdealer TYPE wd_this->element_zdealer.
      DATA lv_value LIKE ls_zdealer-enable.
    * navigate from <CONTEXT> to <ZDEALER> via lead selection
      lo_nd_zdealer = wd_context->get_child_node( name = wd_this->wdctx_zdealer ).    
    lo_el_zdealer = lo_nd_zdealer->get_element( index = indx ).     " get the corresponding element.
    lo_el_zdealer->get_attribute(
        EXPORTING
          name =  `ENABLE`
      importing
          value = lv_value ).
    IF str EQ 'NAME'.
      if lv_value eq abap_true.
    lo_el_zdealer->set_attribute(
        EXPORTING
          name =  `ENABLE`
          value = abap_false ).
    else.
      lo_el_zdealer->set_attribute(
        EXPORTING
          name =  `ENABLE`
          value = abap_true ).
      endif.
    ENDIF.
    this will solve it.
    Thanks and Regards,
    Sarbjeet singh

  • Freeze column headers in a table and enable vertical scroll bar on the rows

    I have seen demos of BI Publisher running an html view of a report that displays a table of data with a vertical scroll bar on the table. The table header is always visible as you scroll down on the rows of the table. Any idea how this is achievable?

    Hi,
    Have you find a way to do this? Im looking for the exact same thing!
    Where did you see this demo?
    Br
    Magnus

  • In WPF When Row Virtualisation is enabled the highlighting of rows on SelectedCellsChanged event does not work properly

    I have written code on SelectedCellsChanged that highlights the rows corresponding to cells selected. When I select few cells in wpf data grid it selects corresponding rows. But When I scroll down/up, it automatically selects some random rows every time.
    But when I set EnableRowVirtualization to false in data grid it works properly. I can not keep virtualization set to false as data is huge it and impacts performance of the grid. So I need both of them working together. Please provide some solution for this
    issue I need it urgently.

    I think you errouneously posted your question on the Project forum which is dedicated to the Microsoft scheduling and planning enterprise application.
    Please go to the
    WPF TechNet forum.
    Hope this helps,
    Guillaume Rouyre, MBA, MVP, P-Seller |

  • Tableview getting refreshed when changing data in the rows

    Hi Gurus,
    Iu2019m doing a BSP with MVC. The requirement is as below.
    In the main page there is a button u2018Create Orderu2019, to create a sales order, once I click this button, another screen (pop up) comes up and within that I have a Tableview display with the below fields with the data of 20 records.
    Material no
    Quantity
    Delivery Date
    Here user is allowed to choose the quantity and delivery date by selecting each row.(with MULTISELECT option in BSP)
    The issue is after I select first row and change the quantity and date, and if I click on second row, the Tableview gets refreshed to enable the second row to be editable and the changes what I did on the first row are also refreshed.
    So i want the Tableview not to be refreshed when selecting the multiple rows. So that I can keep the changes I make to the quantity and date fields Can you please suggest any method.
    Cheers,
    Srini.

    Hi Srinivas,
    You need to capture the value entered by user in Quantity and date field and update the internal table with these values for the current selected row.
    For ex.
    The tableView code is like:
                          <htmlb:tableView id                  = "material"
                                     headerText          = "<%= otr(Z_SUS/HEADER_TEXT_MATERIALS) %>"
                                     headerVisible       = "true"
                                     design              = "alternating"
                                     onRowSelection      = "MyEventRowSelection"
                                     selectionMode       = "MULTILINEEDIT"
                                     width               = "880"
                                     filter              = "SERVER"
                                     emptyTableText      = "<%= otr(Z_SUS/EMPTYTABLE_MATERIALS) %>"
                                     iterator            = "<%= iterator %>"
                                     table               = "<%= gt_materials %>" />
    In eventhandler OnInputProcessing :
    DATA: lt_fields type tihttpnvp ,
               ls_fields like line of lt_fields.
    call method request->get_form_fields
                changing
                  fields = lt_fields
    Now the internal table lt_fields contains all the editable cell values , just update the internal table of your tableview with these values.
    You can try these threads
    [Thread-I.|Re: Retrieve changes made in tableView]
    [Thread-II|https://forums.sdn.sap.com/click.jspa?searchID=24460585&messageID=5516977]
    Search the forum for more information on this.
    Regards,
    Anubhav

  • How to Enable All rows in Table

    Hi Friends,
    I have to create table in firstview. My requirement is I will give 4 or 5 inputs at a time then click on save button that input data will be saved in ECC system
    So in First View I have to create table by using apply template that time I have to pass all u201Cinput filedsu201D.
    In that time the table having only first row editable and remaining rows will be disable. I need all rows in enable in that Table.
    Or
    My Requirement is how to enter multiple input detals at a time. At a time customer enter 4 or 5 inputs click on submit buttion that data will be saved in ECC System.
    How to do this work.
    Regards
    Vijay Kalluri
    Edited by: KalluriVijay on Mar 5, 2010 12:34 PM

    Hi Vijay,
    The number of editable rows in the table would be equivalent to the number of elements the node to which the table is bound contains. In your case, it might be only having one element for the node as so you can only see that row enabled while the rest of the rows are disabled. So, in case you want even the rest of the rows to be enabled then, you should just create more elements for the same node (with or without setting any of the attribute within).
    Then, when you need to use the values in the table (existing or modified or new values), then loop through the table node and check if all the attributes within the node or the mandatory field value for the table entry is not nul, otherwise, ignore the corresponding table node element.
    Rather, I would suggest you to have a button say "Add Rows" and within the action of the node, I would like you to create one more element for the table at the end. This way, you wont have any unnecessary element in the table to be checked for not holding any value.
    Regards,
    Tushar Sinha

  • Show the checkbox as selected by selecting the row.

    Hi friends,
    I have a table. It is possible to select multiple rows, after selecting rows, I get the selected
    rows in this table from the context. Now my question is, how can i cause that by selecting a row
    the checkbox on this row will be also selected (shown as checked)?
    So this is the coding in the eventhandlermethod on onselect property of the table:
    METHOD onactionmark_cb .
      DATA lo_nd_table_data TYPE REF TO if_wd_context_node.
      DATA lo_el_table_data TYPE REF TO if_wd_context_element.
      DATA ls_table_data TYPE wd_this->element_table_data.
      DATA lt_table_data TYPE wd_this->elements_table_data.
      DATA lt_set TYPE wdr_context_element_set.
    DATA lv_idx TYPE i.
    navigate from <CONTEXT> to <TABLE_DATA> via lead selection
      lo_nd_table_data = wd_context->get_child_node( name = wd_this->wdctx_table_data ).
    This would now contain the references of all the selected rows
      CALL METHOD lo_nd_table_data->get_selected_elements
        RECEIVING
          set = lt_set.
      LOOP AT lt_set INTO lo_el_table_data.
        " Use the references to get the exact row data
        CALL METHOD lo_el_table_data->get_static_attributes
          IMPORTING
            static_attributes = ls_table_data.
        APPEND ls_table_data TO lt_table_data.
        CLEAR ls_table_data.
      ENDLOOP.
    mark/shhow the checkboxes checkd in the selected rows
    ENDMETHOD.
    Thank you for any help
    Haleh
    Edited by: Haleh Mir Ashrafi on Nov 9, 2008 6:29 PM

    Hi Haleh,
    I tried replicating your requirement and have written below the exact working code for the same. I will try to explain you my component so that you can get to understand its functionality. I have 2 tables & 1 input field in my view. The user enters a customer number in the input field and presses on a button. This leads to the corresponding sales orders filled into the 1st table ui element. The user then selects multiple rows from this table and presses on a toolbar button to copy these selected rows to the 2nd table. Within the same event I also set the checkbox for the rows selected by the user in the 1st tables row to selected. Hope that this would meet your requirement. On pressing the button the system would check if the checkbox is enabled & then mark the selected rows checkboxes as selected and would also copy the rows to the 2nd table. If the checkbox is disabled then the system would neither set it as checked nor copy it to the 2nd table. The rest of the checkboxes for the rows which weren't selected by the user remain as unchecked.
    METHOD onactioncopy_selected_rows .
      DATA:  wd_node TYPE REF TO if_wd_context_node,
             ls_node1 TYPE ig_componentcontroller=>element_node1,
             lt_node1 TYPE ig_componentcontroller=>elements_node1,
             wa_temp  TYPE REF TO if_wd_context_element,
             lt_temp  TYPE wdr_context_element_set.
      wd_node = wd_context->get_child_node( name = 'NODE1' ).
      " Get all the context element information for the rows selected by the user
      CALL METHOD wd_node->get_selected_elements
        RECEIVING
          set = lt_temp.
      " Just get the reference of the 2nd table to which you want to copy selected rows
      wd_node = wd_context->get_child_node( name = 'NODE2' ).
      LOOP AT lt_temp INTO wa_temp.
        CALL METHOD wa_temp->get_static_attributes
          IMPORTING
            static_attributes = ls_node1.
        " Check if the checkbox is disabled/enabled. The "enabled" property of the checkbox
        " is bound to the boolean context attribute by name ENABLED
        IF ls_node1-enabled EQ abap_true.
          wa_temp->set_attribute( EXPORTING name  = 'CHECKBOX'
                                            value = abap_true ).
          APPEND ls_node1 TO lt_node1.
          CLEAR ls_node1.
        ENDIF.
      ENDLOOP.
      " Bind the rows selected by the user to the 2nd table ui element
      wd_node->bind_table( new_items = lt_node1 ).
    ENDMETHOD.
    I have checked your code where you say like:
    IF elem_test->is_selected( ) = abap_true AND stru_test-enabled = abap_false.
    You had earlier fetched the entire elements list using the get_elements method of if_wd_context_node & then checking each 1 of them individually to determine whether it was selected or not using the method id_selected. You can directly get only the elements which were selected by the user by using the method get_selected_elements instead. So now you will only have to check whether the checkbox field in that particular row is disabled/enabled. You now don't have to combine 2 conditions using AND & check them within the loop.
    Regards,
    Uday

  • Document Settings - Calculate the row total using the unit price

    Hi All,
    I'm using SAP2007A PL37, the option "Calculate the row total using the unit price" in Document Settings is no longer available.  Is there any updates on this issue?
    Thank you,

    Hi Marlon,
    In 2007A, by default, new database would be created without this
    checkbox activated.
    However, there is a way to bring this checkbox back to the configuration
    screen, even if it is a DB newly created in 2007A. In order to do so it
    is necessary to do as follows:
    1) Open B1 2007A
    2) Go to Help -> Support Desk -> Activation Request
    3) Copy the ASCII string that appears in the top textbox ("Customer
    Request Code").
    4) Open a Support ticket stating that you want the "Calculate Row Total
    by Unit Price" checkbox activated for the specified system (Copy the
    string in the step 2) into a text file and attach it to the message).
    5) VERY IMPORTANT: State in the message also the Business Impact leading to this request. In your case you should just say that your AddOn needs this option changed in order to work correctly.
    6) You will receive a reply from B1 Support with a number to be entered
    in the "SAP Support Code" textbox in Help -> Support Desk -> Activation
    Request
    7) Click on OK and the checkbox will be displayed thereafter.
    Hope this can be helpful.
    Best Regards
    Helen Sun

  • Index of the row created in webdynpro for ABAP

    hi experts ,
    i got a problem tht ,
    i hve a table and i am using the onaction enter .
    so wen i created a new row and press entr on tht i want to read the index of tht row .
    so pl help in this .
    thanks in advance  .
    its urjent ...
    setu

    As I said earlier, it is not possible to get the index. You can only loop and get the current index by doing a field comparison. That too will fail if you have two identical rows.
    A better idea would be to have your table as read-only. Have a 'Display/Change' button in your toolbar. You should be able to select a row and click on 'change'. Then you should make the row as editable and do your validations on the edited values. If you have your entire table as editable, it will not be easy to track the changes.
    Otherwise, if you want to have the table as editable only, then you can get the changed values using the context change log. Refer to web dynpro component DEMO_CONTEXT_CHANGES to see how this works. You will not get the index, but you will get all the changes that have been done to the context after the last binding.
    Regards
    Nithya

  • Can't omit both the rowset and the row element?

    consider the simple document below. Notice that row-element and
    rowset-element are both empty, so neither type of element will
    be generated. Also notice that the xsql:query tag is embedded in
    other tags.
    I get "oracle.xml.sql.OracleXMLSQLException: The row enclosing
    tag or the row-set enclosing tag is ommitted; consequently to
    get a well formed XML document, the result can only consist of a
    single row with multiple columns or multiple rows with exactly
    one column each." However, in reality the result will be a valid
    XML document because I enclosed the query in a single top-level
    <table> tag. So the error checking code in the XSQL servlet is
    generating a generating a false positive (that is, seeing an
    error that isn't there).
    My question is, how can I work around this problem? I know I can
    let the servlet generate a rowset element and use an XSLT
    stylesheet to remove it but is there a another way?
    Thanks,
    Brian
    By the way, the "numbers" table contains the numbers 1-1,000,000
    and so it can be used to generate multiple copies of the output
    of any query. In this example, I expect to get 55 <th> tags in
    the output (yes, my HTML table is really that wide), all nested
    in a single <tr> tag which is nested inside a single <table> tag.
    <table connection="XXX"
    xmlns:xsql="urn:oracle-xsql"
    xmlns='http://www.w3.org/1999/xhtml'>
    <tr><th rowspan='2'>ID</th>
    <xsql:query rowset-element=''
    row-element=''>
    <![CDATA[
    SELECT 'fvc'          AS "th"
              , 'fev1'     AS "th"
              , 'fef25_75'     AS "th"
              , 'fev1/fvc'     AS "th"
              , 'vc'          AS "th"
              , 'tlc'          AS "th"
              , 'rv'          AS "th"
              , 'frc_n2'     AS "th"
              , 'frc_pl'     AS "th"
              , 'erv'          AS "th"
              , 'dlco'      AS "th"
         FROM numbers
         WHERE n < 5
    ]]>
    </xsql:query>
    </tr>
    </table>

    In XML, single quotes are equivelent to double quotes. This
    enables you to have attribute values like "That's Neat" and
    'About 2" Long'.
    The problem is that an xsql query can only return a tree as a
    fragment (e.g. there must be one root element). I think this is
    too restrictive.

  • TABLE - How to set the row in the table

    I have a problem where I have a selection on one view and then call a second view to display the results in a table. The table displays 5 rows. I then go down to the 20th row and select the row. When I have finished processing, I still have row 20 selected and I go back via a plug to the selection screen. I then enter new criteria and go back to the second view and the table displays that data showing row 20 as the first row. How do I get it to go back to row 1 every time I go into the second view??

    Hello Graeme,
    assuming i understand the problem, as a quick solution it would perhaps help to set the lifetime of the second view from "framework controlled" to "when visible" (in the properties of the view). Another way could be to explictly invalidate the context node holding the data for the second view after having left the view.
    Kind regards
    Andreas

Maybe you are looking for