How to use C:when test... inside column in ADF table

I am using ADF table with below two columns
in First column i have to check the Type of document if it is doc type then i have to use commondlink to download that file ,Otherwise i need to show only text.
for that i added
*<c:when test="{boolean($favoriteType eq 'doc')}">*
which is not working .
please let me know how to use <C:when test... inside column in ADF table
<tr:column sortProperty="favoriteName" sortable="true"
headerText="#{res['favorite.favoritename']}"
width="500" noWrap="false">
<c:choose>
*<c:when test="{boolean($favoriteType eq 'doc')}">*
<tr:commandLink actionListener="#{bindings.downloadFile.execute}"
text="#{row.favoriteName}"
disabled="#{!bindings.downloadFile.enabled}"/>
</c:when>
<c:otherwise>
<af:outputText value="#{row.favoriteName}"/>
</c:otherwise>
</c:choose>
</tr:column>
<tr:column sortProperty="favoriteType" sortable="true"
headerText="#{res['favorite.favoriteType']}" rendered="true">
<af:outputText value="#{row.favoriteType}" id="favoriteType"/>
</tr:column>

Hi Frank,
Thanks it is working like cham..
related to same page i am facing new problem which i posted at below thread
How to get row data runtime @ trinidad table , set rowSelection="multiple"
can u reply on same.
Thanks for all help.
Jaydeep

