Using Expression in commandButton "Icon" property

I have 2 images and i have 2 conditions. i want to show one image at a time under a condition. I am using the following expression to determine the image to be displayed on CommandButton in adf:
#{row.bindings.PolicyExceptionApprovedFlag.inputValue=='U' ? '/images/waiting_for_approval.png' :  '/images/waiting_for_approval.png'}
When i run the page i am not watching any image on the button. what am i doing wrong here?
I am using Jdev 11.1.1.7 . .
-Usman

This expression syntax is ok if the commandButton inside table but are you sure you have waiting_for_approval.png inside images folder (public_html --> images  -->waiting_for_approval.png )?
Why you write the same image in both expression sides? it should be like this : #{row.bindings.PolicyExceptionApprovedFlag.inputValue=='U' ? '/images/image1.png' :  '/images/image2.png'}

Similar Messages

  • Using Expression in the PageName Property of a Tablix

    Dear Community, my scenario includes SSRS 2008R2/2012 and RDL reports
    I need Excel 2010 sheets to be named; every Tablix a different sheet. The new Property PageName is perfect and works great.
    But I dislike to manually type the name and I'm looking for a way to set the PageName dinamically... The Dataset name could be my solution; I use
    basic Tablix and just need to seek the name to set the Property.
    I thought to the Custom Code. The (wrong) idea was to pass a field and retrieve the dataset name from it. No Success:
    =Code.getDatasetName(Fields!myFLD.Value)
    Public Function getDatasetName (byval myFLD As Field) As String
    return myFLD.ParentName.ToString  'invented method
    End Function
    Thank in advance
    pf

    Hi pf,
    If I understand correctly, you have several tablix in the report, and it has page break between each tablix.
    As per my understanding, we need set the PageName property for each tablix manual. Since that, we have to manual type the dataset name for each tablix. If we have add page break in one tablix, we can use field value expression to display group values as
    sheet name in excel.
    Reference:
    Naming Excel Worksheets
    Regards,
    Alisa Tang
    If you have any feedback on our support, please click
    here.
    Alisa Tang
    TechNet Community Support

  • Why can't I use "icon" property?

    I'm trying to make a very basic component:
    1) I created a MovieClip with some graphics representing a
    simple tab menu item
    2) I created a class "Tab.as" which extends MovieClip and
    linked to the MovieClip from step 1
    3) I used Component Definitions in the library to add a
    String property linked to the variable "icon":
    Label = "Icon", Variable = "icon", Value = "", Type =
    "String"
    4) In my Tab.as class I put an [Inspectable] get/set
    property, icon:
    [Inspectable]
    public function get icon():String{ ... }
    public function set icon(val){ ... }
    I get the following compile errors for both get and set
    functions:
    1023: Incompatible override.
    1021: Duplicate function definition.
    Why?

    Yeah I didn't post enough code, what I have is like this:
    var _icon:String
    [Inspectable]
    public function get icon():String{
    return _icon
    public function set icon(val:String):void{
    _icon = val;
    So _icon is the storage variable as defined in AS, "icon" is
    only defined as a get/set function pair and in the component
    definitions as the identified Variable.
    I was suspicious of the component icon, too, but as you say
    it's in a meta tag so I can't figure how it would conflict. And as
    I mentioned earlier, how do some of the components get away with a
    getter/setter icon property?
    quote:
    Hmm, but I only get the errors when I set the same name for
    the property and the getter/setter methods.
    You mean the component definition "Variable" and the get/set
    functions? I seem to be able to make them the same in all other
    cases... ie I set the component definition Variable to "iconProp"
    and the get/set functions as "iconProp". There's just something
    funky going on with "icon" it seems.

  • When I create a New Folder (on the desktop or in Finder), the system uses the Generic Document Icon instead of the Generic Folder Icon. How can I change this back?

    When I create a New Folder (on the desktop or in Finder), the system uses the Generic Document Icon instead of the Generic Folder Icon. How can I change this back?
    All of a sudden I noticed that most of the folders on my computer were no longer using the folder icon, but the generic document icon. I had to manually change back the icon being used by opening Get Info for each folder and copying and pasting the generic folder icon from some folders that remained unchanged. Now whenever I create a New Folder (right click -> "New Folder"), the icon that shows up is the generic document icon (white page with top right corner turned down). And I have to manually change it so it shows up as a folder in Finder or on my desktop. I don't know why or how this switch happened. All of the folders now on my computer look ok, but I need to change the default so when I create a New Folder it uses the correct icon.
    I have also Forced Relaunch of my Finder and rebooted the system. I downloaded Candybar but am not sure what will fix anything, so I haven't proceeded.
    Anyone know how I can do this? Thanks.

    Anyone?

  • How can i play iTunes on apple tv from my mac?  i used to have an icon that synced the two but i can't find that icon anymore

    how can i play iTunes on apple tv from my mac?  i used to have an icon that synced the two but i can't find that icon anymore

    If you are using the 2nd or 3rd gen Apple TV (little black box) then it would have no syncing or storage capability.
    iTunes content would be accessed using home sharing.
    Setting up Home Sharing for Apple TV (2nd generation and 3rd generation) - Apple Support
    If you are referring to the 1st gen (bigger aluminum box with hard drive)
    iTunes 11 for Mac: Play items in your iTunes library using Apple TV (1st generation)

  • I used to have an icon on my menu bar at the top of my screen to help me detect displays (monitors)  It has disappeared and I don't know how to get it back.  Does anyone know?

    I used to have an icon on my menu bar at the top of my screen to help me detect displays (monitors)  It has disappeared and I don't know how to get it back.  Does anyone know?

    Your's may look more like this...
    ...if you're running Mountain Lion. I'm in clamshell mode right now, so I don't have any mirroring options. AFAIK, there's no more "Show displays in menu bar" in Mountain Lion.
    Clinton

  • Unchecking view as icon property

    Can I check or uncheck view as icon property of multiple block diagram objects at once??
    Labview user
    Solved!
    Go to Solution.

    Aojha wrote:
    Can I check or uncheck view as icon property of multiple block diagram objects at once??
    Yes, In LabVIEW 2012 you can select any number of terminals, right-click, and change them all at once.
    (In LabVIEW 2011 and earlier you cannot do that)
    LabVIEW Champion . Do more with less code and in less time .

  • How do I convert a string, and use a string as a property?

    I have an array in the following format:
    {ownsCar: 'true', ownsBike: 'true', ownsHouse: 'true'}
    {ownsCar: 'false', ownsBike: 'true', ownsHouse: 'true'}
    {ownsCar: 'true', ownsBike: 'false', ownsHouse: 'true'}
    etc ............
    And I need to test against each item e.g.
    if...
    myDataGrid[myItem].ownsCar == Object(myCheckbox).label
    ... then
    if...
    myDataGrid[myItem].ownsBike == Object(myCheckbox).label
    ... then
    if...
    myDataGrid[myItem].ownsHouse == Object(myCheckbox).label
    ... then
    But I need to build my application where the property (e.g. "ownsCar", "ownsBike", "ownsHouse") is a variable such as:
    if...
    myDataGrid[myItem].myProperty == Object(myCheckbox).label
    ... then
    I would like to loop through my Array, counting the number of items, and then use each item as a property.
    How would I convert the string (e.g. "ownsCar") into a property "myProperty" ???
    Many thanks in advance
    Chris

    Thanks, but my problem is that I won't know what my property will be.
    E.g. they could be...
    {svnsdkvnsdklvnsdklv: 'true', seuAfnwfnw: 'true', asfwseionf: 'true', etc.................}
    and there could be lots of them.
    I need to have myObject[N], where N is a variable property for each of the items taken from a variable length array
    so...
    ownsCar is represented by myObject.[N]
    ownsHouse is represented by myObject.[N+1]
    ownsBike is represented by myObject.[N+2]
    etc
    (sorry, this is so difficult to explain when I dont know what the answer is)

  • Using expression

    hi
    I have to use expression operator in a cube's mapping. i am using two different tables to get a column from each table in input group of the expression. On the bases of these two columns i have to make a decision in CASE statement in output group.
    but in mapping deployment it gives me an error that expression is getting data from two different sources.... is it impossible to use two different tables in expression operator..... if so......... then how can i solve my problem (in fact i have to use case statement for decision making on the bases of the information from those two tables)
    thanks in advance
    imran

    hi Patrick
    i have already done this but it is not working as well and response is same "you are using two different sources in expression".
    in fact i am using few tables from source schema and another table(time dimension table) from target schema. i think either this error is due to using time dimension's table or it could be due to using table from two different schema's
    what you say... i need your point of view
    regards,
    imran

  • Use of weblogic.system.home property

    Hi,
    I am working on Windows 2000, with weblogic 6.0.
    I am trying to launch the default weblogic server with the
    script startWebLogic.cmd, but I modified the original script
    to set the current directory as the script directory.
    So I commented the cd ..\.. command and set the weblogic.system.home on the java
    weblogic.Server, as it is
    written in the adminguide page 2-6
    But it seems that weblogic can no longer find the config.xml file.
    In fact the exception I got is the following "weblogic.management.configuration.ConfigurationException:
    XmlRepository directory .\config does not exist" and the startup.log file contains
    the following warning : "####<Feb 10, 2001 12:12:51 PM EST> <Warning> <Management>
    <nicolas> <myserver> <main> <> <> <000000> <Unrecognized property: system.home>"
    So I am just wondering if the system.home property is still supported or if it is
    a documentation mistake (or misunderstanding)
    Else is there any way to start a weblogic server with the home dir different than
    the installation root.
    Thanks
    But

    "-Dweblogic.RootDirectory=c:\bea\wlserver6.0sp1" . . . Thank you Vijay at BEA
    "David Brown" <[email protected]> wrote:
    >
    Does any have any more information regarding using the new 'ServerMBean.RootDirectory'
    property ? I really need to find a way to tell weblogic 6.0sp1 where
    to find
    it's XmlRepository. (./config)
    In our instalaltion, "./config" is under c:\bea\wlserver6.0sp1\, but
    we are launching
    the JVM from a directory outside of c:\bea\wlserver6.0sp1, so I need
    to tell the
    VM where to look for ./config
    Thanks,
    David
    "Sanjeev Chopra" <[email protected]> wrote:
    Nicolas GANDRIAU <[email protected]> wrote in message
    news:3a859168$[email protected]..
    Hi,
    I am working on Windows 2000, with weblogic 6.0.
    I am trying to launch the default weblogic server with the
    script startWebLogic.cmd, but I modified the original script
    to set the current directory as the script directory.
    So I commented the cd ..\.. command and set the weblogic.system.homeon
    the java
    weblogic.Server, as it is
    written in the adminguide page 2-6
    But it seems that weblogic can no longer find the config.xml file.
    In fact the exception I got is the following"weblogic.management.configuration.ConfigurationException:
    XmlRepository directory .\config does not exist" and the startup.logfile
    contains
    the following warning : "####<Feb 10, 2001 12:12:51 PM EST> <Warning><Management>
    <nicolas> <myserver> <main> <> <> <000000> <Unrecognized property:system.home>"
    So I am just wondering if the system.home property is still supportedor
    if it is
    a documentation mistake (or misunderstanding)This is a bug in 6.0 (system.home does not work).
    This will be fixed for upcoming ServicePack 1, which defines a new
    property - ServerMBean.RootDirectory
    Else is there any way to start a weblogic server with the home dirdifferent than
    the installation root.
    Thanks
    But

  • Using expressions in jsf tags

    I have a problem with using expressions in jsf tags! I know this
    topic was discussed before but it doesn`t work.
    I want to use the following jsf-code:
    <h:panel_data id="tab" var="vari" modelReference="Bean.varis">
    <h:output_text id="Id" modelReference="vari.id"/>
    <h:command_hyperlink id="hyper" href="next.jsp" label="Detail">
    <f:parameter id="Param1" name="id" value="vari.id"/>
    </h:command_hyperlink>
    </h:panel_data>
    The value of the parameter should have the value of vari.id!! Why doesn`t it work?? I also tried to use value="${vari.id}" and value=<%= vari.id %>.
    I have also changed the jsf_core.tld from
         <rtexprvalue>false</rtexprvalue>
    to
         <rtexprvalue>true</rtexprvalue>
    Does anybody know what to do? Where should the .tld-files be localized when i deploy the webapplication??

    On May 19th, 2003 HydraD == "HD" wrote:
    HD> I have a problem with using expressions in jsf tags! I
    HD> know this
    HD> topic was discussed before but it doesn`t work.
    HD>
    HD> I want to use the following jsf-code:
    HD>
    HD> <h:panel_data id="tab" var="vari" modelReference="Bean.varis">
    HD> <h:output_text id="Id" modelReference="vari.id"/>
    HD> ...
    HD> <h:command_hyperlink id="hyper" href="next.jsp" label="Detail">
    HD> <f:parameter id="Param1" name="id" value="vari.id"/>
    HD> </h:command_hyperlink>
    HD> </h:panel_data>
    HD>
    HD> The value of the parameter should have the value of
    HD> vari.id!! Why doesn`t it work?? I also tried to use
    HD> value="${vari.id}" and value=<%= vari.id %>.
    HD>
    HD> I have also changed the jsf_core.tld from
    HD>      <rtexprvalue>false</rtexprvalue>
    HD> to
    HD>      <rtexprvalue>true</rtexprvalue>
    HD>
    HD> Does anybody know what to do? Where should the
    HD> .tld-files be localized when i deploy the
    HD> webapplication??
    If you want your parameter's value to be pulled from the model, you must
    use modelReference instead of value. Try that and see if it works.
    Ed

  • Can you use wallpapers for the icons on the iphone 3g? If so, How

    Can you use wallpapers for the icons on the iphone 3g? If so, How

    On the Mac to save a picture from a web page <CTRL> click on the picture then choose Save Image As... and save it onto the desktop. Once you have collected all your pictures onto the desktop open iPhoto and Import all the images into an iPhoto Album. Quit iPhoto.
    Open iMovie, then go to the Toolbar along the right side of the iMovie window and click on the camera icon to browse through your iPhoto Library. Find your pictures then drag them into the Project Browser window.

  • HT1386 In the new iTunes where is the sync options?  I used to see an icon.

    In the new iTunes where is the sync options?  I used to see an icon on the left side while the sync was happeneing, then click on it to make changes.

    If you  have iTunes 11 turn on the Sidebar. Go to iTunes>View and click on Show Sidebar. You can also do a Crtl+S to show the sidebar and Control+B to show the Menu bar
    To sync to your iPod go to iTunes>Help>iTunes Help>Sync your iPod....>Sync You Device>Set up Syncing and follow the instructions.

  • Using expressions in tag ...

    Hi,
    I am facing a problem while using expressions in tag
    in iPlanet4.1.
    my code is
    <%@ taglib uri="/uri" prefix="myjsp" %>
    <myjsp:init param1="<%=avar%>" param2="abd" />
    this is working fine in apache.but in iplanet the value for param1 is taken as a string "<%=avar%>" !
    is there any solution for this ?
    thanks.

    I don't know anything about iPlanet, but you might want to check your TLD file and make sure you're not setting rtexprvalue to false for the attribute param1.

  • Error -20020 when using Express "Filter" VI?

    The help for Error -20020 says the cutoff frequency Fc must meet 0 <= Fc <= Fs/2. 
    Set Up
    Using LIFA to read an Arduino Uno analog input signal at approximately 125 samples per second.
    Using Express "Filter" VI to filter the data. The filter is set to Lowpass, Fc = 10HZ, Type Buterworrh and IIR.
    The Express Filter works when Fc is set to 0.5Hz.
    Why must Fc be st to a value less than !/100 of the sampling frequency? 
    What must be done to obtain a low pass cut off frequency of 10Hz wien the sampling rate is 125 samples per second?
    Howard
    Solved!
    Go to Solution.

    Thank you for your reply.
    Attached is a VI that demonstrates the problem . You will need an Arduino board and LIFA to run the demo.  However, hopefully you will be able to make some recommendations after inspecting the VI.
    As a  follow up to your comment how do you add Delta T information to the data coming from an Arduino board?  I tried adding a "Set Dynamic Data Attributes" VI.   This did not fix the problem.
    Howard
    Attachments:
    LowPassDigitalFiliterTest..vi ‏923 KB

Maybe you are looking for