Using Style Function in AdvancedDataGrid to mess with Colours

Hi
I am using a styleFunction in an Advanced  Data grid to change the background colours - the function is bellow
I can mess with the test to my hearts content, but i cant chage the row background.  Is this possible?
backgroundcolor is just one of many attempts! Looked everywhere, but aside from using a itemrenderer to override I cant come up with a solution (cant use this due to all kinds of nesting issues)
Any ideas?
          public function myStyleFunc(data:Object,
            col:AdvancedDataGridColumn):Object
             if (data["RAG"] == "Red")
                return {color :0xFF0000, backgroundcolor:0xFFF552,fontWeight:'bold',fontStyle:'italic'}; 
            else if (data["RAG"] == "Amber")
                return {color :0xf7ba48};
            else  return {color :0x1bea15};

Hi,
Based on your description, you don't want to meet the following issues:
The first row returns back all the data from the list up to the value selected.
Any new item added, replaces the value in the other items.
Here is an article about InfoPath Repeating Table Lookup control on SharePoint List, refer to it:
http://www.sumitrawat.net/2009/10/infopath-repeating-table-lookup-control.html
Besides, here is a similar post, you can use as a reference:
https://social.msdn.microsoft.com/Forums/office/en-US/43253974-990d-4307-bf54-cc615618362a/issue-with-cascading-dropdown-in-a-repeating-table
Best Regards,
Lisa Chen
Lisa Chen
TechNet Community Support

