DataGrid: Modify Foreground Cell Color A Based on Content Of Cell B - Is it possible?

Hi there!
In this forum we can found two nice thread about datagrid format:
Modifying background color of datagrid based on data in grid
Change the RowBackground Color of Datagrid
You can also find a great example here:
LightSwitch control colors of DataGrid rows and other UI elements
All the examples are about Format Cell A based on its content. A need an example where Cell A are formated based on Cell B content.
Is it possible do it?
Best regards,
Ciro

Hi!
Have you any success in implementing row/cell coloring?
Maybe I'll sound little pessimistic, but I just lost 3 days getting something similar to work.. LS is just not up to task.. Now I'm not surprised that it went on the road it went (abandoned).. While the idea is great, everything else is just -> meh..
(and i'm here all the way from beta 1)..
I have simple "is_active" computed property (but I feel it's the same with properties from related tables) and need to color rows accordingly: green - active, red - inactive.. It works inconsistently.. If you have some complex screen you need to
find hook points where you could inject methods to tell datagrid to refresh layout (like "datagrid.OnApplyTemplate"), or just "collection.refresh()".. On every screen I used it there is some "catch".. I've
tried almost everything I could find on net, Dave's example(s), Otis example, some already aged similar SL posts..  tried to connect tables in various combination
like 0..1 -> 1.. I have even converted my tables logic to RIA services where main table does not have computed properties but whole table is returned with "real" properties from RIA service (so "is_active" is computed before arriving
to client).. Still same stupidities, inconsistency, "loading_row" not being fired, not to mention troubles in plumbing all together between RIA tables and "real" tables...
Something so "simple" shouldn't be so complicated to achieve.. If anyone have (kind of) solution I'd like to hear/read it cause right now this "LS thing" have big chance to fly trough my window together with my pc..
Kivito
Nobody expects the Spanish Inquisition! (M.P.F.C.)

Similar Messages

  • Is there a way to disallow web pages to modify foreground color of elements if background of those elements was not changed as well (and vice versa)?

    I have very sensible defaults for my display; i.e. I have dark GTK scheme (dark gray background, light gray text) that suits me way more when working on my computer while it's dark around. I, however, like looking at web pages as how they were mean to be seen. Unfortunately, most of web designers don't think about anyone having non-default colors set up.
    Example one ( http://www.cedok.cz ):
    This site's CSS style has "color: rgb(45, 45, 45);" for the whole <body> but for <select> elements there is no "background-color" set. This means there is a select box rendered with dark gray background and dark gray foreground (text color). This is pretty badly readable (obviously).
    To mention one particular element from this site: e.g. <select id="ctl00_ContentPlaceHolderLevySloupec_HledaniMultiTab1_HledaniZajezdu1_ddlTypZajezdu">
    Example two ( https://support.mozilla.org/en-US/questions/new/desktop/customize/form ):
    On this page (where I'm currently filling in this question) the <textarea id="id_content"> has "background: ... rgb(255, 255, 255);" set, but with my default font color, this textarea is rendered as light gray text on a white background. Again, pretty unreadable (and eye-hurting).
    I can provide screenshots and more reasoning if needed.
    I'm asking if there is (or might be) an option (even disabled by default) or at least an add-on which would keep default colors unless both foreground and background colors were specified. I think this might make Firefox very usable for many people which like to have their default colors configured.
    In case you won't be able to help me by fixing this, could you redirect me to the right place where I could get this requested in a way that might be really possible to happen (bugzilla?).
    Thank you very much in advance.

    Thanks for the reply, but I'm sorry, no. I don't want any addon that customizes colors, I want to use default colors and only prohibit changing them unless both background and foreground colors are changed.
    I have made no color changes WRT to Firefox *only*, I just changed the default for the whole toolkit (gtk in this case). The thing I need is to disable changing *only one* property out of two ({back,fore}ground). Whenever the second one gets set as well, this new setting (both of them) may get reflected, but not before that. It'd be nice to keep this when changing the colors back (deleting the style), but that's not necessary.
    I hope that's understandable, feel free to ask for if that's not the case.
    To express what I mean a bit more precisely, see the attached image. In that image there are four textareas (one of the elements that gets affected by this). First one is a default one (which I want to have if the page has nothing set), the second one is nicely modified to fit for example to a blue-ish page (this one I like as well).
    Second row of textareas shows how the final element looks like if the page has only one of these elements set up. First one changes background without changing font color, the second one vice versa. Both of them are very badly readable, especially with low lighting around.
    This is consequently the same case when it comes to default page background which I cannot set at all, because too many pages have only "color:" set without changed background and that is completely messed up then. Going to extremes, I might mention all color-related modifications (see how ugly the borders look when the background is changed and nothing is done to these borders, their size and color is kept default), but I understand that's too much.

  • Modifying the cell content based on input parameter from variable screen.

    I am trying to modify a cell content in the BEX Web Application Report based on the input parameter from the variable screen.
    I am already aware of how to change the cell content by creating a new ABAP class and inheriting CL_RSR_WWW_MODIFY_TABLE.
    I do not know how to get the input parameter variable from the variable screen in my custom class ZCL_RSR_WWW_MODIFY_TABLE. I am not very familiar with ABAP and would appreciate your help.
    Thanks
    Sowmini

    in the start method
    define a work area like line of n_r_data_set->N_SX_VERSION_20A_1-TXT_SYMBOLS
    loop at n_r_data_set->N_SX_VERSION_20A_1-TXT_SYMBOLS into <wa> ..
    endloop .
    This will have all the filter, variable values entered in the selection.
    Regards
    Raja

  • Conditional format of one cell based on contents of another cell

    Preparing list of appointments for visitors with time for each. There are four possible status categories for visitors based on projected activity and whether they have shown up or not. (A Group Scheduled, A Group Showed, B Group Scheduled, B Group Showed). I've created the calendar in iCal with different calendars, then accessed that through Bento iCal Events. Bento adds the column with name of calendar from iCal. Info is now in Numbers. (iWorks 09)
    It shows Title, Start Date, Location, Calendar. I'm adding more fields using Lookup in Numbers drawing on entire data base brought over from Bento. I'm trying to get what info I need, but none that I don't, so the form isn't too crowded and busy.
    I would like to be able to conditionally format the Time column based on the contents of the Calendar column. If successful, the color of the Time column would tell me all I need to know about visitor status, and I could hide the Calendar column and clean up the form.
    I hope I've described it adequately. Can this be done, and if so, how?
    Thanks! Have a great Thanksgiving!

    jpcranch wrote:
    Does it work to format two cells based on contents of one of them?
    Conditional formatting of a cell depends on the contents of that individual cell, compared with another value, so no.
    But you could use a two-table approach.
    In general terms, the technique is to:
    • make the original table's cell fill transparent,
    • Add a second table to the sheet,
    • Set the second table to copy the control values into a column of cells,
    • Select the cells in that column of Table 2,
    • Apply conditional formatting rules for each possible control value (see below)
    • Set the text opacity for these cells to 0 (full transparency),
    • Click on Table 2 in the sidebar, then use (shift and) the arrow keys to slide Table 2 behind Table 1 to align the highlighted cells with the cells to appear highlighted in Table 1.
    • Set the colour of the cell borders on table 2 to none.
    Using the information you gave regarding the calendar column, you'll need four rules for conditional formatting of this column. All are of the same format:
    Text contains: A Group Scheduled
    With the text changed to match each possible entry.
    Regards,
    Barry
    BTW: by changing the width of the formatted column on table 2, you can appear to highlight as many columns as you wish on Table 1.

  • Force Mapping from Modified Load Cell

    I am having some trouble finishing a program that we have been asked to write. Basically, the program is connected to a piece of hardware we fabricated. The hardware (attached below) is basically a wheel with four spokes. Each spoke has a strain gage attached to it on either side. These are connected as two full-bridge circuits. I have been able to get the force output for each of the full-bridges as the maximum value. We have now been asked to create a map of the forces to show where the most force is being placed (assuming uneven distribution). My vision is that it would use colors to show where the forces are, similar to a temperature map. What would I use to go about doing this?
    Attachments:
    Force Measurement v1.vi ‏106 KB
    Modified Load Cell.png ‏267 KB

    Look at the Intensity Graph. That will plot data as a range of colors. You will need to do some math to determine the value distributions from your set of strain gauge readings. You may also need to do some geometry/masking to set the force to zero where there is no material.
    Lynn

  • Excel sheet has modified data cells error - do you want to submit

    Using smartview in office 2007 I often get trapped in a loop where each time I modify any data on the excel sheet I get the error "Excel sheet has modified data cells. Do you want to submit the modified data cells before proceeding?". Regardless if I choose yes or no I basically have to start a new instance of excel to clear the error.
    For the most part I never use member select rather just type the members I want freehand in the excel workbook. Seems like the error arises after I insert or delete a row or column and then try to update the page.
    If I "reset" the connection it seems to help but not all the time.

    This may be the same issue as you are experiencing "When Trying to Copy Cells Between Excel Tabs Get Message "Excel Sheet has modified data cells do you want to submit the modified data?" [ID 1301092.1]"
    The document is on "My Oracle Support"
    Cheers
    John
    http://john-goodwin.blogspot.com/

  • Setting foreground font color on a JSpinner

    I'm trying to edit the foreground font color on a JSpinner component.
    spinner.setForeground(Color color) or
    spinner.getEditor().setForeground(Color color) doesn't work
    What does?
    Best regards,
    Helge Fredriksen

    try:
          JSpinner.DefaultEditor editor=(JSpinner.DefaultEditor)spinner.getEditor();
          JFormattedTextField TF=(JFormattedTextField)editor.getTextField();
          TF.setForeground(myColor);;o)
    V.V.

  • Can I modify a background color of a template - specifically, the navigation bar background?

    can I modify a background color of a template - specifically, the navigation bar background?

    iWeb has a great toool :
    And it's visible here :
    And google is your friend :
         http://www.google.com/search?q=what+is+a+HTML+Snippet

  • How do modify the highlight color of a button to RED?

    HI! I want to know what is the easiest way to modify the
    highlight color or
    a button to RED. ( I want the helo-green or orange theme).
    I know how to change the theme or by using the
    setStyle("themeColor",
    "haloOrange"); BUT there is no RED. so what is the easiest
    root to modify
    all button instances.?
    PaulD

    David Stiller wrote:
    > Paul,
    >
    >> I know how to change the theme or by using the
    setStyle("themeColor",
    >> "haloOrange"); BUT there is no RED. so what is the
    easiest root to
    >> modify all button instances.?
    >
    > Instead of named themes (like haloOrange), just specify
    a hexadecimal
    > color as the second parameter. setStyle("themeColor",
    0xFF0000); --
    > You'll have to experiment whether that second parameter
    needs to be in
    > quotes or not.
    >
    >
    > David Stiller
    > Adobe Community Expert
    > Dev blog,
    http://www.quip.net/blog/
    > "Luck is the residue of good design."
    HI! Thanks it worked. below is the whole script to modify an
    instance to
    RED -- or any color.
    import mx.styles.CSSStyleDeclaration;
    var new_style:Object = new CSSStyleDeclaration();
    _global.styles.myStyle = new_style;
    new_style.setStyle("color", 0x666699);
    setStyle("styleName", "myStyle");
    // my_button.setStyle("styleName", "myStyle"); --- Use this
    to only modify
    this instance.
    _global.styles.myStyle.setStyle("themeColor", 0xC83F3F);
    Hope this helps someone else. :)
    Paul D

  • What is the purpose of the foreground/background color?

    I want to know what is the purpose of the foreground/background color in photoshop, am knew to PS, so am just trying to figure what are the purposes of some of these stuff.
    Regards,
    Jamaine Semple

    Please read the Help files.  Start with "Creating, Opening and Importing images".
    • Select a canvas color option.
    White Fills the background or first layer with white, the default background color.
    Background Color Fills the background or first layer with the current background color.
    Transparent Makes the first layer transparent, with no color values. The resulting document has a single, transparent layer as its contents.
    The Foreground Color is chosen for the brush, shapes, etc.
    Eventually, you want to read the entire content of the Help files, and maybe, hopefully, a book like " Photoshop Classroom in a Book".
    Photoshop is a professional level application that makes no apologies for its long and steep learning curve.
    Take a class at a community college.  Teaching you Photoshop from the ground up far exceeds the scope of the forum.

  • Changing foreground/ Background color in a High-Level GUI MIDlet

    I have created MiDlet and all the Screens in the MIdlet are High-Level GUIs (Elements from Palette) and I didn't use any Canvas.
    Now, I want to give color customization capability to my application.
    I know its possible to change colors in a canvas.
    But, my MIdlet doesn't use any canvas.
    So, is there any possibility to achieve this ? (even if it takes to add canvas to my MIdlet, no problem, I just want it accomplished anyhow)
    Please give me any slightest of ideas to achieve this.

    I am not sure this will help you or not.... any way if u just want to add some animation or graphics to form its possiable thur javax.microedition.lcdui.CustomItem.
    You can see it as a small canvas inside your form.
    import javax.microedition.lcdui.*;
    public class MyCustomItem extends CustomItem
        int W,H;
        public MyCustomItem(String label, int Width, int Height)
            super(label);
            W=Width;
            H=Height;
            protected int getMinContentWidth() {
            return W;
        protected int getMinContentHeight() {
            return H;
        protected int getPrefContentWidth(int i) {
            return getMinContentWidth();
        protected int getPrefContentHeight(int i) {
            return getMinContentHeight();
        protected void paint(Graphics g, int i, int i0) {
            g.setColor(100,0,0);
            g.fillRect(0,0,i,i0);
            g.setColor(0,255,0);
            g.drawString("Hello Thank God Its Working",10,10,Graphics.TOP|Graphics.LEFT);
    }you can use MyCustomItem in your midlet
    import javax.microedition.midlet.MIDlet;
    import javax.microedition.lcdui.*;
    import javax.microedition.midlet.MIDletStateChangeException;
    public class CustomItemDemo1 extends MIDlet
        private Display disp;
        private Form frm;
        private MyCustomItem cust;
        protected void startApp() throws MIDletStateChangeException {
        disp=Display.getDisplay(this);
        frm=new Form("CustomItem Demo1");
        cust=new MyCustomItem("This is Cool...",100,100);
        cust.setLayout(CustomItem.LAYOUT_NEWLINE_BEFORE|CustomItem.LAYOUT_CENTER|CustomItem.LAYOUT_NEWLINE_AFTER);
        frm.append("hi this is Before Adding");
        frm.append(cust);
        frm.append("This is After Adding");
        disp.setCurrent(frm);
        protected void pauseApp() {
        protected void destroyApp(boolean b) throws MIDletStateChangeException {
    }Just like canvas we can even add key press and other events inside CusomItem
    you can even add traversal features by
        protected void traverseOut()
            // do some thing here
        protected boolean traverse(int dir, int viewportWidth, int viewportHeight, int[] visRect_inout) {
            //do some thing here....
    return false; // or true;
        }Rest test and discover your self....
    Hope it helps..
    Edited by: Zac-Mathews on Jun 15, 2008 10:52 PM
    Edited by: Zac-Mathews on Jun 15, 2008 10:56 PM

  • Why is elements better at photomerge than CC- CC does not appear to automatically fill image based on content but elements does when merging a panorama. Also the stitching is visable in CC but almost perfect in elements- why?

    I took 6 panorama shots of a scene and used CC to Photomerge them as one. Couldn't see where to automatic blend the edges and there was 'stitch' lines when the images were merged. So i did the same in Elements 11 and it was perfect. Am i doing something wrong in CC or perhaps not doing something at all?
    Any help, please?
    Dave

    Hi - Thanks for taking the time to reply and i appreciate the remarks- if a little harsh- we all have to start somewhere and i am fully aware of the limitations of Elements which is why i decided to add CC to my software. I can only say that if an inferior quality software from Adobe does the job well then CC must also be suited to doing the same which is why i can only think, from your comments, that i have not done something simple- however- following tutorials to get to the end result should have sufficed- it didn't so perhaps i will consider posting the difference between the two applications- and, perhaps suffer a few more 'harsh' comments. The learning curve is quite steep and i am a visual learner, but i'm also not totally incompetent:)
    Kind Regards
    Dave Munn
    Original message----
    From : [email protected]
    Date : 02/02/2015 - 06:45 (GMTST)
    To : [email protected]
    Subject :  why is elements better at photomerge than CC- CC does not appear to automatically fill image based on content but elements does when merging a panorama. Also the stitching is visable in CC but almost perfect in elements- why?
        why is elements better at photomerge than CC- CC does not appear to automatically fill image based on content but elements does when merging a panorama. Also the stitching is visable in CC but almost perfect in elements- why?
        created by station_two in Photoshop General Discussion - View the full discussion
    First a clarification: you are not addressing Adobe here in these user forums.  You are requesting help from volunteers users just like you who give their time free of charge. No one has any obligation to answer your questions.
    I'll give it my best shot anyway.
    Few folks in this forum are really familiar with Elements, for which there's a dedicated, totally separate forum.
    Different engineering teams, also.
    From this perspective, it will be difficult to give you a direct answer to your "why?" question.
    Personally, I blend very large panorama shots in Photoshop proper since I can't even remember when without any issues whatsoever, up to and including in Photoshop CS6 13.0.6.
    Without being at your computer and without looking at your images, I couldn't even begin to speculate what you are doing wrong in Photoshop, which I suspect you are.  The least you could show is post examples from your panoramas that have gone wrong.
    I can tell you that panorama stitching requires significant overlap between the individual shots, besides common-sdense techniques like a very solid tripod and precision heads.
    The only version of Elements I have ever used for any significant time was Elements 6 for Windows, which I bought in 2008 to use on a PC (I've been an avid Mac user for 30 years).  I found Elements so limited and so bad that I successfully demanded a refund from Adobe.  IU mention this only to emphasize that I can truly only address your question from a Photoshop (proper) and Mac user point of view.  I couldn't care less about Elements, but if you have comparison examples of panoramas processed in both applications, by all means post those two.
    Generally speaking Photoshop is a professional level application that makes no apologies for its very long and steep learning curve, while Photoshop has many hand-holding features for amateurs and beginners.
    Perhaps the bottom line is that you should stick with Elements if you personally manage to get better results there.
    If the reply above answers your question, please take a moment to mark this answer as correct by visiting: https://forums.adobe.com/message/7152397#7152397 and clicking ‘Correct’ below the answer
    Replies to this message go to everyone subscribed to this thread, not directly to the person who posted the message. To post a reply, either reply to this email or visit the message page:
    Please note that the Adobe Forums do not accept email attachments. If you want to embed an image in your message please visit the thread in the forum and click the camera icon: https://forums.adobe.com/message/7152397#7152397
    To unsubscribe from this thread, please visit the message page at , click "Following" at the top right, & "Stop Following"
    Start a new discussion in Photoshop General Discussion by email or at Adobe Community
    For more information about maintaining your forum email notifications please go to https://forums.adobe.com/thread/1516624.

  • From SharePoint Content Database, Using SQL-Server Query how to fetch the 'Document GUID' based on 'Content Type'

    I want to get all the documents based on content type using SQL Server Query. I know that, querying the content database without using API is not advisable, but still i want to perform this action through SQL Server Query. Can someone assist ?

    You're right, it's not advisable, may result in corruption of your databases and might impact performance and stability. But assuming you're happy to do that then it is possible.
    Before you go down that route, have you considered using something more safe like PowerShell? I've seen a script exactly like the one you describe and it would take far less time to do it through PS than it would through SQL.

  • Multi-mapping based on content field

    Hi guys,
    I'm doing a scenario with mult-imapping 1x2, based on content field I'll create message1 or message2. If the source content has both key fields (ex. A = message1 and B = message2) the scenario works well, but if only one key field comes (ex. A to create only message1), an error occurs inside the transformation step of BPM. It seams BPM is waiting for message2 ...
    (note: I'm using BPM because one of these messages is an IDoc)
    Anyone has faced this issue?
    Thanks in advance,
    Ricardo.

    Hi guys,
    Thanks for the prompt answers.
    I already have the occurrences with 0..1 (optional) and it doesn't work :s If I look into message mapping, I see that message1 and message2 are always 1..1 and there is no way to change it. In the messages tab you can only change the occurrence for the low level of each message1 or message2. Every time I test this mapping the header of message2 is always created even without content and that’s the problem and I don't know how to fix it...
    Any ideas?
    Thanks in advance,
    Ricardo.

  • Value-based hierarchy on ROLAP dimension. Is this possible and how?

    Value-based hierarchy on ROLAP dimension. Is this possible and how?
    If yes, what tool I have to use. Any simple examples?

    Based on my experience of OWB10gR2 the option to create a "Value Based" hierarchy is only enabled if you create an AW based OLAP model. If you want to create a ROLAP model then I do not think this is possible.
    Question is why create a ROLAP model when you could get better performance and more powerful analytical features by using a multidimensional model within an analytic workspace.
    Keith

Maybe you are looking for

  • Payment term configuration

    Hi All, We need a payment term configuration in FI as follows. Invoice date plus No.of grace days plus end of month (that means we have make payment on the last day of  month where the last grace day falls in that particular month) Thank in advance J

  • Freeze when editing joboptions files in Acrobat 8.1

    Our prepress department has 3 macs, 2x G5 Mac dual 1.8 ppc, and 1x Mac Intel 2x2.66 dual core processors. All are running Mac OS 10.4.11. Since we have upgraded to CS3, none of us can edit pdf colour settings in distiller. We can click on all the tab

  • Stop notifed of an alert.

    I am receiving a lot of Ora-00600 [qctoTranLik:like transform] errors in a particular database. I am flooded with a lot of e-mails in my mailbox. Is there a way we can instruct the Enterprise Manager to ignore the above alert-- That is not send notif

  • Best way to cut clips out of a long long capture

    Hi all, I shoot underwater footage. I don't usually stop/record/stop during a dive and most of the time my camera is always shooting. As a result when I capture, I get a long clip which really has multiple scenes (descent, swim around, wreck penetrat

  • Path To Help on CRM 7.0

    Dear Friends: What is the path to get help on crm 7.0 on help.sap.com Regards | Pradeep