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,

Similar Messages

  • 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

  • Can you hide a column in a table within a Pages document?

    Is it possible to have a table within a Pages document that allows you to hide columns..... I am trying to make a template for client quotations that requires a column containing discounts which needs to be hidden before I print. Haven't figured out how to make this happen.... can it be done?.... works in Numbers[as per XL] but not in Pages
    many thanks
    Gary

    One of my biggest grievances with Forms Central is the lack of any kind of calculating (living in hope Adobe!)... you will have to do it in Excel.

  • Show/Hide a column in a Table region

    I have search page which queries the data and displays the records in a table region. We need to have an option to show or hide a non-database column at the end of the each row in the table. If the checkbox is selected, the last column should appear and if checkbox is deselected it should get disappeared.
    I have used a transient attribute in the VO and using that transient attribute trying to show the text field when the checkbox is selected. For ex, if the search returns 6 rows - if you select the checkbox of the first row , the last column "CTS" gets displayed without any issues but if you select the other rows (without checking the first row), the CTS column is not displayed.
    The column is getting displayed only IF you select the checkbox of the first row and try it other rows. If you try to select the checkbox of other rows without selecting the 1st row, it doesnt show the CTS column.
    AM has the PPR event
    =============
    public void CheckOnClick(String v_chkBox,String SalesContact,Boolean executeQuery)
    System.out.println("Enters Checkbox event()");
    USSContactMainVOImpl pVO= getUSSContactMainVO1();
    Row poRow[]=pVO.getFilteredRows("Chkbox","Y"); // get all the selected rows
    for(int i=0;i<poRow.length;i++ )
    Row rowi=poRow;
    System.out.println("Value:" + rowi.getAttribute("Chkbox") );
    rowi.setAttribute("CTSEngineer_TR",Boolean.TRUE); // transient attr
    //end of CheckOnClick()

    I just referred to the Dev Guide and understand that we can use the identifier of the PPR event source row (Page 262) but still the issue persists.
    String rowReference = pageContext.getParameter(OAWebBeanConstants.EVENT_SOURCE_ROW_REFERENCE);
    I have a rawtext as the first column( its just a dummy column since the PPR event is not getting fired if the checkbox is the 1st control/column) and the 2nd column is the check box which has a PPR event. The PPR event fires whenever the check box is selected or deselected but surprising the text field gets editable only if the 1st row is clicked.
    Changed code is as always - not sure why the table shows/hides the text column only if the 1st column is selected. Will appreciate any help.
    PFR:
    ===
    if ("OnSelect".equals(pageContext.getParameter(OAWebBeanConstants.EVENT_PARAM)))
    OAApplicationModule am = pageContext.getApplicationModule(webBean);
    System.out.println("The AM name is "+am);
    Boolean executeQuery = BooleanUtils.getBoolean(false);
    String str1 = pageContext.getParameter("Check_Box");
    String v_SalesContact = pageContext.getParameter("SalesContact_qry");
    //1401
    String rowReference = pageContext.getParameter(OAWebBeanConstants.EVENT_SOURCE_ROW_REFERENCE);
    Serializable[] parameters = {str1,v_SalesContact,rowReference,executeQuery };//1401
    Class[] paramTypes = { String.class,String.class,String.class,Boolean.class };//1401
    am.invokeMethod("CheckOnClick",parameters,paramTypes);
    AM(PPR Event)
    ==========
    public void CheckOnClick(String v_chkBox,String SalesContact,String rowReference,Boolean executeQuery)
    OARow rowx = (OARow)findRowByRef(rowReference);
    if (rowx !=null){
    System.out.println("row ref");
    System.out.println("reo fref"+ rowx.getAttribute("CTSEngineer_TR") );
    rowx.setAttribute("CTSEngineer_TR",Boolean.TRUE);
    Edited by: MyOAF on Jan 14, 2010 6:25 AM
    Edited by: MyOAF on Jan 14, 2010 6:26 AM

  • 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 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.

  • Dynamically Hiding Column in a Table View in VC Model

    How to dynamacally hide the columns in a table view in a VC model. Through the expression in Control Property, Form element/field or table view as a whole can be made hidden, however, the individual column can not seem to be hidden.
    I am using VC server version 700.8.0.1.
    Any help would be much appreciated.
    Kind Regards
    Sanjoy

    In this scenario, if the source is SAP BI, you can use the webapi commands. If not, you would have to have 2 separate tables in different layers and you can show and hide those layers or UI elements...

  • Hiding the columns in data table in jsf

    Hi Guys,
    I have stuck one situation in my project . i.e i want to hide the columns in Data table in jsf.
    Please response this mail.
    Thanks
    Narne

    See this...
    [http://forum.java.sun.com/thread.jspa?threadID=5119514&messageID=9938606]

  • Hideing a Column in ALV Table which is Displaying the POWL Query data

    Hi SDNers,
    I want to hide a column of ALV Table which is displaying my POWL Query data in it and hideing should be based on the Role as well. i.e few of the role the column shoudl be hidden and few of the roles should have the Column visible.
    waiting for the Valueble Answers.
    Thanks & Regards,
    Govindu

    Hai Kris,
        I took help from ur link and i declared a global attribute request_number.
    and i created an event handler ON_ALV_INSERT and did the follwing coding for giving default value wen ever am inserting new row.
    FIELD-SYMBOLS: <wa_row> LIKE LINE OF r_param->t_inserted_rows.
      DATA bill_details TYPE REF TO zdom_bill_detail.
      LOOP AT r_param->t_inserted_rows ASSIGNING <wa_row>.
        bill_details ?= <wa_row>-r_value.
        IF bill_details->REQ_NUMBER IS INITIAL.
      DATA lo_nd_bill_detail TYPE REF TO if_wd_context_node.
      DATA lo_el_bill_detail TYPE REF TO if_wd_context_element.
      DATA ls_bill_detail TYPE wd_this->Element_bill_detail.
    navigate from <CONTEXT> to <BILL_DETAIL> via lead selection
      lo_nd_bill_detail = wd_context->get_child_node( name = wd_this->wdctx_bill_detail ).
    lo_el_bill_detail = lo_nd_bill_detail->get_element( index = <wa_row>-index ).
          lo_el_bill_detail->set_attribute(
            EXPORTING
              name  = 'REQ_NUMBER'
              value = wd_comp_controller->request_number
    Wen am  setting the value of wd_comp_controller->request_number to my context attribute am getting NULL object ref error.
    lo_el_bill_detail->set_attribute(
        name =  `REQ_NUMBER`
        value = wd_comp_controller->request_number ).
    Pls give some suggestions,
    Thanks in Advance,
    Nalla.B

  • How to Hide a entire column in a Table Control?

    Can we hide an entire column in a Table control? Plz give some hints in doing the same...

    Here is a sample, if you wish to do it programattically.   If you used the table control wizard, then you should have a module which is listed in the flow logic PBO of the screen.  Its probably commented out.
    itabcon_change_col_attr
    Uncomment it and create the module.  Then put the code that I have in the module below into your module.
    report zrich_0003 .
    *&spwizard: declaration of tablecontrol 'ITABCON' itself
    controls: itabcon type tableview using screen 0100.
    data: begin of itab occurs 0,
          fld1 type c,
          fld2 type c,
          end of itab.
    start-of-selection.
      call screen 100.
    *&      Module  STATUS_0100  OUTPUT
    *       text
    module status_0100 output.
    *  SET PF-STATUS 'xxxxxxxx'.
    *  SET TITLEBAR 'xxx'.
    endmodule.                
    *&      Module  ITABCON_change_col_attr  OUTPUT
    *       text
    module itabcon_change_col_attr output.
    <b>  data: wa like line of itabcon-cols.
      loop at itabcon-cols into wa.
        if wa-screen-name = 'ITAB-FLD2'.
          wa-invisible = '1'.
          modify itabcon-cols from wa.
        endif.
      endloop.</b>
    endmodule.               
    Regards,
    Rich Heilman

  • Hide a column in oracle 8i tables

    I have a table in oracle which contains user name & password. But Password are not encrypted.When one give command select * from mytable it list all passwords.Is there is any way to encrypt or hide column of oracle table. IF any other way of storing password in table please tell me on urgent basis.

    e31e5144-2990-4755-8ca6-7c57ec285959 wrote:
    This weblink might help you people in encrypting the passwords in the tables.
    ORACLE-BASE - Storing Passwords in an Oracle Database
    For any queries, write to me at <redacted>
    Wish you luck.
    Kind Regards,
    Vikas
    Congratulations. You just exposed your email address on the World Wide Web.  Even as you read this, every web crawler on the planet is harvesting your address to be sold to purveyors of various, uh, anatomical enhancement products and offers to give you a piece of the action if you will only provide your bank account information to assist in laundering money out of Nigeria.   I hope you enjoy having your mail box flooded with such offers, because they are on their way.
    Also, it is considered poor nettiquete to take a technical discussion "offline" from the forum where it began, as that prevents others from benefiting from the information exchange.
    ============================================================================
    BTW, it would be really helpful if you would go to your profile and give yourself a recognizable name.  It doesn't have to be your real name, just something that looks like a real name.  Who says my name is really Ed Stevens?  But at least when people see that on a message they have a known identity.  Unlike the system generated name of 'ed0f625b-6857-4956-9b66-da280b7cf3a2', which is like going to the pub with a bag over your head.
    ============================================================================

  • How to hide/suppress empty columns in pivot tables

    In a pivot table, is there any way to do something like "suppress missing data" to make an entire column hidden only if it is empty? I have a situation where I can't hide an entire measure because the measure has values for another dimension, but I would like to hide the column that is empty. See the example below. I would like to hide the combination of Dim1 and Measure 2, and the combination of Dim 2 and Measure 3. I can't hide all columns with Dim1 and/or Dim2, or Measure2 and/or Measure3. Is there any way to hide just the column with the empty combination? Thanks.
    Dim1 Measure1 Always populated
    Dim2 Measure1 Always populated
    Dim1 Measure2 Always null
    Dim2 Measure2 Always populated
    Dim1 Measure3 Always populated
    Dim2 Measure3 Always null

    Bhawna -
    That made a difference, but it still needs some work. The IfNull() function picked up every value in the columns that I wanted to hide and changed them to zero. The conditional formatting that you suggested hid the content in those columns from the HTML. However, there ended up being several issues:
    1) IfNull() picked up other null values that happened to be in the resultset, so the conditional formatting was applied to more than intended. I could correct that by changing the data value in the physical database columns for the entire pivot table columns that I want hidden, but then I have to work around having bogus values in those intersections. Still, that is a possible workaround.
    2) The column headers for the columns that I want to disappear did not go away. When I applied CSS display:none, it shifts the pivot table cells to the left, so a lot of the data ends up under the wrong column headings.
    3) CSS display:none only hides the content from screen readers. When I view the pivot table on the dashboard and print it to a PDF, the data in the columns that I want to disappear are back.
    That still seems like it's a long ways from "suppress missing data" for the entire column. Thanks for your suggestion.
    Daniel

  • 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/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

Maybe you are looking for

  • Training and Event Management - Uploading Data

    Hello, We have recently implemented the training and events module and was wondering if somebody could tell me how training courses and attendees can be uploaded?

  • How to move node in treeView using two buttons ?

    Hello , Am starter , and am working on a Winforms application. I browse an XML file , then I populate treeview in my interface. I want to move selected node in the two sens ( up and down)  using two button ( so not with events , normal drag and drop

  • Acrobat 8 Pro - How do I flip pages and sound files?

    I have made a PDF from a PowerPoint file and as expected the actions were lost from the PPT. I would like to make the PDF to start when opened and change to the next page every 10 sec.  I have tried Advanced/Doc Processing/Page Transitions - set flip

  • Broadcast live to android browser

    Hello i have a web internet live cams aplication and i am using adobe media server 5 i succeed to broadcast http live from web cam to web browser on apple devices using this url: http://localhost/hds-live/livepkgr/_definst_/liveevent/livestream.f4m m

  • OBI SE 1 Administration Tool as a client tool to another OBI SE1 instance

    Our client has installed the OBI SE 1 on a "server" machine with no hassles. They then installed OBI SE 1 again on a different "client machine", in order to use, only the Administration Tool as a client tool to the other OBI SE 1 Server instance. The