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

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

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

  • Is it possible to show/hide dynamically columns in RDLC form?

    We need to show/hide dynamically columns in our Report RDLC form based by the user desire needs.
    We need by the predefined checkboxes to set which columns should be seen and which should be hidden.
    Is it possible in RDLC form to make it "show/hide columns dynamically" with any way?

    Depends on what you mean dynamically, you still need to press the view report button.
    What you can do is right click on the column you want to be able to hide/display in design mode,
    click "Column visibilty", choose "show or hide based on an expression" then in your expression base your true or false on a boolean parameter for each column

  • BOM: Show/Hide standard columns in CS03

    Hi,
    investigating the code I can see that in the transaction CS03, CS02 the table with data of standard position contains many columns that i would like to display them.
    Currently, I can only see some columns, leaving other hidden. How I can show / hide the present columns in the table of positions?.
    Thanks.

    Inside the CS02 screen you can find table settings, will be there in top right. there you can make the field invisible.

  • Show/hide a column  in JTable

    I want to show/hide columns in JTable
    How is this possible
    Note that columns that are hidden may be showed later
    thanks in advance
    Renjith

    I tried out for this:TableColumn col = jTable.getColumnModel().getColumn( colnum );
    if( col != null )
      col.setPreferredWidth( 0 );
      col.setMaxWidth( 0 );
    }But the column seems to have minimum width which you can't even change with col.setMinWidth( 0 );

  • How do you add calculation columns to a table Region by using the Footer?

    I have a requirement to add some aggregate metrics at the bottom of my "tableRegion". The "TotalValue" property value for the table is not going to work for me since I the data I'm calculating is more complicated then doing a simple "sum".
    My first try (simple test case) was to use "OATableFooterBean". However, when it tries to find the table bean, it comes back as "null":
    if (empDetails != null) {
    OATableFooterBean tblFooter =(OATableFooterBean) empDetails.getFooter();
    if (tblFooter != null) {
    tblFooter.setAttributeValue("EmployeeName", "Merit Inc Target/Budget");
    I'm guessing it is due to not defining a "footer" region for my "table" region. When I click on the "Table" region, then due "New", I dot see "Region" listed as an option. So my question is how do I add a region "footer" to my "table" region? Once I have that, I'm sure it will solve the "null" exception I'm seeing for trying to get the table footer in the above code.
    Thanks

    Hi,
    For this create a transient attribute in the VO.
    Perform your required logic on this new transient attribute.
    Now create a footer region and create a styledtext and assign this transient attribute.
    Regards
    Sridhar

  • Show Hide Few columns rows in a report

    Hi All,
    I had requirement to develop an application having a report and based on some condition we need to hide or show few rows on clicking. Please view this report [here |http://apex.oracle.com/pls/otn/f?p=33897:1]
    For example if I give CUSTOMER_ID as a hiper link when I click on "1" first 5 rows only should be visible. That is I need to toggle between hidden and shown condition.
    I tried using Java Script
    <script type="text/javascript">
    <!--
    function toggle_visiblity(id) {
    var e = document.getElementById(id);
    if(e.style.display == 'none')
    e.style.display = 'block';
    else
    e.style.display = 'none';
    //-->
    </script>
    And then using this script in query selecting the table and enclosing in &lt;div &gt; tag.
    It works for a single column but few rows it doesn't work. Can someone please help me here. Thanks in advance.
    Thanks & Regards,
    Vikas Krishna

    Hi
    Vikas.
    Here is an exmaple using emp (changed the empno to reflct you data so it's 10,11,12,13,100,101 etc...). I created a report with the source as
    SELECT FLOOR(empno/10)*10 startid,
           DECODE(CEIL(empno/10)*10,FLOOR(empno/10)*10,CEIL(empno/10)*10+10,CEIL(empno/10)*10) endid,
           DECODE(MOD(empno, 10),0, empno, NULL) empno
         , empno empno1
         , ename
         , job
         , mgr
         , hiredate
         , sal
         , comm
         , deptno
    FROM bb_emp
    ORDER BY empno1Then I created a new template from scratch and selected named rows. I created Row Template one as
    <tr>
    <td>#EMPNO#</td>
    </tr>
    <tr id=row#EMPNO1#>
    <td>#EMPNO1#</td><td>#ENAME#</td><td>#JOB#</td><td>#MGR#</td><td>#HIREDATE#</td><td>#SAL#</td><td>#COMM#</td><td>#DEPTNO#</td>
    </tr>Then I included js in the header as follows
    <script type="text/javascript">
    <!--
    function toggle_visiblity(startid, endid) {
    var i;
    var id;
    for (i=startid; i<=endid; i+=1)
         id = 'row' + i;
         $x_Toggle(id);
    //-->
    </script>Then I hid the startid and endid columns in the report attributes and change empno (not empno1) to be a link as follows
    javascript:toggle_visiblity(#STARTID#,#ENDID#);This now works as (i think) you wanted. Obviously you'll have to put all you formatting etc. from your theme into the template.
    Cheers
    Ben
    http://www.munkyben.wordpress.com
    Don't forget to mark replies helpful or correct ;)

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

  • Why se11 does not show all the columns of a table

    I have some text tables, e.g., T6WP4, when I look in SE11 it show me only two columns:
    MANDT and ETIF0.
    But when I look in contents of this table (SE16 or clicking table content icon in SE11), it show three columns:
    MANDT and ETIF0 and ETITX.
    I found this to be true with some other text bales as well TMBW1

    Hi zigzagdna,
    in SE11, Menu Goto -> text table you will switch to the text table. Look at the foreign key definition to see the relationship marked as text table.
    This is one of the basic concepts to enable a SAP-system to be  multi-language enabled - although 99% of all installations are strictly single monolingual -:)
    See also documentation [Text Tables|http://help.sap.com/saphelp_47x200/helpdata/en/cf/21ea9e446011d189700000e8322d00/frameset.htm], [Type of Foreign Key Fields|http://help.sap.com/saphelp_47x200/helpdata/en/b2/fbb85cc64611d295dd00a0c929b3c3/frameset.htm] and [Semantic Attributes of Foreign Keys|http://help.sap.com/saphelp_47x200/helpdata/en/cf/21ea91446011d189700000e8322d00/content.htm]
    It is a SAP feature that in SE16/SE16N the text is displayed in logon language if a text table is defined for the table displayed. If you want to maintain those table directly, you have to specify the language explicitly, usual SY-LANGU can be used as the LOGON language. Be aware that this is one-charcater internal (E=English) but 2-character external (EN = English, conversion exit used).
    Regards,
    Clemens

  • File Browse Option don't show me all Column in Data / Table Mapping

    Dear Friends,
    i am using 4.1 on APEX.ORACLE.COM.
    i have to created page with DATA Upload option.Page are ctreated successfully But there is one problem when i COPY & PASTE DATA from Excel Sheet then Data Upload Success fully.
    But When I use File Browser Option to Upload Data Then In Data / Table Mapping Step that show me Only One Column Name Select list with Do Not Load default option . but i have 7 column name in Excel Sheet. that should be display me 7 Select List to select All column name which are mention in Excel Sheet
    Please tell me where i am wrong and how to display all Column name in Data / Table Mapping step to upload Excel Sheet Data.
    How to Resplve this issue.
    Thanks
    Manoj Kauhsik

    Dear Earl,
    Thanks to reply me.
    I am not using Utility to upl;oad Excel Sheet Data.
    i am go through Apex.oracle.com .i have create an application to upload data from Excel Sheet.
    There is an option DATA UPLOAD when we create new Page so i have choose this option and create Pages with follow all instraction .By using this option i want to an Feature in my Application to Upload Data .
    When i use Copy and Paste OPtion to upload data from Excel Sheet.then Data ar Uploaded but Problem Is When i use File Browser Option to upload data then that show me only one option for Column name rather than i have 7 Column in My excel file.
    i have one more problem ,i have .csv file when i open it and close then no problem but when i reopen it then that show me a pop up with Meassages
    "Excel has detected abc.csv file is a SYLK file.but can't load it".
    How resole it.Please suggest me.
    Thanks
    Vedant

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

  • Carl - Show Hide columns and report templates

    Carl,
    I've implemented the show/hide report column techniques from your demo pages. Thanks for that, it's working well.
    I am having a slight issue. I'm using theme12, and when I implement the technique there with the alternating row color template, the functionality works fine. But when I switch to standard report template I have some issues.
    Debugging the code :
    function html_HideCellColumn(pId){
    35 var l_Cell = html_GetElement(pId);
    36 var l_Table = html_CascadeUpTill(l_Cell,'TABLE');
    37 var l_Rows = l_Table.rows;
    38 l_CellI = getCellIndex(l_Cell.parentNode,l_Cell)
    39 for (var i=0;i<l_Rows.length;i++){
    40 html_HideElement(l_Rows.cells[l_CellI]);
    41 }
    42 return;
    the pId is what expect before line 35, but after, it looks like the html_GetElement is returning null.
    Is there something in the template that would cause this change? I am able to reproduce this behavior consistently. Thanks for any input.

    Hello,
    The table headers in the standard report template of that theme are missing the id attribute so changing this.
    &lt;th class="t12header" #ALIGNMENT# >#COLUMN_HEADER#&lt;/th>
    to
    &lt;th class="t12header" #ALIGNMENT# id="#COLUMN_HEADER_NAME#">#COLUMN_HEADER#&lt;/th>
    and your good to go.
    Carl

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

Maybe you are looking for

  • What the heck is 'pgs'?

    Trying to empty trash containing iTunes (long story) and related files, but the trash will not empty because: "The operation cannot be completed because 'pgs' is in use." I found 'pgs' folders in the System Folder/Help/Mac Help/ but not sure why they

  • Volume on ipod touch 1st gen after 3.1 update

    i cant figure out how to control the volume on my 1st generation ipod touch after downloading the 3.1 update! please help!!!

  • 3D Mode Tool are not working in Photoshop CS6

    Hello everyone. First, I want to tell you that I use ATI Radeon HD 6730M with 12.2 driver series. and I just   found out that my Photoshop CS6 3D mode tool not working in advanced drawing mode, like this. As well as normal drawing mode. Please help t

  • How  to  use this HD

    Emicsoft HD Video Converter is the high definition video converter software develeped to convert HD video files with high quality. With this HD video converter you can also easily convert between HD video formats, convert standard definition videos t

  • Process scheduler server list is not populating in SERVER LIST page.

    Need urgent help. We have PeopleSoft Campus Solution 8.52,9.0 application. We had two Process Scheduler server one in Linux and one in NT. There was one issue that all the jobs which processed were getting into success and reports were also posted,ho