Current position:  Home > Default > How does Toggle Visible for a Column in a Table work ?

How does Toggle Visible for a Column in a Table work ?

Time:October 11
Advertisement
Hi All,
I have a question for you.
Using version 11.1.1.7:
I was playing with a use case where I need to show and hide columns in an af:table component.
I want to do this clientside using javascript.
Guess what: It works, however, it only works for hiding columns ?!
Initially I have client component = true and visible is true.
See javascript below.
When I call hideColumn, the component is found and hidden after calling.
When I call showColumns (after it is hidden) the component cannot be found anymore.
  function showColumn(evt){
      var col = AdfPage.PAGE.findComponentByAbsoluteId("pt1:pc1:t1:c9")  ;
      col.setVisible(true);    
   function hideColumn(evt){
      var col = AdfPage.PAGE.findComponentByAbsoluteId("pt1:pc1:t1:c9")  ;
      col.setVisible(false);    
    }I checked and when the columns visible property is initially false, the column is not found by AdfPage.PAGE.findComponentByAbsoluteId("pt1:pc1:t1:c9"), which means it is not available ?!
It looks like the visible property for an af:column works slightly different then for other components such as buttons.
Also makes me wonder how the panelCollection component shows and hides columns. Doesn't that component do exactly the same ?
Thanks.
Advertisement
Luc,
couldn't find a hint in the sources (maybe didn't spend enough time). However, one reason for this behavior would be if the hidden column had no client component created (in which case it only exists as hidden HTML). The work around I think would be to use a serverListener on the table and to pass the columns to show/hide as the payload for server side show/hide
Frank

How to toggle visible true-false for FourColListBoxNodeWidget Column

-0001-11-30

Hi, I need to know that whether there is a way by which I can toggle visibility of a column (GenericPanelWithBorderWidget) on click of a button. Which Interface can be used to do the same? The code for table and button is given below. Following is "f

Can we Export selected columns of a table in ADF 11g

2015-10-11

Hi, My problem is I want a table to be exported to Excel format.But my condition is only particular cloumns of a table to be exported not all the visible columns of the table. For example, I have 8 cloumns in a table.I need pre-determined 5 cloumns o

All columns of trinidad table are not coming up on page while its running

2015-10-11

Hi, I have put two trinidad tables on my page.But while the page is run, I am unable to see all the columns of the table.Only a few columns are visible. Also, though there are 5 rows in teh table ,there is a lot of gap below the tablespace.So the nex

VC Multiple Table Column Header Lines, Table Width Adjustment

-0001-11-30

Hi Experts, 1) How to have Multiple headers for a column in a single cell i.e multiple lines in the same cell. please provide with example. 2) How to set your table to adjust the width automatically for all screen resolution since columns of the tabl

How to disable certain columns of a Table?

-0001-11-30

hi all, I wish to fill a pattern of 8 digital signals (only 1's & 0's) in a Table. Is there any way to restrict the user from typing char or num other than a 1 or a 0? Since the table is a string, I'm having confusion how to do this. Secondly, the ta

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

-0001-11-30

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

Dynamic Table - Add rows and columns in same table

-0001-11-30

Hi there, I wonder if someone could help please? I'm trying to create and table where a user can add both rows and columns (preferably with separate buttons) but am having trouble trying to figure out how to do this. Is it possible? If so how? I'm no

ORG_CONTACT_ID column in AP_SUPPLIER_CONTACTS table remains nulls why?

-0001-11-30

ORG_CONTACT_ID column in AP_SUPPLIER_CONTACTS table remains nulls why? becoz of this supplier contact is not visible from front end.ORG_CONTACT_ID column in AP_SUPPLIER_CONTACTS table remains nulls why? becoz of this supplier contact is not visible f

How to make column headers in table in PDF report appear bold while datas in table appear regular from c# windows forms with sql server2008 using iTextSharp

2015-10-11

Hi my name is vishal For past 10 days i have been breaking my head on how to make column headers in table appear bold while datas in table appear regular from c# windows forms with sql server2008 using iTextSharp. Given below is my code in c# on how

Dynamically Hiding Column in a Table View in VC Model

2015-10-11

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 ser

Unable to see a column of a table in portal for a particular User

2015-10-11

Hi, A particular user is unable to see a particular column of a table in the portal . The application is developed in Webdynpro ABAP. The table contains two columns. Both the columns contain text type fields. What appears to the user is that the left

Specific Model not showing rows in a table in a column of a table

2015-10-11

Hello, Fairly simple issue here (I think): I have a table bound to a global model and its rows bound to "/items" I then have a column within that table which has a valuehelpfield that pops open a dialog with a table. This tables rows inside the

Creating a radio button group in a column of a table in Web Dynpro

2015-10-11

Hi, I want to put a radio button group in a column of a table in Webdynpro. I added a column to a web dynpro view and then inserted a tableCellEditor for that column.. But I cannot define it as Radio Button group. I want the user to be able to select

BSP: How to create check box in a column of a Table View

2015-10-11

Hi All, I have a table view in Web IC scenario. my requirement is to display check box in one of the column of the table view.. so that i can select multiple lines from the table and do some calculations!. Anybody have any hint/clue Thanks in advance

How to show current date in a column of dimension table in ssas

2015-10-11

Hi, I have 2 dimension tables (ALLWORK and YOURWORK) and 1 measure table (STATS). In ALLWORK dim table, I have 4 columns, one of them is END_DATE. Based on END_DATE and current date I want to create a named calculation field. To achieve this, I want

How to Insert Image in a Column of a table

2015-10-11

Hi I have read several documentations but still could not find any relevant one that can help me in inserting a image in a BLOB column of a table.I have read about DBMS_LOB but still not clear how to insert an image in the table. I followed following

How to show icon in a column of a table?

2015-10-11

How to display an icon in a column of a table UI element and this icon is to be displayed based on values in the table row?I normally use a calculated attribute inside the table's data source node for this. Add an attribute "Icon", type=string,

How to store España in database (in a column of a table)

2015-10-11

Could you please tell me how to store España in database (in a column of a table). regardsGenerally speaking you'll need a character set that can support the characters you require. Here is a link to the supported character sets in 10.2.x.x: [Charact

I am unable to sort multiple columns in a table created in Pages.

2015-10-11

I had been using Appleworks up until I installed Lion and have now switched to iWork. I created a table within a Pages document and am able to sort a single column (using the Table Inspector and choosing Sort from  Edit Rows and Columns) but the Sort