Changing bgColor dynamically?

Is it possible to use a repeater, with the dataProvider, to
change backgroundColor dynamically?
for instance:
<mx:Repeater ........ >
<mx:Canvas
backgroundColor="{repeaterIdHere.currentItem.bg_color}"
width="100%" height="100%" />
</mx:Repeater>

The Repeater will create a series of instances of the
contents between <mx:Repeater> and </mx:Repeater>. For
example, if you wanted 6 Canvases each with a different background
color, the Repeater would work:
[Bindable] private var dp:ArrayCollection = new
ArrayCollection(
[{color:0xff0000},{color:0xff8800},{color:0xffff00}, ... ]);
<mx:Repeater id="rep" dataProvider="{dp}" >
<mx:Canvas backgroundColor="{rep.currentItem.color}" ...
>
</mx:Canvas>
</mx:Repeater>

Similar Messages

  • How to change the dynamic IP address to Static IP Address in Solaris 10X86

    Hi,
    I have installed Solaris 10X86 in a VM.While installing Solaris I have enabled DHCP.So its created with dynamic IP Address.Now I want to change the dynamic IP address to static IP address.Please anyone can help me to sort out this problem.

    Hi,
    I have installed Solaris 10X86 in a VM.While installing Solaris I have enabled DHCP.So its created with dynamic IP Address.Now I want to change the dynamic IP address to static IP address.Please anyone can help me to sort out this problem.

  • Change query dynamically in DB Adapter

    Hi,
    Please answer these questions.
    1. How to change query dynamically in DB Adapter?
    2. I have 2 db adapters, if i got error in 1 db adapter then how to rollback?
    Regards,
    kpr

    Hi,
    <div class="jive-quote">How to change query dynamically in DB Adapter?</div>
    Unfortunately there is no way to pass the query dynamically in DB Adapter. The reasoning behind that is that the DB adapter configuration wizard creates multiple assist files for each operation including the xsd which can not be created for any query dynamically.
    <div class="jive-quote">I have 2 db adapters, if i got error in 1 db adapter then how to rollback?</div>
    Either use XA datasources or throw a rollback fault in the catch block.
    Regards,
    Neeraj Sehgal

  • How to change JNDI dynamically in DB adapter and FTP adapter

    Hi every one,
    Please any one explain "How to change JNDI dynamically in DB adapter and FTP adapter" with screen shots
    Thanks in advance

    YES, very much possible. Only with CRUD operation on a table is possible.
    Please refer the below URL, where you can see the multiple check box selected under "Perform an operation on a table" under Operation Type.
    http://docs.oracle.com/cd/E23943_01/integration.1111/e10231/adptr_db.htm#BDCGADFJ
    *7) Give points - it is good etiquette to reward an answerer points (5 - helpful; 10 - correct) for their post if they answer your question.*
    Going forward, please raise this as a separate thread. So that people will get benefited.
    Thanks,
    Vijay

  • How to change images dynamically in jsp?

    Hi All,
    i Want to know how to change images dynamically in jsp, for example in any site if u look at advertise or any images, it will be changed after every few seconds.
    Please guide me
    Thanks
    Sandesh S

    sandeshas wrote:
    Hi BlusC,
    i was searching your mail Id to ask the question directly to u,i checked in your blog also, but i didnt get,I want to keep my email spam safe. Only trusted people and direct friends have it. Just use the forums for discussion.
    my question is suppose if i want to display and change the advertise(adds from different company ) in my web site,how can i do it by using jsp?
    Do i need to create animated gifs which contains all company adds??one might be from movie add,after few seconds next one migth be some other web site add like that, how can i achieve this in my servet,jsp or using struts.You create animated gifs with an [animated gif editor|http://google.com/search?q=animated+gif+editor]. There is nothing what JSP can do for you here.

  • VM NIC keeps changing from Dynamic to Static IP (from a static IP pool)

    Back ground:
    Having migrated our VM's from 2008R2 and 2012SP1 servers into one 4 node 2012R2 Hyper V Cluster we have a problem with NIC's being changed to Static IP, this in turn gives a range of warning and errors when
    moving VM's between the nodes (example during a live migrate or when we put a node in maintenance mode). 
    The cluster share a Logical Switch, this switch has 1 Uplink. The uplink is a Port Profile called "TrunkPort" and it contains lots of network sites. Each network site links to a Logical Network, each Logical Network is basically a VLAN on our Cisco
    router/switch.
    We don't have any IP Pools configured since we assign all VM's a static IP manually or they use DHCP provided by our AD servers.
    When we change a NIC to from Static IP to Dynamic (there might be power shell to do this), bit in the GUI its painfull as you have to shutdown the VM remove the adapter and create a new one. I does not last long as the system after a few minutes changes
    the NIC configuration back to Static IP again. Any idea why and how to stop it?
    example of errors after a migration that completed w/ Info :
    Error (23801)
    No available connection to selected VM Network can be found.
    Recommended Action
    Ensure host NICs have connection to the fabric network on which VM Network is created.
    Error (23810)
    There is no host NIC with required classification.
    Recommended Action
    Ensure that there NICs with required classification on a host.
    Error (23806)
    All available ports on switch extension  has been used.
    Recommended Action
    Ensure there are free ports available on a switch extension.
    Error (23808)
    All available ports on port profile  has been used.
    Recommended Action
    Ensure that there are free ports available on a port profile.
    Error (23807)
    The switch extension  has reached maximum supported ports on this host.
    Recommended Action
    Ensure there are free ports available on a switch extension per host.
    Error (23809)
    The port profile  has reached maximum supported ports on this host.
    Recommended Action
    Ensure that there are free ports available on a port profile per host.
    Error (23825)
    The virtual machine requires a logical switch connection and the host network adapter is not attached to a logical switch or operating system doesn't support logical switch.
    Recommended Action
    Ensure operating system supports logical switch and there is a logical switch connection for the host or remove the network interface card from the virtual machine and try the operation again.
    Error (23753)
    The virtual machine or tier load balancer configuration requires an IP pool and there are no appropriate IP pools accessible from the host.
    Recommended Action
    Select a host with access to an appropriate IP pool and try the operation again.
    Warning (23830)
    Unable to find compliant logical switch.
    Recommended Action
    Fix logical switch compliance state.
    Note: a server configured with Dynamic NIC will move between nodes without any errors (nice green tick box icon), our problem is that SCVMM or the servers deside to reconfigure the NIC's to Static IP when ever they see fit!!

    I feel like some issue with the Fabric configuration.
    If you are create a new VM through SCVMM, do you face this issue? (While creating the new VM, on the hardware configuration page, use dynamic IP and Dynamic MAC)
    The first event which you listed says about missing VM Network.
    No available connection to selected VM Network can be found.
    Please check the VM Network to where the VM is connected through SCVMM. And check if all the nodes have the same VM Network.
    If thats missing, fixing it might fix few other errors which you mentioned.
    Optimism is the faith that leads to achievement. Nothing can be done without hope and confidence.
    InsideVirtualization.com

  • Adobe Media Encoder CC renders do not reflect changes to Dynamically Linked After Effects Comps

    When rendering a Premiere timeline with a dynamically linked After Effects composition, Adobe Media Encoder will sometimes use an older version of the linked composition (even after I have saved changes in the After Effects comp).
    For example, if I correct a spelling mistake on some text in After Effects, save the composition, and then add the sequence to the render queue in Premiere, the final output from media encoder still has the old spelling.
    If I do a straight export from Premiere instead of adding to render queue, the output is always correct. I've noticed this problem on several different Windows 8.1 systems.
    All versions of the software are up to date as of today.
    Why is this? Is it something to do with the disk cache in After Effects? Does media encoder have it's own cache that I need to clear?

    Hi, I've been having this same issue.  Here are some additional things I've noticed about it:
    Changes are reflected properly when played back on timeline in Pr CC 2014.
    Happens regardless if the dynamic link file was rendered or not, thus deleting the render files does not fix the issue.
    The issue can persist through saving, closing, and reopening both AE and Pr. 
    I'm using OSX 10.9.4, so this is not just a PC issue.
    Other than manually watching for every change to be reflected in the render, there is no way to know a problem has occurred.  Needless to say this can be incredibly costly.
    Please address this quickly, it's completely unacceptable that what we render out could be a different version from what we see on the timeline.
    PS Some additional things I will be testing:
    Does the issue persist through closing all CC apps, including Media Encoder.
    Does rendering directly out of Pr, i.e. not using Media Encoder, fix the issue.

  • Change non-dynamic attributes of MBeans to dynamic attributes

    Hi All,
    I have legacy code (for WL 8.1), that must run with WL 10.3. There are old Admin scripts for the domain-configuration of the application. During the configuration of the domain, the scripts are trying to set some MBean properties. These properties are non-dynamic, so consuming the change of these properties requires a restart of the Administration Server.
    Is there a way to make these non-dynamic attributes to be dynamic? So, how can I omit the restart(s) of the server?
    The messages in the log file are like this:
    A non-dynamic change has been made which affects the server adminServer. This server must be rebooted in order to consume this change.
    Interestingly, in the log files of the old system (WL 8.1) there is no sign of the need of reboot. In those logs, there is nothing like "non-dynamic", "restart", "reboot".
    József
    Edited by: Jozsef Halasz on 2009.08.03. 15:54

    It is not possible to change the font family of smartstyles. Yes, you are write... Uni-code enable printer cannot support Helve fonts we should use HELVECRYL (cyrillic fonts) else alignment of quantity, amounts all gets truncated.
    Regards,
    SaiRam

  • Background color change of dynamic graphic

    hi ,
    i am using 3D Gauge dynamic  graphic i want to change image backgrond color from white to blue.
    thanks in advance.
    regards,
    rohit

    You can add a <rect> tag, see text in bold below ...
    <?xml version="1.0" encoding="UTF-8"?><svg height="300" text-rendering="geometricPrecision" width="300">
         <rect height="299" id="Background"  width="299" x="0" y="0" style="fill:none;stroke:rgb(0,255,0);stroke-width:1" />
         <defs>
              <radialGradient cx="70%" cy="30%" fx="80%" fy="40%" gradientUnits="objectBoundingBox" id="black-white_1" r="150%" spreadMethod="pad">
                   <stop offset="100%" stop-color="rgb(180,180,180)" stop-opacity="1"/>
                   <stop offset="100%" stop-color="rgb(0,0,0)" stop-opacity="0"/>
              </radialGradient>
         </defs>
         <ellipse cx="150" cy="150" fill="url(#black-white_1)" rx="140" ry="140" stroke="rgb(0,0,0)" stroke-width="1"/>
         <ellipse cx="150" cy="150" fill="none" rx="140" ry="140" stroke="url(#black-white_1)" stroke-width="4"/>
         <line fill="none" id="Needle" stroke="rgb(255,20,20)" stroke-linecap="round" stroke-width="5" transform="rotate(330 150 150)" x1="150" x2="150" y1="150" y2="260"/>
    </svg>
    Regards.

  • Reports 6.0 changing label dynamically

    I am using reports 6.0. I want to change reports label dynamically. I want to build the routine which should work for all the reports. This concept I want to use multi-language facility in my application.
    I have tried set_field, set_attr. But it didn't solve my problem . Can any one help me ?

    Madhuri,
    Please try the Reports forum rather then the SCM forum.
    David

  • How to change the Dynamic Selection screen

    Dear Freinds,
                I have requirement where in on the selection of Dynamic Selections ( iam using PNP logical database) i want to add another fields , could  any one tell me how to change  Dynamic Selections as per my requirement.
    please let me know .
    regards
    divya

    Hi Prat,
               I have done similar way and saved the view ( i.e se80> ediobject>table>table name > given all the tables required for me and i try to saved it is not allowing to save and giving message as empty view cannot be saved. Therefore i have selected the tables which have been added and made one by table and selected them . some how it got saved. Now when i added this name of the view in the custom report caterogy and executed my custom report and selected the > dynamic selections i found as empty and in debugging i can see all the 4 tables which i have mentioed while createing view are there . But i dint understood why the custom View is empty.
    please correct me where i went wrong.
    regards
    divya'

  • UWL - WF TASKS TS20000189 Change Trip - Dynamic parameters for WD ABAP Appl

    Hi
    I am struggeling to manage to solve a WF task in the UWL
    The task is TS20000189 for changing a trip which has been returned for corrections from a manager.
    When previewing th iView for "My trips" I am able to get the overview of all my trips, and when selecting a trip i can see which parameters I need to get in the UWL, but I am no able to do so
    I need to have the following parameteres dynamically presented
    SAP_FITV_ACTION=CHG
    SAP_FITV_PERSNO=00010089
    SAP_FITV_TRIPCMP=R
    SAP_FITV_TRIPNO=0000000328
    My entries in the UWL is as follows:
    <ItemType name="uwl.task.webflow.TS20000189" connector="WebFlowConnector" defaultView="DefaultView" defaultAction="launchIView" executionMode="default">
          <ItemTypeCriteria externalType="TS20000189" connector="WebFlowConnector"/>
    <Properties>
                <Property name="iview" value="pcd:portal_content/erv/standard_roller/ansatt_selvbetjening/no.edb.erv.str.hr.ESS_USER/ansatt_selvbetjening/Reiseregninger_12/com.sap.pct.erp.ess.12.expenses"/>       
                <Property name="newWindowFeatures" value="resizable=yes,scrollbars=yes,status=yes,toolbar=no,menubar=no,location=no,directories=no"/>
    <Property name="WebDynproApplication" value="FITV_TRIP_FORM"/>
    <Property name="WebDynproNamespace" value="sap"/>
    <Property name="DynamicParameter" value="SAP_FITV_ACTION=CHG"/>
    <Property name="SAP_FITV_TRIPCMP" value="R"/>
    <Property name="SAP_FITV_TRIPNO" value="${item.TripNumber}"/>
    <Property name="SAP_FITV_PERSNO" value="${item.EmployeeNumber}"/>-->
    <Property name="display_order_priority" value="5"/>      
    </Properties>
              <Descriptions default=""/>
            </Action>
    </Actions>
        </ItemType>
    Any Ideas will be rewarded
    Regards
    Kay-Arne

    Hi,
    Have you found any solution for this?

  • Business Graphics UI SimpleSeries Changing Label Dynamically

    Hi guys, I am using the business graphic UI element in one of my WD4A component. My BG has 2 simple series and one category. As I can see, using simple series, the label property cannot be bound against a context node attribute. I have to find a way to set this property dynamically.
    According to this link: click after on the simple series
    [http://help.sap.com/saphelp_nw70/helpdata/EN/ed/258841a79f1609e10000000a155106/frameset.htm|http://help.sap.com/saphelp_nw70/helpdata/EN/ed/258841a79f1609e10000000a155106/frameset.htm]
    It seems we can change the label property dynamically, maybe using the API but how?
    I found the interface IF_WD_BUSIN_GRAPHICS_MTD_HNDL, but I don't know how to use it!
    thanks
    Alex

    Hi Alexandre,
    have a look at the Web Dynpro component WDR_TEST_EVENTS, view BG_SIMPLE_IN_MPANE, method WDDOMODIFYVIEW.
    Here is a snippet for setting additional customizing or data for a business graphics view-element. Call this from method WDDOMODIFYVIEW.
    DATA lr_bg TYPE REF TO cl_wd_business_graphics.
    DATA lr_bg_method_handler TYPE REF TO if_wd_busin_graphics_mtd_hndl.
    DATA lr_add_cust_xml TYPE REF TO if_ixml_document.
    lr_bg ?= ir_view->get_element(  <your viewid of business graphic>  ).
    lr_bg_method_handler ?= lr_bg->_method_handler.
    lr_add_cust_xml =  get_<your additional customizing/data>.
    lr_bg_method_handler->add_direct_customizing(
    i_customizing = lr_add_cust_xml
    Kind regards,
    Silke

  • Ssh to Web Host from static IP works -- will fail if change to dynamic IP?

    Folks:
    Opening an OS X terminal window and uttering
    % ssh <myuser_name>@<my_sitedomain>
    has worked flawlessly for me for years. I depend on plain old ssh to maintain sites.
    BUT, my ADSL service is static IP, for which I pay a premium. I'd like to change to cheaper dynamic IP service.
    I'm vaguely aware that ssh security requires the host to recognize my client IP address before granting access. Is this correct?
    If so, it seems that SSH will no longer work if I try to connect from a different IP address for each session, which is what will happen with the cheaper service. Right?
    Is there a way to continue using SSH as before after I switch to dynamic IP service?
    My web host service (bluehost) supports two alternative web-based SSH clients, but I've had real difficulties working with these -- they don't seem to connect reliably at all. I suppose if there is no choice I would have to figure out why these are failing...and hopefully find a fix.
    But I would 'druther use plain ssh if at all possible.
    Q1: Is there a way to use plain ssh with dynamic IP?
    Q2: If so, how?
    Q3: Is there anything special I might do to verify this method before changing over to dynamic IP service?
    TIA,
    Henry

    Oh! I thought you were asking about the gotchas involved with setting up a website on a dynamic IP address like on your home computer, and ssh'ing into it remotely for maintenance, like when you were on business travel or something -- NOT maintaining a website on some webhost's server someplace and wanting to ssh into your shell account there from home in order to maintain the site. So never mind about the dyndns stuff.
    As Caleb, Gnarlodius, et.al, have stated or suggested, the website host isn't going to care what IP address you are ssh'ing into your shell account from. Dump the static IP and save yourself a few buck$.
    And as Caleb suggested, as a test, got a friend with a Mac? Got one at work? Got an Apple store nearby? Pay them a visit, launch Terminal.app, and ssh to your shell account. Different IP address than at home, right? That would prove it to you.
    (There could be one "gotcha" with such a test and that would be if the website/shell account host was also your internet provider. Conceivably, they could restrict shell account access to their servers to only come from IP addresses within their own block of IP addresses, so if you had a failure with this test, you'd want to use a friend's computer that had the same ISP as you do. But I've never heard of any ISP doing that. But think about it -- ssh was made to facilitate connections and protect traffic across the untrusted internet while preventing unauthorized access.)
    (As an additional sidenote, I have my own little very-small-scale mail and file server -- itself on a dynamic IP address -- courtesy of the dyndns stuff I mentioned earlier -- running at home for the benefit of family members, the majority of which no longer live here. They tunnel their afp, imap, and smtp connections through secure shell (only my upstream MTA/MX agent is permitted access to my smtp port). They are all on dynamic IP addresses. When I am on business travel, Lord only knows what IP address I'll get at some hotel someplace. But I get in to my home computer via ssh no problem. It'll be no different with your webhost/shell account provider. Yes, the IP address that I, and any authorized remote client users have, gets logged, just as they will log yours.)
    Again, bottom line? Save a few buck$. Dump the static IP.

  • Issue with onmouseover when attempting to change bgcolor

    I am setting up a skeleton jsp page to be used by my team which will consist of a header, left nav, and a footer.
    The issue I am having is that on the left nav I want the menu items to change color based on an onmouseover or onmouseout event. I know the following will work:
    <td height="20" bgcolor="#f2f2f2" onMouseOver='bgColor="#80d8d8"' onMouseOut='bgColor="#f2f2f2"'>
     Credit Referrals
    </td>
    However, what I would like to do is not have to hardcode the bgcolor= parameter on each of my <td> statements. Instead, is there a way to use a style sheet so that I can simply refer the onmouseover/out events to the bgcolor in the style sheet?
    Thanks...

    try this out.
    ========================
    <HEAD>
    <TITLE> New Document </TITLE>
    <META NAME="Generator" CONTENT="EditPlus">
    <META NAME="Author" CONTENT="">
    <META NAME="Keywords" CONTENT="">
    <META NAME="Description" CONTENT="">
    <style type="text/css">
    .navmenu {cursor: hand;
    background-color: #e2e2e2;}
    .navsub {cursor: hand;
    background-color: #f2f2f2;}
    .navdv {background-color: #808874;}
    </style>
    <SCRIPT LANGUAGE="JavaScript">
    <!--
    function changecolor(id,myclass)
    htm = document.getElementById(id);
    htm.className=myclass;
    //-->
    </SCRIPT>
    </HEAD>
    Here is my code using the class .navmenu :
    <div class="navmenu" id="mydiv" onmouseover="changecolor('mydiv','navsub')" onmouseout="changecolor('mydiv','navdv')">
    <tr >
    <td height="20">
    <b>Queues</b>
    </td>
    </tr>
    </div>
    <BODY>
    </BODY>
    </HTML>

Maybe you are looking for