Header characteristic cell (table interface)?

Hi folks,
I'm using a table interface (herited from cl_rsr_www_modifiy) to customize the data cell value.
I want to add a link which will contain as url parameters the corresponding row and header  characteristic_cell i_chavl of the data_cell.
To get the current row characteristic_cell i_chavl, I redefined the method characteristic_cell as follow :
IF I_X = 1.
  L_FILTER = I_CHAVL .
ENDIF.
Thus the method data_cell can retrieve the corresponding row i_chavl.
The problem is to get the header i_chavl... If I use the same way as above, I will only get the latest header i_chavl value of my table (since that a table is created from left to right, up to down)...
How can I get that header back for the method data_cell?
I was thinking of defining cell_content_id to the header characteristic cells and get it back by a javascript function call...
Before going futher, I would like to listen to your suggestion.
Thx
Bvs

You can define an additional table (on a structure) as attribute to your class.
In the characteristic_cell definition, you can populate this structure (alogwith i_y value)
In data_Cell you can read this table based on i_y value.
In start method, you can refresh this table.
I am sure there is an easier way (you can access all information in n_r_request) in data_cell method, but you will need to explore n_r_request to see where the relevant information is. In this case you won't need to do the above.

Similar Messages

  • Table Interface / Web: value from free characteristic

    Hi,
    i am using 2 queries. In the first query i got the free characteristic "calendar year month". Now i created a link with table interface to jump to the second query. With this link i would like to filter query 2 with calendar year month from query 1. How can i get the value from the calendar year month? With drill down there is no problem to get the value in method CHARACTERISTIC_CELL. But with free characteristics this is not so easy.
    Any ideas?
    Regards,
    M. Erbil

    Hi Erbil,
            Please find below the usage of GET_STATE_INFOS,
    DATA  l_sx_axis_data TYPE rsrds_t_axis_data.
               CALL METHOD me->GET_STATE_INFOS
               IMPORTING
               E_T_SLICER = l_sx_axis_data.
    You can get the 0CALMONTH from the above resultset.
    Cheers,
    Kartheek

  • Table  Interface : Merge cells in the same column

    I want to use the Table Interface to accomplish this...
    I need to merge cells that are to the top/bottom of eachother. So, the 2 cells have the same InfoObject. They are 2 different values and i want them to appear in the same cell... for example..
    A regular table returns:
    STATUS
    ¯¯¯¯¯¯¯¯¯
    OPEN
    CLOSED
    I want it to be displayed like:
    STATUS
    ¯¯¯¯¯¯¯¯¯
    OPEN
    CLOSED
    The vertical lines on the right should be lined up but i cant get it to format. Anyway, how can this be accomplished?
    Thanks.

    We have data object which is a very long text.  Much longer than the 60 char limit.  So, we're thinking of breaking the text up into 60 char chunks.  And then put each chuck beneath one another.  But we need the texts to look like they're all in the same cell.
    I first thought of manipulating the borders using CSS styles.  But I couln't figure out how to tell if I've reached the last line of the text.  (I was trying to use I_Y to navigate through the column.)
    Second thought, merge the cells.  This would be more efficient.
    Thanks.

  • Table interface API: Possible to remove "unasigned" cells?

    Dear all,
    I was wondering if I could use the table interface API to remove the "###" or "unassigned" values in a cell of a query?
    Thanks in advance,
    Andreas

    Andreas,
    you could use the table interface to remove display of the values - you can set it to have a blank space if required....
    In the table modifier - check for Null or INITIAL in the cell contents...
    Arun
    Message was edited by:
            Arun Varadarajan

  • Problem with Characteristic cell width

    Hi All,
    I'm struggling to get the characteristic cell width using the table interface to work correctly.
    I have coded the following in CHARACTERISTIC_CELL in the table interface :
    move 'style="width:230px"' to c_cell_td_extend.
    This appears to work in the Dev system but moving to production, it no longer applies and the charcteristic cells are the size of the values from the queries.
    Would anyone have had this same prob or an idea of how to force the charcteristic cells to be the width I want them ?
    The reason I am doing this is because I need to place multiple table results above one another and when I remove the cell headings the columns misalign ...
    Thanks
    Chris

    Chris,
    if your modifier is working properly , you should be able to see the width=230px in the HTML source of the template.
    Another way could be to attach this width to a stylesheet class and attach the class to the cell instead.
    Arun
    Assign points if useful

  • "own checkboxes" in Web with Table Interface?????????u00DF

    Hi to all experts,
    i have the following scenario:
    I am using a query in web. Well in the lines there is a characteristic (for example sales org) and in the columns a keyfigure with an exception and a top10 condition. I think exception and condition are not important for my problem but the table is. Now i want to see in front off all lines a checkbox.  That means i have - for example - now 10 sales organizations in my query and in front of all sales orgs there should be a checkbox. I think that should be realized with table interface. Now the user should be able to mark two ore more checkboxes to jump with the Report Report Interface by using a link to another Web report? Is that possible? Sounds hard i think or isnt it?
    Regards,
    M. Erbil

    Hi Memo,
    try the following. Create a template with a web item table. Than by using se24 create your own class for table interface. Change method DATA_CELL.
    method DATA_CELL.
    *CALL METHOD SUPER->DATA_CELL
    EXPORTING
       I_X                   =
       I_Y                   =
       I_VALUE               =
       I_DISPLAY_VALUE       =
       I_NUMERICAL_SCALE     =
       I_NUMERICAL_PRECISION =
       I_CURRENCY            =
       I_UNIT                =
       I_ALERTLEVEL          =
       I_IS_SUM              =
    CHANGING
       C_CELL_ID             =
       C_CELL_CONTENT        =
       C_CELL_STYLE          =
       C_CELL_TD_EXTEND      =
      data: l_cell_content type string.
      if i_x = 2 and i_is_sum <> 'X'.
        concatenate l_cell_content '<INPUT type=checkbox value=ON name='
        '' filter '' '>' into
        l_cell_content.
        c_cell_content = l_cell_content.
      endif.
    endmethod.
    You can hold the value from characteristic in method CHARACTERISTIC_CELL:
    method CHARACTERISTIC_CELL.
    *CALL METHOD SUPER->CHARACTERISTIC_CELL
    EXPORTING
       I_X              =
       I_Y              =
       I_IOBJNM         =
       I_AXIS           =
       I_CHAVL_EXT      =
       I_CHAVL          =
       I_NODE_IOBJNM    =
       I_TEXT           =
       I_HRY_ACTIVE     =
       I_DRILLSTATE     =
       I_DISPLAY_LEVEL  =
       I_USE_TEXT       =
       I_IS_SUM         =
       I_IS_REPETITION  =
       I_FIRST_CELL     = RS_C_FALSE
       I_LAST_CELL      = RS_C_FALSE
       I_CELLSPAN       =
       I_CELLSPAN_ORT   =
    CHANGING
       C_CELL_ID        =
       C_CELL_CONTENT   =
       C_CELL_STYLE     =
       C_CELL_TD_EXTEND =
    data: l_filter type string.
    Store characteristic value of current row
    if i_x = 1 and i_is_sum <> 'X'.
    l_filter = i_chavl.
    endif.
    endmethod.
    Please note that "i_chavl" holds the key value from characteristic.
    Now back to method DATA_CELL and insert something like this:
    filter = l_filter. "l_filter is set in method characteristic cell
    so it look like this:
    method DATA_CELL.
    *CALL METHOD SUPER->DATA_CELL
    EXPORTING
       I_X                   =
       I_Y                   =
       I_VALUE               =
       I_DISPLAY_VALUE       =
       I_NUMERICAL_SCALE     =
       I_NUMERICAL_PRECISION =
       I_CURRENCY            =
       I_UNIT                =
       I_ALERTLEVEL          =
       I_IS_SUM              =
    CHANGING
       C_CELL_ID             =
       C_CELL_CONTENT        =
       C_CELL_STYLE          =
       C_CELL_TD_EXTEND      =
      data: l_cell_content type string,
            filter type string.
      if i_x = 2 and i_is_sum <> 'X'.
    filter = l_filter.
        concatenate l_cell_content '<INPUT type=checkbox value=ON name='
        '' filter '' '>' into
        l_cell_content.
        c_cell_content = l_cell_content.
      endif.
    endmethod.
    Hope it works
    Regards,
    Adem

  • Hiding a row based on the the drill down via table interfaces

    I have a requirement to hide a particular row (key field) of a table if a characterisitic (0PLANT) is included in the table.
    I have managed to hide the key field via the table interface but need to know how I would see if the characteristic is drilled down (IE included in the table).
    Initially I used CAPTION_CELL to establish whether 0PLANT was in the report but when I then removed 0PLANT from the report, CAPTION_CELL is not reprocessed and thus the report is incorrect.
    What is the best way to establish what characteristics are included in any report.
    Any help would be appreciated.
    Cheers
    Shep.

    Hi Neal,
    why not using the service method get_state_infos.
    In e_thx_axis_info you should find all relevant information
    http://help.sap.com/saphelp_nw04/helpdata/en/32/ab3a3c24b4a00ae10000000a11402f/frameset.htm
    Heike

  • End of table in table interface

    Hi ,
    I have a scenario, where I want to add some rows to HTML table.  I can do this by table inerface, but how do I know that I have reached end of the table .
    Regards
    MB

    Hello,
    unfortunately this is not possible via table interface, you can only change (or hide) the value of existing cells.
    Can you give us a example what you want to add, maybe we can find a solution.
    Regards Marcus

  • How to insert a button on the column header of a table in webdynpro java

    Hi
    Can anyone tell me how to insert a button on the column header of a table in webdynpro java?
    regards
    sunit

    Hi sunit,
    Instead of adding button in the column header , in the column
    add a fixed top cell.
        right click on the column
        Insert FixedTopCell
        Right click on the fixedTopCell
        insert Editor.
       select button.
    then button will be only in the top most row.
    Hope it will satisfy ur requirement
    Regards
    Smitha

  • Table Interface "destroys" Excel download

    Hello all,
    i made a webtemplate with 3 dataproviders. To download all into one excel sheet i implemented the How-To-Paper:" Web printing with Excel". It works fine.
    Now i attached a table interface class to the webtemplate which adjust some cells regarding color,....
    If i now download the template to excel for example: a percentage value like 48.59% 8web) is shown in excel 0.48 %; a normal value like 600 (which is normally 599.57 but rounded in webtemplate) is in excel 600 it should be 599.57).
    If i detach the table interface class it works fine again.
    Can anybody help ?
    Thanks
    Marc

    HI,
    I am having the same problem.
    Any solutions for this?
    Thanks,
    Andreas

  • Error : Transaction header and line tables cannot be empty

    please can some one help me.
    when i want to create an invoice without anuy line, i have the error : Transaction header and line tables cannot be empty .
    can some one tell me how can i solve this
    regards.

    Hi,
    I really don't know if it is possible to create an invoice in AR with no transaction lines. When I interface invoices from another system to AR (and there is no need to detail inventory items), I use a single line with a dummy inventory item or with no inventory item (inventory_item_id and warehouse_id set to null) in transaction lines, and I use the description field to describe the link to the other software in a user-friendly way.
    Regards,
    Ketter Ohnes
    Message was edited by:
    Ketter Ohnes

  • Table Interface - Urgent

    Hi all,
    I would like to use the table interface to hide a lot of consecutive rows (more than 100) in a web query.
    Therefore I've redefined both DATA_CELL and
    CHARACTERISTIC_CELL method with coding
    move '<!-- -->' to c_cell_content for the referring rows.
    The effect is, that the cell content is hide but all rows are shown furthermore with a minimal heigth.
    Could anybody help me?!
    Bye
    Hagen

    Dear Hagen,
    why don´t use the "show rows" paramter of table item in WAD this will not create (not hide) the rows more than 100 or make a condition top 100 into the query this is better for performance than just hide them.
    If you want to do it by Table Interface you have to change the methode structure_cell as well.
    Regards
    Marcus

  • N_r_data_set- n_sx_version_20a_1 table interface

    Can anyone tell me how the n_r_data_set->n_sx_version_20a_1 structure is used in a table interface? I have been able to take a look at it contents in the debugger and see that it holds all data pertaining to the cells in a table.  What I want to do is delete records from this structure but I don't know if I am allowed to do so since it is a "deep structure" and not a standard table.
    Please Help!!

    Yes Paolo,
    I had a chance to read the documentation but this does not tell me how my changes to the internal table are passed to the OLAP Processor.  If I delete some rows in my internal table, how do I pass those changes to the OLAP since it will not read the internal table?  What I have done is deleted some records from the cell_data internal table using the debugger but those changes were NOT reflected in my HTML rendered table. What I am trying to do is to delete a row in my table whenever an attribute in that row is equal to a certain value.  Can you give some insight on how this can be done?

  • Colouring a header in a table ?

    Hi People,
    Is it possible to give color shade to the header of a table in smartform?
    thanks,
    siva

    Hi siva,
    If you want to shade your each cell of the table header then it is possible and even you can color your text header of the table.
    when you create the text for header you can see in the output options tab BOX and SHADING in that select the color for frames and color for shading.
    By the above procedure you can achieve the color. Hope you got my explanation.
    Cheers!!
    VEnk@

  • How to apply a commandlink to an ADF Header row cell

    I am implementing an ADF read only table. I have one column that I am designating as an add/delete column. In simple terms I would like the cell for this column in the header row to have a command link behind it which pops up an "Add Row" form. For each individual detail row the column will have a command link with the "Delete" function. I am having no problems with the delete.
    My question is, "Does anyone have guidance on how to apply a command link to a header row cell"

    Here is a sample based on your use-case:
    <af:table value="#{bindings.Employees.collectionModel}" var="row" rows="#{bindings.Employees.rangeSize}"
    emptyText="#{bindings.Employees.viewable ? 'No data to display.' : 'Access Denied.'}"
    fetchSize="#{bindings.Employees.rangeSize}" rowBandingInterval="0"
    selectedRowKeys="#{bindings.Employees.collectionModel.selectedRow}"
    selectionListener="#{bindings.Employees.collectionModel.makeCurrent}" rowSelection="single"
    id="t1">
    <af:column sortProperty="#{bindings.Employees.hints.FirstName.name}" sortable="false"
    headerText="#{bindings.Employees.hints.FirstName.label}" id="c1">
    <af:outputText value="#{row.FirstName}" id="ot1"/>
    </af:column>
    <af:column sortProperty="#{bindings.Employees.hints.LastName.name}" sortable="false"
    headerText="#{bindings.Employees.hints.LastName.label}" id="c2">
    <af:outputText value="#{row.LastName}" id="ot2"/>
    </af:column>
    *<af:column id="c3">*
    *<f:facet name="header">*
    *<af:commandLink text="Add" id="cl2"/>*
    *</f:facet>*
    *<af:commandLink text="Delete" id="cl1"/>*
    *</af:column>*
    </af:table>

Maybe you are looking for