Hide repeating column in table

I have a table wrapped in a subform which allows the user to add/delete multiple rows, I want to use a button to hide a column in the table once the use has finished adding/deleting rows.
I have tried:-
xfa.resolveNodes("Tables.Table1.Row[*].deleteBtn").presence="hidden";
Any help would be appreciated

Hi Johannes,
To remove the column completely,
you need to comment this line in the method GET_TABLE_LINE_SAMPLE of the Table View Context node class.
TYPES: BEGIN OF line,
*  thtmlb_oca  type  crm_thtmlb_one_click_action.
  INCLUDE TYPE xxxx.
  TYPES:  END OF line.
Disabling can be controlled in the method GET_OCA_T_TABLE of the same class by putting code to delete the button.
LOOP AT  rt_actions ASSIGNING <fs_actions>.
      <fs_actions>-active  = abap_false.
    ENDLOOP.
Regards,
Masood Imrani S.

Similar Messages

  • How to hide Actions Column in Table

    Hi All,
    I have a simple requirement: I am showing a table (items)
    - the "Actions" column (Column with Buttons to Edit and Delete a particualr row) must not be show -> no changes to the table are allowed (I need to hide/ disable this column)
    How can I hide this column od the table?
    I have found out that the field is called thtmlb_oca and that htere is a getter method get-thtmlb_oca. However, the method does not contain coding and I do not know how to HIDE this field/ column...
    Please help me here..
    Thanks, Johannes

    Hi Johannes,
    To remove the column completely,
    you need to comment this line in the method GET_TABLE_LINE_SAMPLE of the Table View Context node class.
    TYPES: BEGIN OF line,
    *  thtmlb_oca  type  crm_thtmlb_one_click_action.
      INCLUDE TYPE xxxx.
      TYPES:  END OF line.
    Disabling can be controlled in the method GET_OCA_T_TABLE of the same class by putting code to delete the button.
    LOOP AT  rt_actions ASSIGNING <fs_actions>.
          <fs_actions>-active  = abap_false.
        ENDLOOP.
    Regards,
    Masood Imrani S.

  • How do i hide a column in table interface class

    Hi,
    I need to hide a column in Abap table interface class. When i tried to hide from web item properties it didn't work so i am thinking to hide first column in the table interface class
    Thanks,
    mala

    In the WebApplication Designer start Tools -> View Definition -> Based on a Query. Choose your query, change layout to your requirements and save the view. Now just use the view in your webtemplate.
    Pls assign points if answer is useful
    <a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/u/37289">vitaliy</a>

  • Hide Move Columns on tables 11.1.1.5.0

    Hi! I'm using obiee 11.1.1.5.0 and I got it hide order columns with css style. (add code in a dashboard page)
    Now I would like to approach hide move columns....
    You can see in my image that arrows are gone in my table...but still move columns...I need to remove it!
    Anybody knows about it??
    Thanks!
    http://imageshack.us/photo/my-images/850/moveau.jpg/

    In version 11.1.1.5.0 I don't have this option...but I have a good solution:
    we have to add a text in a dashboard page like this:
    <style type="text/css">
    .PT_SI{ 
    display:none;
    .PT_HGHT{ 
    display:none;
    </style>
    mark HTML
    We coudn't sort any column coudn't move any column :)

  • Hide a column in one view, but show in other

    Hi all.
    I need to hide a column on "Table" view, but column needs to show up on "Pivot table".
    I know we can hide it on pivot ( exclude It ) and show on table, but I want to know if reverse is possible.
    This is needed because I am doing a view selector for writeback. And I dont want to display all the columns on writeback table view. But it needs to be there on Pivot table.
    Please let me know if it is possible.
    Thanks.
    Vinay

    Yes we can do that.
    Check on the "Hide" in the column format tab of the column that you need to display in the table lay out.
    Now dupliate the same view and in the pivot table column intially you will not see the column displayed.
    Now in the properties check on "hidden" in the "format headings" and you wont see it still and now uncheck the"hidden" and you shoud be able to see the column displayed in the pivot view
    In this way you will have the column hidden in the table view and displayed in the pivot table.
    Hope it helps
    Prash

  • Hiding columns in table control

    Hi Experts,
    I have requirement to hide certain columns in table control. I have tried my best to use SCREEN structure with ACTIVE, INVISIBLE, INPUT, OUTPUT options, but not working properly.
    The table control has nearly 10 columns with DATE as the first one. Once the screen appears after executing program, the second and third columns should be hidden and when double clicked on any date value from the basic list, the hidden columns should be visible with its values in the next level.
    I am not able to hide columns in table control. By the way, suggest me options for double clicking in table control too.
    Thanks.

    Hi,
    The value of sy-ucomm when user double clicks is /CS
    To get the details of field name and value use:-
    GET CURSOR FIELD g_cs_field VALUE g_cs_value.
    Now you can code in PAI to display those two columns initially hidden by the user:-
    CASE sy-ucomm.
      WHEN '/CS'.
        IF g_cs_field = '<field1_name>'.
          LOOP AT SCREEN.
            IF screen-group1 = 'ABC'.
              screen-invisible = 0. "display control
              screen-active = 1.
            ENDIF.
            MODIFY SCREEN.
          ENDLOOP.
        ENDIF.
    ENDCASE.
    Remember that in PBO of screen you have written a code to hide these same columns initially, so make sure that the code is not executed when user double clicks to display those columns.
    Try this code for hidding the columns in table control initially.
    MODULE status_8001.
      LOOP AT SCREEN.
        IF screen-group1 = 'ABC'.
          screen-invisible = 1. "hide control
          screen-active = 0.
        ENDIF.
        MODIFY SCREEN.
      ENDLOOP.
    ENDMODULE.
    Hope this helps you.
    Regards,
    Tarun

  • Hide/remove column  in adf pivot table

    Is it somehow possible to hide or to remove column (I need to hide agregate column, but is it possible for regular data cell) dynamically when some conditions are met? I've tried getDataFormat and getheaderFormat methods to set width of the columns to 0, but it doesn't work. Also I've tried to set rawvalue of data cell to null/"" and width to 0 but without success to hide column. Problem applies to adf pivot table 11g.
    Thank You!

    HI,
    You have the option for the column as to be suppress or repeat
    Go to column properties and go to column format second tab select the option Suppress.
    Regards,
    VG

  • Pivot Table - Hide Repeated Values

    Page 131 of the Answers user guide refers to a 'Hide Repeated Values' setting for pivot tables. I don't see this anywhere. Please help!

    Hi,
    you can find 'Hide Repeated Values' in option menu of a column dragged and dropped in Section.
    Regards
    Cosimo

  • Hide a column in one table view but show it in another

    I need to hide a column in one tables view but show it in another table view in the same report. Is this possible?
    Any help on this is appreciated.
    Edited by: VNC on Jan 11, 2010 9:26 AM

    Hi VNC,
    If you're crafty with javascript, you could probably write a script that would set the CSS property DISPLAY to NONE to hide the column in the table view you didn't want but leave it there in the view you did want.
    -Joe

  • Hide columns in table interface

    I've used SAP's 'How to ... Hide a column in your Web Query with the Table Interface".  The problem is that if I do any OLAP function my headings reappear.  It doesn't look like the 'structure_cell' method is being called.  Is there a way to force this method to be call?  Or is there a flag to reset in the table class that tells the class that this is the first time running the report.  It seems that the initinal run is different than if you use any OLAP function.

    Make sure the STATELESS navigation state of the template is not set. There is no properties which needs to be set in the class for this.
    Thanks.

  • Hide Column in table control

    Dear All,
    I need to hide some columns of a table control during runtime. I have used the following code:
    LOOP AT SCREEN.
    if screen-group1 = 'AA'.
    screen-active = 0
    screen-invisible = 1.
    modify screen.
    endif.
    ENDLOOP.
    Thanks and regards,
    Atanu
    Edited by: Atanu Dey on Jan 4, 2008 1:38 PM

    Hi Athanu,
                    Try the below code.That will solve ur problem.
    loop at screen.
    if screen-group1 = 'AA'.
    screen-input = '0'.
    endif.
    modify screen.
    endloop.
    Award points if helpful.
    Kiran Kumar.G
               Have a Nice Day.

  • RE: Hide a column in web report using table interface class

    Hi,
    I want to hide first column in web template using table interface class. Following is the code i used in CAPTION_CELL and CHARACTERISTIC_CELL. Is this correct?
    method CAPTION_CELL.
    *First column
    if i_x = 1.
    add comment tag
    move '<!-- ' to C_CELL_CONTENT.
    endif.
    endmethod.
    method CHARACTERISTIC_CELL
    First column
    if i_x = 1.
    save start-time column
    move I_CHAVL_EXT to L_STARTTIME.
    add comment tag
    move '<!-- ' to C_CELL_CONTENT.
    endif.
    endmethod.
    When i execute the web template it is still displaying the first column. Do i have to code in any other method?
    Thank you,
    Mala Venkatesh

    Hi , the implementation should look like...
    method CAPTION_CELL .
    *CALL METHOD SUPER->CAPTION_CELL
    EXPORTING
    I_X =
    I_Y =
    I_IS_EMPTY =
    I_IOBJNM_ROW =
    I_ATTRINM_ROW =
    I_TEXT_ROW =
    I_IOBJNM_COLUMN =
    I_ATTRINM_COLUMN =
    I_TEXT_COLUMN =
    I_IS_REPETITION =
    I_COLSPAN =
    I_ROWSPAN =
    CHANGING
    C_CELL_ID =
    C_CELL_CONTENT =
    C_CELL_STYLE =
    C_CELL_TD_EXTEND =
    First column
    if i_x = 1.
    add comment tag
    move '<!-- ' to C_CELL_CONTENT.
    endif.
    Second column
    if i_x = 2.
    close comment tag
    concatenate '--> '
    C_CELL_CONTENT
    into C_CELL_CONTENT.
    endif.
    endmethod.
    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 =
    First column
    if i_x = 1.
    save document-item number
    move I_CHAVL_EXT to l_docitem.
    add comment tag
    move '<!-- ' to C_CELL_CONTENT.
    endif.
    Second column
    if i_x = 2.
    close comment tag
    concatenate '--> '
    C_CELL_CONTENT
    l_docitem
    into C_CELL_CONTENT
    separated by space.
    endif.
    endmethod.
    Activate the methods/class and add this in the Web Template!
    for example:
    <param name="MODIFY_CLASS" value="ZHCOLAPP">
    ZHCOLAPP is the table interface class in this case.
    Best,
    Michael

  • Hide a column in a table

    Hi,
    Can anybody tell me how to hide a column in a table using smart forms.

    Hi,
    One way you can do is by putting a condition on the Text that is displaying in that column.
    Or
    If you want to remove the entire column ... Create 2 tables One with the column and other without.
    Display the data in the tables conditionally.
    Regards,

  • Hide column based on condition on other column in table

    hi,
    am using BIP 10.1.3.2 to generate reports.In the template i need to hide one column based on condition on other.am using SQL query as my data source type.can anybody help me ?

    Use <?if:?> condition in the RTF, but its mainly for the rows not column. You can work around this by handeling in backend. Or take two separate tables, one with the column which you want to hide and another table without that column and before calling that table use IF condition.
    Regards,
    Amit D
    Persistent Systems Ltd.

  • Web Report - Hide Repeated Values

    My web report hides repeated values regardless of the query setting. 
    Is there any way to set a specific column to not hide repeated values?  Using the table API?
    Thanks!

    dear Kenneth,
    have you try to remove the check mark of properties 'suppress repeated text' in 'specific' section of your web item 'table' in web template ?
    or you can give parameter SUPPRESS_REPETITION_TEXTS for web item 'table' with value blank
    <param name='SUPPRESS_REPETITION_TEXTS' value=' '>
    doc may useful
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/13dc9190-0201-0010-71a4-a9f56cdfcc72
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/b1089290-0201-0010-288c-98e4d26487ee
    hope this helps.

Maybe you are looking for

  • How to get Composite video output with Lightning devices?

    I am replacing my last 30-pin device this week, and now all of our devices are Lightning cords.  I have the Apple Composite AV cables in my vehicles, but Apple does not offer a Lightning version of them.  From what I read on the 30-pin to Lightning a

  • Music not showing up in iPod

    My wife & I both have 30GB iPods. She has been managing her's from her computer, I've been managing mine from mine. Recently she wanted some music I had already ripped to my computer. I hooked up her iPod, everything looked fine, I copied the music,

  • Is there Java 6 for Mac as well?

    I am not so sure if i m asking this in the right place. is there a section dedicated for java 6? but i really like to know, if there's Java 6 beta for Mac as well. thanks.

  • BO XI 3.1 Sp2 OLAP Universe - MDX Function

    Hi all, How i tuse MDX Functions in OLAP Universe ? Iam getting parse ok in Universe . getting error in while creating webi report

  • Receive oracle errors 12560 and/or 12545 under windows xp ...

    last monday, 9.10.06, some changes inside the active directory where done by our AD/admin. since then the logon fails to one spec. application, called tocom, written in sql/windows of co. gupta, only from windows xp clients. windows2k clients still c