Similar Messages

  • How to fix the width of sorting column about adf table ?

    I develop project with ADF in jdeveloper.
    When click on the sorting column header in adf table,it will adjust the width of the sorting column header.It will make page shifting.
    How can I do to avoid the adjusting ?
    How can I do to fix the width of soting table header?
    Any hint will be appreciated.
    Thank you!
    Message was edited by:
    user618145

    I have set the column width like this:
    in style.css:
    /** Column Settings **/
    af|column::header-text
    background-color:#F0EDE1;
    color:#000000;
    font-family:Arial,Helvetica,sans-serif;
    font-size:12px;
    font-weight:bold;
    padding-left: 2px;
    padding-right: 2px;
    padding-top: 3px;
    padding-bottom:3px;
    border-color: #B5B5B5;
    WIDTH: 120px;
    af|column::sortable-header-text
    background-color:#F0EDE1;
    color:#000000;
    font-family:Arial,Helvetica,sans-serif;
    font-size:12px;
    font-weight:bold;
    padding-left: 2px;
    padding-right: 2px;
    padding-top: 3px;
    padding-bottom:3px;
    border-color: #B5B5B5;
    WIDTH: 120px;
    and in jsp page,write like this:
    <af:panelBox text="test" width="1000" background="dark" >
    <af:table emptyText="" value="#{ftOverview.listOfTransefersVect}" var="transfers" width="100%" banding="row" bandingInterval="1">
    <af:column sortable="true" sortProperty="transactionId" headerText="#{resources['ft_overview.ref']}" formatType="text" width="39"
    noWrap="true">
    <af:outputText value="#{transfers.transactionId}" escape="false"/>
    </af:column>
    </af:table>
    </af:panelBox>
    but it seems doesn't work well.

  • How to Add/Edit validation rule for Column in ADf table(Jdeveloper11g)

    I am working on Jdevloper11g with ADF table. There i have one column where user can enter numeric value in range 1-1000 .So i have to add validation as such he/she can't enter value apart from 1-1000 range also not any other charcters.
    I know on form, if i select attribute from binding and right click i will find one option "Edit Vlaidation rule..." and from there i can change validation rule for perticular field.
    But how i can achive same on Column's filed??
    Thanks for all help.
    Jaydeep

    Hi Barnislav,
    I tried the way you mentioned but i am getting below exception.
    Could not complete Edit validation Rule... Because it would result in an invalid document
    oracle.bali.xml.model.XmlInvalidOnCommitException: SEVERE: Element RangeValidationBean not expected [ node = RangeValidationBean ]
    <tree IterBinding="searchConfigurationDataIterator" id="searchConfigurationData" ApplyValidation="true">
    <nodeDefinition DefName="com.oraclecnm.util.search.SearchAttributeBean">
    <AttrNames>
    <Item Value="searchAttributeName" />
    <Item Value="searchAttributeId" />
    <Item Value="weightage" />
    <Item Value="isAttributeSearchable" />
    </AttrNames>
    </nodeDefinition>
    <RangeValidationBean OnAttribute="weightage" ResId="pages.SearchConfigurationPageDef.searchConfigurationData_Rule_1" Inverse="false" Severity="Error" Name="searchConfigurationData_Rule_0" OperandType="LITERAL" MinValue="1" MaxValue="1000" />
    </tree>
         at oracle.bali.xml.model.XmlModel._validateSubtree(XmlModel.java:3669)
         at oracle.bali.xml.model.XmlModel._validateDocument(XmlModel.java:3577)
         at oracle.bali.xml.model.XmlModel.__precommitTransaction(XmlModel.java:2825)
         at oracle.bali.xml.model.XmlContext.precommitTransaction(XmlContext.java:1166)
         at oracle.bali.xml.model.XmlContext.__precommitTransaction(XmlContext.java:1653)
         at oracle.bali.xml.model.XmlContext.__commitTransaction(XmlContext.java:1684)
         at oracle.bali.xml.model.XmlModel.__requestCommitTransaction(XmlModel.java:2898)
         at oracle.bali.xml.model.XmlModel.commitTransaction(XmlModel.java:586)
         at oracle.bali.xml.model.XmlModel.commitTransaction(XmlModel.java:556)
         at oracle.bali.xml.model.task.StandardTransactionTask.__commitWrapperTransaction(StandardTransactionTask.java:469)
         at oracle.bali.xml.model.task.StandardTransactionTask.runThrowingXCE(StandardTransactionTask.java:208)
         at oracle.bali.xml.model.task.StandardTransactionTask.run(StandardTransactionTask.java:103)
         at oracle.adfdtinternal.model.ide.validation.RuleEditAction.actionPerformed(RuleEditAction.java:35)
         at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1995)
         at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2318)
         at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:387)
         at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:242)
         at javax.swing.AbstractButton.doClick(AbstractButton.java:357)
         at javax.swing.plaf.basic.BasicMenuItemUI.doClick(BasicMenuItemUI.java:1220)
         at javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(BasicMenuItemUI.java:1261)
         at java.awt.Component.processMouseEvent(Component.java:6041)
         at javax.swing.JComponent.processMouseEvent(JComponent.java:3265)
         at java.awt.Component.processEvent(Component.java:5806)
         at java.awt.Container.processEvent(Container.java:2058)
         at java.awt.Component.dispatchEventImpl(Component.java:4413)
         at java.awt.Container.dispatchEventImpl(Container.java:2116)
         at java.awt.Component.dispatchEvent(Component.java:4243)
         at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4322)
         at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3986)
         at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3916)
         at java.awt.Container.dispatchEventImpl(Container.java:2102)
         at java.awt.Window.dispatchEventImpl(Window.java:2440)
         at java.awt.Component.dispatchEvent(Component.java:4243)
         at java.awt.EventQueue.dispatchEvent(EventQueue.java:599)
         at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:273)
         at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:183)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:173)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:168)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:160)
         at java.awt.EventDispatchThread.run(EventDispatchThread.java:121)

  • How to use h:selectOneRadio tag  inside h:dataTable tag

    Hi All,
    Can any one tell me how to use <h:selectOneRadio> tag inside <h:dataTable> tag and how to get selected radio button value in bean ?

    JSF<h:selectOneMenu value="#{myBean.selectedItem}">
        <f:selectItems value="#{myBean.selectItems}" />
    </h:selectOneMenu>MyBeanprivate String selectedItem;
    public String getSelectedItem() {
        return selectedItem;
    public void setSelectedItem(String selectedItem) {
        this.selectedItem = selectedItem;
    public List getSelectItems() {
        List selectItems = new ArrayList();
        selectItems.add(new SelectItem("key1", "value1"));
        selectItems.add(new SelectItem("key2", "value2"));
        selectItems.add(new SelectItem("key3", "value3"));
        return selectItems;
    }String selectedItem should contain the key (key1, key2 or key3) when selected. The values (value1, value2 and value3) are the options as shown in the list.

  • How to use case when function to calculate time ?

    Dear All,
    May i know how to use case when function to calculate the time ?
    for the example , if the First_EP_scan_time is 12.30,  then must minus 30 min.  
    CASE WHEN FIRSTSCAN.EP_SHIFT <> 'R1' AND FIRSTSCAN.EP_SHIFT <> 'R2'
    THEN ROUND(CAST((DATEDIFF(MINUTE,CAST(STUFF(STUFF((CASE WHEN SHIFTCAL.EP_SHIFT = 'N1'
    THEN CONVERT(VARCHAR(8),DATEADD(DAY,+1,LEFT(FIRSTSCAN.EP_SCAN_DATE ,8)),112) + ' ' + REPLACE(CONVERT(VARCHAR(8),DATEADD(HOUR,+0,SHIFTDESC.EP_SHIFT_TIMETO + ':00'),108),':','')
    ELSE LEFT(FIRSTSCAN.EP_SCAN_DATE ,8) + ' ' + REPLACE(CONVERT(VARCHAR(8),DATEADD(HOUR,+0,SHIFTDESC.EP_SHIFT_TIMETO + ':00'),108),':','') END),12,0,':'),15,0,':') AS DATETIME),CAST(STUFF(STUFF(LASTSCAN.EP_SCAN_DATE,12,0,':'),15,0,':') AS DATETIME)) / 60.0 - 0.25) AS FLOAT),2)
    ELSE ROUND(CAST((DATEDIFF(MINUTE,CAST(STUFF(STUFF(FIRSTSCAN.EP_SCAN_DATE,12,0,':'),15,0,':') AS DATETIME),CAST(STUFF(STUFF(LASTSCAN.EP_SCAN_DATE,12,0,':'),15,0,':') AS DATETIME)) / 60.0) AS FLOAT),2) END AS OTWORK_HOUR

    Do not use computations in a declarative language.  This is SQL and not COBOL.
    Use a table of time slots set to one more decimal second of precision than your data. You can now use temporal math to add it to a DATE to TIME(1) get a full DATETIME2(0). Here is the basic skeleton. 
    CREATE TABLE Timeslots
    (slot_start_time TIME(1) NOT NULL PRIMARY KEY,
     slot_end_time TIME(1) NOT NULL,
     CHECK (start_time < end_time));
    INSERT INTO Timeslots  --15 min intervals 
    VALUES ('00:00:00.0', '00:14:59.9'),
    ('00:15:00.0', '00:29:59.9'),
    ('00:30:00.0', '00:44:59.9'),
    ('00:45:00.0', '01:00:59.9'), 
    ('23:45:00.0', '23:59:59.9'); 
    Here is the basic query for rounding down to a time slot. 
    SELECT CAST (@in_timestamp AS DATE), T.start_time
      FROM Timeslots AS T
     WHERE CAST (@in_timestamp AS TIME)
           BETWEEN T.slot_start_time 
               AND T.slot_end_time;
    --CELKO-- Books in Celko Series for Morgan-Kaufmann Publishing: Analytics and OLAP in SQL / Data and Databases: Concepts in Practice Data / Measurements and Standards in SQL SQL for Smarties / SQL Programming Style / SQL Puzzles and Answers / Thinking
    in Sets / Trees and Hierarchies in SQL

  • How to use Special value set with Column clause to display addtional column

    hi
    can anyone tell me
    How to use Special value set with Column clause to display addtional column
    how can i use FND POPID and with COLUMN clause ?

    Dear Yaseen,
                To get the value in formula cumulative,after you have created the formula for that particular key figure,go to edit and click on tab "calculations".
    In that select overall result as 'count all values not equal to zero' and single result as 'count all values not equal to zero' .
    And mark the cumulative check box underneath.
    I hope you get the desired result and please do me favour .
    Sumit goomber

  • How to use temporary interface in another interface as derived table in 10g

    Hi ,
    Can somebody please tell me how to use temporary interface in another interface as derived table in 10g.
    I have an option in odi 11g to this task.But i am working on odi 10g for my project.So that please help me to do this task.
    I can able to create temporary interface in 10g ,but i dont know how to use that temporary interface in another inerface as derived table.
    Thanks in Advance
    Thanks,
    Srikanth A

    A temp interface CANNOT be used as a derived table in ODI 10g.
    All you can do is to drag and drop the temp interface as the source in the mapping.
    PS. Please remember to assign correct/helpful points to the people who help you in the forum.

  • Maximum Number of Columns that adf table can support in JDeveloper 10.1.3.1

    Hi All,
    I'm using Toplink 10.1.3.1 . In JDeveloper 10.1.3.1 .
    I'm Trying to display the columns of a table which is having the more than 380 columns.
    When I'm trying to display the columns in adf table, it is getting hanged. The console of the displaying that "too long".
    If Execute the Application with nearly 50 columns, It is working fine.
    what is the Maximum number of columns that adf table can support. Is there any other solution for my problem.
    could anyone help me out.
    Thanks in advance,
    regards,
    Satish

    Hi,
    I am not sure there exist a limitation in columns and if the application hangs then this probably is a bug either in the business service or the view (which can also be due to that the server runs out of memory because of the created object instances).
    However, in my opinion a table with 380 columns is a loud cry for denormalization
    Frank

  • Re: Getting the current selected Row & column in adf table

    Hi,
    Our requirement is we have to retrieve both the current row and column in adf table.
    We can retrieve the current row in the backing bean like
    ViewObject view = getViewObject();
    view.getCurrentRow();
    Is it possible to retrieve selected column id or column header text as we are getting for row?
    please give some sample.
    Thanks,
    Vijay.
    Edited by: Vijayakumar Palanisamy on Jun 23, 2011 2:23 AM

    Hi John
    My exact requirement,
    1.     We have collection of records in adf table
    2.     Each cell in the row has commandImageLink (Like adding approver, edit approver, delete etc)
    Currently it’s working fine for me in the commandImageLink listener, but the problem is table is refreshed 2 time,
    while selecting a record and commandImageLink is clicked, I have to avoid 2 times refreshing,
    If it’s possible to identify a particular cell in the row selection, I can avoid the image link listener.
    we are using Jdeveloper11.1.1.4.0
    Please suggest.
    Thanks,
    Vijay

  • How to eliminate  select message  after Radio button in ADF tables

    how to eliminate select message after Radio button in ADF tables
    example <f:facet name="selection">
    <af:tableSelectOne>
    </af:tableSelectOne>
    </f:facet>
    output:
    radobutton select
    radiobutton select
    please help me regarding this issue.

    Hi,
    this usually has a text String in the header saying "Select and .." which can be changed through the property inspector for the TableSelectOne component
    Frank

  • Using CASE WHEN for Essbase column in OBIEE 11g

    Hi all,
    I have a business model in OBIEE 11g, taking the source from Essbase 11. The measures of the Essbase cube in the physical layer is flattened, and the aggregations for the measures are set to SUM.
    The Product dimension has 5 generations. In Product logical table, I created a logical column called "Product Grouping" using a simple CASE WHEN formula:
    CASE
    WHEN "TEST"."Product"."Gen5,Product" IN ('100-10', '100-20', '200-10', '300-10') THEN 'Group 1'
    WHEN "TEST"."Product"."Gen5,Product" IN ('100-30', '200-20') THEN 'Group 2'
    ELSE 'Group 3'
    END
    Problems:
    1. If I don't place this "Product Grouping" in the logical level/hierarchy, I got error in the report when I simply show Product Grouping and a measure.
    2. If I place this "Product Grouping" in the logical level/hierarchy (on the 5th level), no more error in the report when I simply show "Product Grouping" and a measure. The measure value also shows the correct SUM (group by). However, when I add "Gen1,Product" the "Product Grouping" and the measure value suddenly becomes not grouped by.
    Has anyone ever tried and encountered something like this? Any thoughts?
    Thank you very much!

    Hi Deepak, thansk for the suggestion.
    However, I can't use calculated item for this report because:
    1. incorrect result will be shown when my measures involve a formula to derive a percentage value.
    2. calculated item is not available if we do "combine requests" (or union) in 11g.
    Any thoughts anyone on how to solve this? Is this just me, or it's a bug?
    Thank you very much.

  • How to use xtags: when or xtags: if on variable id

    <!-- <xtags:variable id="data" context="<%=specs%>" select="//header/msds"/>
              <a href="/DATA/<%=data%> target="#">MSDS</a>
    -->
    My problem is if the value of data is null it gives the error page not found in the explorer but I want to href to some html file that for this item data is not there(actually data is holding a pdf file name if no file is attched to this item then i want to display the not data vailable for this item
    how I can use xtags: when
    xtags:otherwise doing checking on the id data
    Thanks

    Thanks for response
    I got the same code from xtags library but still the problem is
    <xtags:choose>
    <xtags:when test="firstName">
    Hello <xtags:valueOf select="@firstName"/>
    </xtags:when>
    <xtags:otherwise>
    Hello there friend
    </xtags:otherwise>
    </xtags:choose>
    I am not clear that this firstname is the is id or what
    I wanted to confirm that I have to use this whole code inside a xtage: variable
    like for example my code is
    *<xtags:variable id="msds" context="<%=specs%>" select="//header/msds"/>*
    I have to validate msds that if it has some value go for it other was I can provide ahtml file displaing no file i sthere

  • How to use methods when objects stored in a linked list?

    Hi friend:
    I stored a series of objects of certain class inside a linked list. When I get one of them out of the list, I want to use the instance method associated with this object. However, the complier only allow me to treat this object as general object, ( of Object Class), as a result I can't use instance methods which are associated with this object. Can someone tell me how to use the methods associated with the objects which are stored inside a linked list?
    Here is my code:
    import java.util.*;
    public class QueueW
         LinkedList qList;
         public QueueW(Collection s) //Constructor of QuequW Class
              qList = new LinkedList(s); //Declare an object linked list
         public void addWaiting(WaitingList w)
         boolean result = qList.isEmpty(); //true if list contains no elements
              if (result)
              qList.addFirst(w);
              else
              qList.add(w);
         public int printCid()
         Object d = qList.getFirst(); // the complier doesn't allow me to treat d as a object of waitingList class
              int n = d.getCid(); // so I use "Object d"
         return n; // yet object can't use getCid() method, so I got error in "int n = d.getCid()"
         public void removeWaiting(WaitingList w)
         qList.removeFirst();
    class WaitingList
    int cusmNo;
    String cusmName;
    int cid;
    private static int id_count = 0;
         /* constructor */
         public WaitingList(int c, String cN)
         cusmNo = c;
         cusmName = cN;
         cid = ++id_count;
         public int getCid() //this is the method I want to use
         return cid;

    Use casting. In other words, cat the object taken from the collection to the correct type and call your method.
       HashMap map = /* ... */;
       map.put(someKey, myObject);
       ((MyClass)(map.get(someKey)).myMethod();Chuck

  • How to call PL/SQL function inside column in entity

    Hello,
    How can I do next:
    - Crete entity from existing table in database, but one column in the table gets value from function. Function is written in oracle PL/SQL language and it is located inside some package on database.
    Application should run LCDS3 and tomcat.
    All help is appricitated

    Anil,
    I'm using LCDS3, and here is what I trying to do (for example):
    - I have on Oracle DB table REGION, with columns: Code, State, Population.
    - I want to create entity that contains same columns as table REGION (Code, State, Population) and to have addition column RegionName witch get value from PL/SQL function (loacated in package "common" on DB) "common.fgetRegionName(Code)".
    Can you explain me how to create that entity.
    Thanks
    Almir

  • Idea about how-to using 'Agilent Wireless Test Manager' interfaces in Labview ?

    Hello everyone,
    I am not sure whether it is appropriate to post this here.  
    Currently I got a Wireless Test Manager CD(Agilent E6560A) and is trying to convert some functionalities inside class 'cdmaTXMeasTests' into labview.
    I am doing the 'code domain power testing' module with labview, which is well done in that 'cdmaTXMeasTests'.
    I am wondering if any one could provide me some idea how to use that 'cdmaTXMeasTests' in my labview without rebuild the wheel.
    ( I am not sure whether that would work,  Are the libaries used by wireless test manager a  ActiveXDLL that could be used by labview ? Or there is some other way to do it or not?)
    Any idea is well appreciated,
    +Kunsheng Chen

    Good Afternoon Kunsheng Chen,
    It seems like you are trying to port your DLL.  Rather, I would suggest using a Call Library Function Node (right-click the Block Diagram, Functions>>Connectivity>>Libraries & Executables>>Call Library Function Node).
    From the Agilent website, this is a C dll so you will be able to access it using this VI in LabVIEW with no problems.  You might want to contact Agilent to see if this DLL has ActiveX components.  Alternatively, you can simply browse the list of ActiveX components on your computer.
    The following links may provide some useful information for using a DLL in LabVIEW.
    An Overview of Accessing DLLs or Shared Libraries from LabVIEW
         http://zone.ni.com/devzone/cda/tut/p/id/3009
    Call Library Function Node
         http://zone.ni.com/reference/en-XX/help/371361E-01​/glang/call_library_function/
    Using Existing C Code or a DLL in LabVIEW
         http://decibel.ni.com/content/docs/DOC-1690
    Regards,
    Charlie Piazza
    Staff Product Support Engineer, RF
    National Instruments

Maybe you are looking for

  • Start page changes and settings changed every time firefox is turned on goes back to normal setting

    I have down loaded firefox several times and it wont keep the options i select in options, the home page goes to snap do whenever firefox is restarted

  • Drilldown by  Customer Country

    Hi I am using BI 7.O in which i have a customer outstanding query using  0FIAR_C03 infocube.In this i require drilldown based on Customer country  but the present country characteristic is showing  Billing country (0COUNTRY). I want to use country at

  • Running total for duplicate rows

    Hi, I am trying to write an sql which shows the running total for records which has duplicate. Please share any idea to get this. sample rows: col1 col2 col3 1      A    2 1      A    2 1      A    2 1      B    3 1      B    3 1      C    5 1      D

  • Overview of non info records

    Is it possible to get a list where you can see all the materials that does not have an info record??

  • User group [$CLASS] not an Org level field in IA, whereas it is in DA

    Hi All, We have an authorization problem that we faced while SAP Upgrade. In the development system while we upgraded all the roles, we did not face any issue. User group field [$CLASS] was actually an org level field in that system and the roles wer