Similar Messages

  • How can I use the function keys in a GUI with swing?

    I'm wondering how do you declare you want an action to happen when a user uses a function key or any key for that matter. How can you specify something frame wide or for that matter for a specific jtextbox?

    you need to use an accelerator
    setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_A, java.awt.event.InputEvent.SHIFT_MASK | java.awt.event.InputEvent.CTRL_MASK)

  • Converting TIF to JPG messes with colour

    Hi. I just purchased a program called Bracketeer (a really awesome program for making HDR photos), but it is only able to output images in TIF format. I want to save some harddrive space, so I tried to convert these TIFs to JPG with Preview, but doing this conversion makes the photo darker. I also tried using iPhoto to do the conversion but the same thing happened.
    I also tried using Preview to convert the TIF to a PNG and JPEG-2000 and in both cases it worked fine (the converted images look exactly the same as the TIF). Something else I found is that I could convert the PNG to a JPG (so start as TIF, convert to PNG, then convert the PNG to JPG) and the image still looked fine. Because PNG is lossless I'll probably continue using this method to convert the TIFs to JPGs, but I'm wondering why Preview and iPhoto can't properly convert the TIF directly to JPG?
    -Eric

    My guess is that this "Bracketeer" application fails to embed a relevant ICC profile in its output and Preview is filling in the blanks with a default profile that does not accurately describe the color space of the image. Can you post an example TIFF?

  • Difficulty in creating a chart by using a function with a returned value

    Hi,
    I am having a problem in using own function to create chart a with a returned value as the chart. If not using the returned value, it works fine.
    Is this a known issue?

    If you share some code, we might be able to help you.

  • Using time() function in multithreaded application

    I am using time() function in a multithreaded application with NULL argument for getting current time.
    Some time it's observed that we get a time one minute earlier than current time (3600 seconds).
    Is there a problem in the usage of the function?
    I am using expression : currenttime = time(NULL);
    I had seen some people using following way - time(&currenttime );
    Will above two behaves differently in multithreaded environment?
    [I  am using  Sun C++ 5.5 compiler on Solaris 8]

    How do you compare actual time against the time seen by your threads? If your threads are printing the value from time(2) to stdout, it's possible that you're seeing an artifact of thread scheduling and/or output buffering.
    I really doubt that you have a concurrency problem, but anyway make sure that you include the -mt option on your compile line:
    CC -mt blahblahblah...

  • Does LDS 1.1 Support use-defined functions?

    Does LDS 1.1 Support use-defined functions? I'm working with the W3C use case
    REL Q12 which fails with the function, but succeeds if I "inline" the function.

    LD 1.1 does not support User Defined Functions. This feature was omitted for performance
    reasons.
    - Mike
    "Mark Maxey" <[email protected]> wrote:
    >
    Does LDS 1.1 Support use-defined functions? I'm working with the W3C
    use case
    REL Q12 which fails with the function, but succeeds if I "inline" the
    function.

  • Using 3G function outside US territory!!!

    I'm staying in US and I'm planing to buy an Ipad 2 wifi + 3G.
    I would like to know that if I move to another country outside US later, is it still possible for me to use 3G function by registering data plan with another service provider? Or it only works with AT&T and Verizon in US and I absolutely have to purchase a new one when I move to another country?
    Is there any Ipad 2 wifi + 3G that supports an International version?
    Thank you so much

    Buy the WiFi+3G AT&T (GSM) model and you can get a compatible microSIM in whatever country you go to that has iPad data plans. It is not locked to AT&T.

  • Using Syle Function to colorize the backgorund of cells in an AdvancedDataGrid

    I would like to use a Style Function to colorize cells in an
    AdvancedDataGrid. I can get the foreground color set sucessfully
    with {color : "yellow"}. I cannot seem to get the background color
    set -- I have tried background, backgroundcolor, backgrounColor,
    bgcolor and bgColor - all with no success. Any ideas woul be
    appeciated.

    Hi,
    Please visit the URL below for implementation details
    http://www.adobe.com/cfusion/communityengine/index.cfm?event=showdetails&postId=61&product Id=2
    Hope this helps

  • Creating Report using EPM Functions with Dynamic Filters

    Hi All,
    I am new to BPC, In BPC 7.5 i seen like we can generate EPM report using EVDRE function very quickly and easy too. Is the same feature is existing in BPC 10.0 ? if no how can we create EPM reports using EPM Functions with Dynamic Filters on the Members of the dimension like in BPC 7.5.
    And i searched in SDN, there is no suitable blogs or documents which are related to generation of Reports using EPM Functions. All are described just in simple syntax way. It is not going to be understand for the beginners.
    Would you please specify in detail step by step.
    Thanks in Advance.
    Siva Nagaraju

    Siva,
    These functions are not used to create reports per se but rather assist in building reports. For ex, you want to make use of certain property to derive any of the dimension members in one of your axes, you will use EPMMemberProperty. Similary, if you want to override members in any axis, you will make use of EPMDimensionOverride.
    Also, EvDRE is not replacement of EPM functions. Rather, you simply create reports using report editor (drag and drop) and then make use of EPM functions to build your report. Forget EvDRE for now.
    You can protect your report to not allow users to have that Edit Report enabled for them.
    As Vadim rightly pointed out, start building some reports and then ask specific questions.
    Hope it clears your doubts.

  • I have some old cd's I have burned on itunes. How can I copy them to my iphone without using the cloud? I donot want to mess with my cloud settings because I am a technophobe . Please be gentle.

    I have some old cd's I have burned onto itunes. Howcan I copy them to my iphone without using the cloud? I donot want to mess with my cloud settings because I am a technophobe. Please be gentle

    Willy, the procdedure you describe works perfectly for AppleTV G1. In fact, I frequently play DTS music discs ripped to my iTunes library as Apple Lossless (ALAC) and synched to the ATV. What happens is that, as far as iTunes and the ATV are concerned, a conventional stereo 16/44 audio file is being played; however my reciever detects the DTS data stream, and instead of outputting static, it decodes the 5.1 channels correctly. This process parallels the way DTS discs were designed to be played back: a conventional CD player is connceted, via digital out, to a DTS-aware reciever/pre-amp and the two channels of static are recognized as 6 channels of DTS-encoded audio.
    However this process will only work if the player (CD, ATV, PC, etc.) sends a "bit-perfect" 16 bit/44.1 khz data stream to the decoding device. In the case of ATV G2 and G3, as has been discussed elsewhere, the unit resmaples all audio - including 16/44 PCM (Redbook CD)  - to 16/48. While this is not a big deal for conventional audio CDs, MP3s, and AAC files, it mangles the fragile DTS datastream and renders it undecodable. The resulting static that you hear is just like the static you would hear if you played a DTS CD on a non-DTS capable system.
    Sadly, I'm not aware of any easy way around this. You could use a program like Foobar (and the DTS plugin) to convert your DTS CDs to 6-ch .wav or .flac file. From there you could transcode the file to AC-3 and then mux it into a video container that ATV supports. You may need add a dummy video track, for iTunes/AppleTV to be ok with the file, though I'm not sure. This may be a lot of work.
    Sorry for the bad news. I wish that the iTunes/ATV ecosystem had better multi-channel audio support.
    Steven

  • I have a photo of an ice surface and another of a flower. Now I want to create a merged photo with the flower lying under the ice. I understand that I shall use the function "Layer" and have even read in the manual and looked on a video, but that informat

    I have a photo of an ice surface and another of a flower. Now I want to create a merged photo with the flower lying under the ice. I understand that I shall use the function "Layer" and have even read in the manual and looked on a video, but that information is not sufficiently detailed for me. I have tried several options, but I come now way. Generally it seems that your information is only for the ones who can, not for the people who can´t although it is we who really need to learn. Please give me a step by step (click by click) information on how I can get the ice above the flower and then make the ice partly transparent so the flower is seen underneath. Please send me an e-mail Erik Solbu [email protected]

    Open a new document big enough for your image. Then additional open your ice and flower image as well. Copy each and paste it into your blank document. They will be placed on their own separate layers.
    Make sure in your layers panel. (Bottom right) the ice is above the flower, by dragging it in place. In that same layers panel click the ice layer to select in and find the opacity meter above. Drag to the left until you get the effect you desire.

  • I get an error message when I try to use share function on IPhoto. I get the triangle icon with an exclamation mark inside of it.

    I get an error message when I try to use the share function on iPhoto. When I try to share photos via email a triangle icon with an exclamation mark appears. Why can't I use share function?

    The ! turns up when iPhoto loses the connection between the thumbnail in the iPhoto Window and the file it represents.
    What version of iPhoto? Assuming 09 or later
    Option 1
    Back Up and try rebuild the library: hold down the command and option (or alt) keys while launching iPhoto. Use the resulting dialogue to rebuild. Choose to Repair Database. If that doesn't help, then try again, this time using Rebuild Database.
    If that fails:
    Option 2
    Download iPhoto Library Manager and use its rebuild function. (In Library Manager it's the FIle -> Rebuild command)
    This will create an entirely new library. It will then copy (or try to) your photos and all the associated metadata and versions to this new Library, and arrange it as close as it can to what you had in the damaged Library. It does this based on information it finds in the iPhoto sharing mechanism - but that means that things not shared won't be there, so no slideshows, books or calendars, for instance - but it should get all your events, albums and keywords, faces and places back.
    Because this process creates an entirely new library and leaves your old one untouched, it is non-destructive, and if you're not happy with the results you can simply return to your old one. 
    Regards
    TD 

  • Using EveryNCallback function with a C++ class (not VB)

    Hello all,
    I am trying to incorporate one of the ANSI C examples into my code which contains C++ classes. I receive errors because of having to declare the EveryNCallback and DoneCallback functions as static to keep their C function signature. This of course is not allowable when using these functions as members of a class. Could anyone help please?
    Best,
    Paolo

    Firstly, thank you for the help. I have attempted to code the advice you gave but it still does not seem to compile properly. Can you suggest what is wrong with my code please?
    Here is the code I am trying to configure:
    forceDriver.h
    static int32 CVICALLBACK static_callback(TaskHandle taskHandle, int32 everyNsamplesEventType, uInt32 nSamples, void* callbackData);
    int32 EveryNCallback(TaskHandle taskHandle, int32 everyNsamplesEventType, uInt32 nSamples);
    int32 DoneCallback(TaskHandle taskHandle, int32 status, void *callbackData);
    forceDriver.cpp
    DAQmxErrChk (DAQmxRegisterEveryNSamplesEvent(taskHandle,DAQmx_Val_Acquired_Into_Buffer,2500,0,&forceDriver::static_callback,panel));
    **START TASK**
    int32 forceDriver::EveryNCallback(TaskHandle taskHandle, int32 everyNsamplesEventType, uInt32 nSamples)
           panel->(member_function);
    int32 CVICALLBACK forceDriver::static_callback(TaskHandle taskHandle, int32 everyNsamplesEventType, uInt32 nSamples, void* callbackData)
    forceDriver* static_object = static_cast<forceDriver*>(callbackData);
    return static_object->EveryNCallback(taskHandle, everyNsamplesEventType, nSamples);
    where panel is the object I have created. 

  • How to use trignometric functions with MIDP1.0

    HI ALL!
    We designed midlet to run on a mobile phone using MIDP1.0. We have some additional trignometrical classes to integerate with the midlet. But we got astonished when we didn't find any trignometrical function in MIDP1.0 & CLDC1.0. It is now is a great panic for us.
    It is very unbelievable that Sun Microsystem doesn't provide such classes with J2ME!!
    Is there any way to define or get a free-ware trignometrical classes to use?
    We hope reply from this Forum soon!

    Mmmm....,J2ME currently doesn't support doubles,floats and if you want to use trigonometric functions then you will use cos, sin, tan, ctan,atan,acos,asin and this means doubles and floats....

  • How to use percentage functions in BEx with structures

    Hi, I need a help.
    I have a query with a structure in the rows: two characteristics at left then the structure.
    Plant, Year/Month and a structure with 3 lines (Line A = movement type = 1, 2, 3, Line B types 4, 5, 6, Line C types 7, 8, 9).
    In the rows just a quantity.
    I'm trying to use percentage functions CT or GT in the rows, but it's not working.
    The idea is something like:
    Plant 01    07/2010   Line A    30  30%
                                     Line B    20  20%
                                     Line C    50  50%
                     Result                          33%
                     08/2010   Line A    40  20%
                                     Line B    60  30%
                                     Line C   100 50%
                     Result                          66%.
    When I do not use the structure percentage function works well, but with the structure results are completely wrong.
    Any help will be appreciated.
    César Menezes

    You either have to use exception aggregation to give you the total per plant and use that in your percentage calculation, or you could define a formula in the cells. Here you can reference the specific cells you want to use as inputs.

Maybe you are looking for