Af:column visible property

Hi,
I am using JDeveloper 11.1.1.4 and ADF-BC in my application.
I want to pragmatically control the visible property of the af:column inside the table.
I have the following code for af:column.
<af:column sortable="false" headerText="Impact Cat New" id="c7" visible="#{row.bindings.Selected.inputValue}">
</af:column>
Initially, the value of 'Selected' will be false when the table is first displayed and hence it should NOT be displayed.
In the table selection listener,I set the property 'Selected' to true for the selected row and refresh the table[AdfFacesContext.getCurrentInstance().addPartialTarget(tblEmp)].
But Even after refresh the table is never showing the column for which visible is set as true.
The table is inside a panelCollection.
Please advice.
Regards,
Praveen

This won't work, as the column is the container for all rows and the row attribute is only available when the table rows arr stamped. I don't understand your use case. You want to show a column if one row gets selected? Sounds odd to me.
If you really want to do this, you have to set an attribute outside the table and use the selection listener to switch this attrbute. Then use the new attribute in the columns visible property.
Timo

Similar Messages

  • How to set visible property to href link

    Hi All,
    I want to open the new jsp page in the new tab when will we click on the link in my ADF application.So i tried like this.
    <af:column id="pt_c115" >
    <a id="JspLink" href="AuditLogInfo.jspx" target="_blank">JspLink</a>
    </af:column>
    Im able to view my new jsp page when im click on JspLink link.But here my problem is i have nee to set the visible condition if the 'status' field of adf table is succes only i want to view the link other wise no need to visible my link.
    visible="#{row.bindings.Status.inputValue=='SUCCESS'}" is working for commandbutton.But i'm not able to see any visible property in <a id="JspLink" href="AuditLogInfo.jspx" target="_blank">JspLink</a> .How can i set this condition?Please help me.I'm using JDeveloper 11.1.1.5 version.
    Thanks in Advance!
    Edited by: 851924 on Apr 5, 2012 11:22 PM
    Edited by: 851924 on Apr 5, 2012 11:23 PM

    Instead of using a jsplink you should use an af:goLink which is the adf equivalent and has all the needed properties.
    Timo

  • How I can change visible property of an af:table with an af:selectOneRadio?

    How I can change visible property of an af:table with an af:selectOneRadio? Anyone can help me with a tutorial, example or link?
    Thanks in advance.

    After you add the required libraries to your classpath
    you can do your use case as explained in this sample
    page source
    <?xml version='1.0' encoding='UTF-8'?>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <f:view xmlns:f="http://java.sun.com/jsf/core" xmlns:af="http://xmlns.oracle.com/adf/faces/rich">
        <af:document title="untitled2.jsf" id="d1">
            <af:messages id="m1"/>
            <af:form id="f1">
                <af:selectOneRadio label="radio" id="sor1" autoSubmit="true"
                                   valueChangeListener="#{ControlVisibilty.onRadioSelected}">
                    <af:selectItem label="0" value="0" id="si1"/>
                    <af:selectItem label="1" value="1" id="si2"/>
                </af:selectOneRadio>
                <af:table value="#{bindings.DepartmentsView1.collectionModel}" var="row"
                          rows="#{bindings.DepartmentsView1.rangeSize}"
                          emptyText="#{bindings.DepartmentsView1.viewable ? 'No data to display.' : 'Access Denied.'}"
                          fetchSize="#{bindings.DepartmentsView1.rangeSize}" rowBandingInterval="0"
                          selectedRowKeys="#{bindings.DepartmentsView1.collectionModel.selectedRow}"
                          selectionListener="#{bindings.DepartmentsView1.collectionModel.makeCurrent}" rowSelection="single"
                          id="t1" partialTriggers="::sor1" visible="#{ControlVisibilty.table}">
                    <af:column sortProperty="#{bindings.DepartmentsView1.hints.DepartmentId.name}" sortable="false"
                               headerText="#{bindings.DepartmentsView1.hints.DepartmentId.label}" id="c1">
                        <af:inputText value="#{row.bindings.DepartmentId.inputValue}"
                                      label="#{bindings.DepartmentsView1.hints.DepartmentId.label}"
                                      required="#{bindings.DepartmentsView1.hints.DepartmentId.mandatory}"
                                      columns="#{bindings.DepartmentsView1.hints.DepartmentId.displayWidth}"
                                      maximumLength="#{bindings.DepartmentsView1.hints.DepartmentId.precision}"
                                      shortDesc="#{bindings.DepartmentsView1.hints.DepartmentId.tooltip}" id="it1">
                            <f:validator binding="#{row.bindings.DepartmentId.validator}"/>
                            <af:convertNumber groupingUsed="false"
                                              pattern="#{bindings.DepartmentsView1.hints.DepartmentId.format}"/>
                        </af:inputText>
                    </af:column>
                    <af:column sortProperty="#{bindings.DepartmentsView1.hints.DepartmentName.name}" sortable="false"
                               headerText="#{bindings.DepartmentsView1.hints.DepartmentName.label}" id="c2">
                        <af:inputText value="#{row.bindings.DepartmentName.inputValue}"
                                      label="#{bindings.DepartmentsView1.hints.DepartmentName.label}"
                                      required="#{bindings.DepartmentsView1.hints.DepartmentName.mandatory}"
                                      columns="#{bindings.DepartmentsView1.hints.DepartmentName.displayWidth}"
                                      maximumLength="#{bindings.DepartmentsView1.hints.DepartmentName.precision}"
                                      shortDesc="#{bindings.DepartmentsView1.hints.DepartmentName.tooltip}" id="it2">
                            <f:validator binding="#{row.bindings.DepartmentName.validator}"/>
                        </af:inputText>
                    </af:column>
                    <af:column sortProperty="#{bindings.DepartmentsView1.hints.ManagerId.name}" sortable="false"
                               headerText="#{bindings.DepartmentsView1.hints.ManagerId.label}" id="c3">
                        <af:inputText value="#{row.bindings.ManagerId.inputValue}"
                                      label="#{bindings.DepartmentsView1.hints.ManagerId.label}"
                                      required="#{bindings.DepartmentsView1.hints.ManagerId.mandatory}"
                                      columns="#{bindings.DepartmentsView1.hints.ManagerId.displayWidth}"
                                      maximumLength="#{bindings.DepartmentsView1.hints.ManagerId.precision}"
                                      shortDesc="#{bindings.DepartmentsView1.hints.ManagerId.tooltip}" id="it3">
                            <f:validator binding="#{row.bindings.ManagerId.validator}"/>
                            <af:convertNumber groupingUsed="false"
                                              pattern="#{bindings.DepartmentsView1.hints.ManagerId.format}"/>
                        </af:inputText>
                    </af:column>
                    <af:column sortProperty="#{bindings.DepartmentsView1.hints.LocationId.name}" sortable="false"
                               headerText="#{bindings.DepartmentsView1.hints.LocationId.label}" id="c4">
                        <af:inputText value="#{row.bindings.LocationId.inputValue}"
                                      label="#{bindings.DepartmentsView1.hints.LocationId.label}"
                                      required="#{bindings.DepartmentsView1.hints.LocationId.mandatory}"
                                      columns="#{bindings.DepartmentsView1.hints.LocationId.displayWidth}"
                                      maximumLength="#{bindings.DepartmentsView1.hints.LocationId.precision}"
                                      shortDesc="#{bindings.DepartmentsView1.hints.LocationId.tooltip}" id="it4">
                            <f:validator binding="#{row.bindings.LocationId.validator}"/>
                            <af:convertNumber groupingUsed="false"
                                              pattern="#{bindings.DepartmentsView1.hints.LocationId.format}"/>
                        </af:inputText>
                    </af:column>
                </af:table>
            </af:form>
        </af:document>
    </f:view>The managed bean code is
    import javax.faces.event.ValueChangeEvent;
    public class ControlVisibilty {
        private boolean table;
        public ControlVisibilty() {
            setTable(false);
        public void onRadioSelected(ValueChangeEvent valueChangeEvent) {
            // Add event code here...
            if(valueChangeEvent.getNewValue().toString().equals("1"))
                setTable(true);
            else
                setTable(false);
        public void setTable(boolean table) {
            this.table = table;
        public boolean isTable() {
            return table;
    }

  • WPF Data Grid Column Visibility Toggle Issue

    I have a WPF control that is used in multiple dialog forms. In one of these, I want to include a checkbox column along with two buttons that fire a method to either include all (check all the boxes) or exclude all (uncheck all the boxes.)
    I setup a Boolean variable to control this "IsExcludeVisible"
    Here is a snippet of the xaml:
    <Grid>  
    <Grid.ColumnDefinitions>
       <ColumnDefinition Width="Auto" />
       <ColumnDefinition Width="*"/>
     </Grid.ColumnDefinitions>
           <common:BaseDataGrid
      Name="grd"
      AutoGenerateColumns="False"            
      ItemsSource="{Binding ExcludeRoundingIngredientList}">
       <DataGrid.Columns>
         <DataGridTextColumn Header="Code" Binding="{Binding IngredientNumber}" />
         <DataGridTextColumn Header="Ingredient" Binding="{Binding Name}" />
               <DataGridCheckBoxColumn Header="Exclude"
    Visibility="{Binding IsExcludeVisible,
                                         Converter={StaticResource VisibilityConverter}}"
                                       Binding="{Binding MillBatchMixExclude}" />
               <DataGridComboBoxColumn Header="Rounding"
        DisplayMemberPath="Name"
                                    SelectedValuePath="RoundingId"
        SelectedValueBinding="{Binding MillBatchMixRoundingId}"
        ItemsSource="{Binding DataContext.RoundingOptions,Source={StaticResource Spy}}" />
         </DataGrid.Columns>
            </common:BaseDataGrid>
      <StackPanel ......
       <Button
        Content="Include All"
                    x:Name="btnIncludeAll"
    Visibility="{Binding IsExcludeVisible, Converter={StaticResource VisibilityConverter}}"
        csla:InvokeMethod.MethodName="IncludeAll"
        csla:InvokeMethod.TriggerEvent="Click"
        />
       <Button
        Content="Exclude All"
    Visibility="{Binding IsExcludeVisible, Converter={StaticResource VisibilityConverter}}"
        csla:InvokeMethod.MethodName="ExcludeAll"
        csla:InvokeMethod.TriggerEvent="Click"
        />
      </StackPanel>
     </Grid>...
    The button visibility toggles based on the IsExcludeVisible value as expected but the column visibility is totally unaffected.
    Am I missing something here (which obviously I am.)
    Below is my code to determine the value of the Boolean variable.
    public bool IsExcludeVisible
    get { return (SelectedReport.Name ==
    "Horizontal Batch Mix"); }
    Tom Mann MCSD C#

    I think the best way is to make a label function something
    like this (just off the top of my head, not tested):
    public function rate_label(item:Object,
    column:DataGridColumn):String
    return "GBP"+item.prdt_rate;
    Then in the DataGridColumn add a property:
    labelFunction="rate_label"

  • Controlling Table Column visibility through Program

    Hi Experts
    We have custom WD Java applications developed in NW 7.0 which we have now migrated to NW 7.3.
    The visibility property of the columns are bound to the Context attributes. In the application, we are controlling the visibility of the Table columns by setting the values of context attributes.
    However, i could see that even though the visibility property is set as "NONE", by printing it on screen, those particular columns are visible.
    Am I missing something?? Do we need to take care of something or is any other property needs to be set??
    Thanks in advance..
    Regards,
    Deepak

    OK, starting at the lowest level is getting the column selected, since we need to select the correct column
    before selecting the first cell in the column to rename (a separate funciton?) and then the remaining cells
    in the column (another function)? Once these two functions are done, the rest would be like the example in the
    the Frame book, since then you would have a function select only the tables that have a certain name and then
    all the files in the book.
    #target framemaker
    // !! first, click on table
    var doc=app.ActiveDoc;
    //Get the table containing the insertion point
    var tbl=doc.SelectedTbl;
    //Get the first cell in the first row
    var cell=tbl.FirstRowInTbl.FirstCellInRow;
    var colNum=3;
    for (var i=1; i<colNum; i+=1){
        cell=cell.NextCellInRow;
    while (cell.ObjectValid()){
        var pgf=cell.FirstPgf;
        alert (pgf.Name);
        alert(cell);
        cell=cell.CellBelowInCol;// Move down to next cell

  • Cfform Flash Datagridcolumn .visible property

    Hey everyone,
    I have a datagrid, and need to dynamically hide and show columns. My reading says the .visible property of a column should be able to do this. It does not work. Further reading indicates that I need a patch to fix this issue. However, the patch is for Flex and Flex builder. We do not have either of those projects, we just using Cold Fusion 8. We do not have Flex, or Flash installed. So how can I install this patch, or otherwise resolve this issue? And yes I did do a search on this topic (there were many results) but I could not find a straight forward answer on how to install this patch when you are not using either of the standalone Flex products. Thank you.

    Install Flex 2.0.1 SDK and then ! a hotfix
    http://www.adobe.com/cfusion/knowledgebase/index.cfm?id=kb401224
    Should help.

  • Column Visibility Expression help - SSRS

    I have a report in SSRS that has 12 columns. On each column, I have a corresponding column visibility expression like so:
     =IIF(InStr(JOIN(Parameters!HideColumns.Value,
    ","),"01")=0, False, True)
    Where I have the "01" I change to "02","03","04","05","06","07","08","09","10","11"
    & "12" respectfully across my column. The intent is to pass a parameter and allow the end user to "Hide" the column from visibility to allow them the flexibility on printing records. The issue I am having is I need a default that allows
    them to not hide anything, meaning print all 12 columns. Right now, its forcing me to pick one column to hide, is there something I could add to this to say, All? Hope this makes sense.

    Hi,
    For default value of this parameter(Parameters!HideColumns.Value)
    add  a value that is not in 01 to 12 .
    As an example if you  add 13 to the  default value   of the parameter, than  your expression will not hide the column 
       =IIF(InStr("13",
    ","),"01")=0, False, True) 
       =IIF(InStr("13",
    ","),"02")=0, False, True)  and so on.
    Many Thanks
    Chandra
    Please mark the post has answered if this post helps to solve your issue

  • Office 365 - sharepoint: In Advanced search Page, How to add custom column under property restrictions

     In Advanced search Page, How to add custom column under property restrictions?

    Hi,
    The Navigation control can be added into your HTML page in the Snippet Gallery:
    The two links below about how to create HTML master page and adding snippets needed into it for your reference:
    http://borderingdotnet.blogspot.jp/2012/12/how-to-create-html-masterpage-for.html
    http://msdn.microsoft.com/en-us/library/office/jj822370(v=office.15).aspx
    Feel free to reply if there still any question.
    Best regards,
    Patrick
    Patrick Liang
    TechNet Community Support

  • Webdynpro for ABAP, Enhancement and change of standard "visible" property

    Hi
    Is it possible to change the standard Webdynpro element (in cProjects application), so that the original control "Input" from visible property "Visible" is changed to mine Context variable? How to change that default "Visible" flag in standard element?
    thank you

    Hi Phani,
    Thanks for the info.
    I am able to see if it is not interactive.
    Displaytype is native only.
    Let me explain you the issue in detail:
    Currently Client is calling ZFORM thro Java. They have some issues with JAVA so they want to use Webdynpro to call that ZFORM and the form is ABAP Dic based.
    For Templete source I gave ZFORM name, and it automatically created a 'NODE' wrt the context in the ZFORM.
    Now I have to pass data from difft  node attributes to that 'NODE'.
    Thanks in advance,
    GG

  • Tracking the visible property of a movie clip

    Hello,
    I am trying to track the visible property of a movie clip as
    I need to perform a function when visible = true and another when
    visible =false
    I have tried to use a listener object but I can’t get
    it to work. Can you attach a listener object to listen for the
    visible property?
    I have also tried an IF statement inside the move clip but
    this only knows the state of the ._visible when it first runs.
    I have got it to work with an onEnterFrame function on a
    movie clip inside the one I want to know the property of but I
    don’t like using the onEnterFrame as it uses a lot or
    processor speed
    Is there an easy way to track the visible property of a
    movieclip???
    Thanks
    Sam.

    > thanks for the help but the watch() method doesn't work
    for getter/setter
    > properties. is ._visible a getter/setter property?
    I was afraid of that. Yes, _visible is a getter/setter, most
    properties are. Basically watch() only works on read-only
    properties and custom variables, which is a shame.
    So I don't know of any more elegant way than constantly
    checking to see if the value changed. Centralize it and maybe
    package it in a nice class and you might feel a little better about
    it...

  • Column mode property

    What is column mode property and can anybody tell me how to use this and what is the purpose of this property ?
    null

    hello,
    here's what the online helps says about the property :
    The Column Mode property controls how Report Builder fetches and formats data for instances of repeating frames. With Column Mode set to Yes, the next instance of a repeating frame can begin formatting before the previous instance is completed.
    you can check there for examples on what the property does exactly.
    regards,
    the oracle reports team --pw                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • Column Visibility in SSRS

    I am using SSRS 2012 for my report. I want to hide certain columns in the report. I don't want to see spaces between columns in my report when a middle column visibility is set to hide. I have an expression that hides or makes visible a certain
    column base on the value selected. But the issue I have with this is that I see spaces between columns in the table when the report is rendered.
    =IIF(CBool(Parameters!Column.Value)=True,True,False)
    In the image below, I want to be able to hide the Code column at the middle of the table without seeing any gap between columns in the table. Thanks for the help.
    Zionlite

    Hi Yokoos,
    According to your description, you have a parameter in your report to control the visibility of a column. Now you find there is blank space on the location of the column that is hidden. Right?
    In Reporting Service, if you just set visibility for the cells instead of the column/row, the space of the column/row will be reserved and that will generate/cause blank space at run time. So in your scenario, you just need to put your expression into column
    visibility to achieve your goal. Here are screenshots for your reference:
    Reference:
    Column Visibility Dialog Box (Report Builder)
    If you have any question, please feel free to ask.
    Best Regards,
    Simon Hou
      

  • Change visible property of iView assigned to page

    Hi,
    When we add an iView to a page, we have some properties like visible, fixed,etc. mentioned along with each iView. Now, I want to change the visible property dynamically using pdk development. How can we achieve this?
    Regards,
    Khushboo

    Hello Mittal,
    As per my understanding you want a way to dynamically edit the property of the PCD objetcs using PDK. SAP provides an API for the same puspose. Please refer to this link for more details
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/6112ecb7-0a01-0010-ef90-941c70c9e401
    Regards,
    Raju Bonagiri

  • Visible Property of lable in Webdynpro

    Hi all,
    I have a lable and a inputfield which are hide. I want that when a select something in my dropdownbykey, this two objects get visible.
    How can i do that?
    Regards,
    Nirali

    Hi,
    Please look this code
    1.Create one Droupdownkey UI element in your firstView (Droupdown by key is bind to the one value attribute i.e MonthName)along this u can take 2 lable. For 2 lables you can set Visibility (com.sap.ide.webdynpro.uielementdefinitions.Visibility) property.
    2. in wdinit() method you can write this code
    ISimpleTypeModifiable myType=wdThis.wdGetAPI().getContext().getModifiableTypeOf("MonthName"); 
    IModifiableSimpleValueSet values =myType.getSVServices().getModifiableSimpleValueSet();
    values.put("Vijay","Vijay");
    values.put("Kalluri","Kalluri"); 
    wdContext.currentContextElement().setMonthName("Vijay");
    wdContext.currentContextElement().setKalluri(WDVisibility.NONE); 
    wdContext.currentContextElement().setVijay(WDVisibility.NONE);
    3.in Droupdownby key having OnSelect event in that place you can create on method. Under method you can write this code.
    String firstName = wdContext.currentContextElement().getMonthName();
    wdComponentAPI.getMessageManager().reportSuccess("First Name:"+firstName);
    String lastName = wdContext.currentContextElement().getMonthName();
    wdComponentAPI.getMessageManager().reportSuccess("Last Name:"+lastName);
    if(firstName.equalsIgnoreCase("Vijay"))
    wdContext.currentContextElement().setKalluri(WDVisibility.VISIBLE); 
    wdContext.currentContextElement().setVijay(WDVisibility.NONE);
    else
    wdContext.currentContextElement().setVijay(WDVisibility.VISIBLE);
    wdContext.currentContextElement().setKalluri(WDVisibility.NONE);
    Hope this helps u.
    Best Regards
    Vijay K
    Edited by: VijaySAPEP on Jan 4, 2012 4:47 PM
    Edited by: VijaySAPEP on Jan 4, 2012 7:32 PM

  • Visible property

    If I have 20 items in a listbox, each item corresponds to a control cluster. The cluster appears according to the item in the list that the user push while the other ones disappear. This is all in a While loop until the user hit OKAY. Is there a quicker way to set the visible property because the way that I have in mind right now is a case structure that make one visible and the other 19 invisible. This is very tedious because that means that I have to do the same for all 20 cases. Thanks.

    I suspect that vk1 & Veeru are the same person
    Have you started implementing code and need a solution for it?  If so, please post the code so that we can prepare an adequate example.
    R

Maybe you are looking for

  • Problem: Importing external Lybraryes

    Good Morining everybody I've a problem when I Deploy my progect with netweaver developer studio. My progect import some external lybraries for example Strutz's lybraries. I import external jars before make deploy and all is right. the problem born wh

  • Need a query to merge output in a single row?

    Hi All, I need a query to merge output in a single row. Query : Select dname from dept. Actual output is : Dname EDP ACCOUNT GR Desired Output is: Dname EDP ACCOUNT GR Please provide me the solution Thanks Amit

  • MAC PRO KONA 3 External SATA dropped frames

    Recently our company upgraded to KONA3 card with the new MAC PRO. We were not aware our External SATA drives would not be 100% compaditable with the MAC PRO. The drives do mount and seem to work fine in Standard Def and compressed HD, but start to dr

  • MRS couldn't be considered as supply or demand in ASCP

    Here is the situation: I created some MRs by using CMRO , and the MRs could be seen in UMP,but after I runned ASCP,the MRs wasn't considered as supply or demand in ASCP. I want to confirm two things: 1. Would ASCP take MRS as supplies or demands or n

  • Can't play video burned on PC

    My son created a slideshow with audio and graphics on his PC, but I can't play it on my Mac. I have QuickTime 7.6 plus Flip4Mac WMV 2.2.1 but I can't figure out how to play the video. When I try to open the DVD, all I get are 4 folders named EXT, MPE