Setting Backgroud and fore color through Formula

Post Author: Srinivas378
CA Forum: Formula
I am using cross tab in crystal report.For the summarized field ,I have to set Fore color,and Backgroung color differenly.
Those colors I am getting from Database.While setting the colors all the cells of summarized field  are showing the very first color code.
This is my function: in Basic syntax.
WhilePrintingRecordsdim HexColor as stringHexColor ={vwUserTrainingReport.BGColor}Formula=RGB(HexaToDec(Mid (HexColor,2 ,2)) , HexaToDec(Mid (HexColor,4 ,2)) , HexaToDec(Mid (HexColor,6 ,2)))
I have written an Hexa to decimal convertion:
Function HexaToDec (Input AS String)
Dim a AS NumberDim b AS Number
    Select Case Mid (Input,1 ,1)        Case "A"          a = 10        Case "B"          a = 11        Case "C"          a = 12        Case "D"          a = 13        Case "E"          a = 14        Case "F"          a = 15        Case Else          a = 0    End Select
    Select Case Mid (Input,2 ,1)        Case "A"          b = 10        Case "B"          b = 11        Case "C"          b = 12        Case "D"          b = 13        Case "E"          b = 14        Case "F"          b = 15        Case Else          b = 0    End Select
   HexaToDec = (a * 16) + b
End Function
Give me a solution as quickly as possible.

Sorry - had to figure out how to put images into this forum (still trying to see how they get displayed...)
Here is what I am doing:
Multiplying this (cell by cell)
Image: !http://public.me.com/andrewvignuzzi/Screen1.jpg!
by this:
Image: !http://public.me.com/andrewvignuzzi/Screen2.jpg!
to get this:
Image: !http://public.me.com/andrewvignuzzi/Screen3.jpg!
So, for each row vector and column vector I get one result in a cell in the third table.
(In this case, the answer is: 30,000,0000.09470*0.1099+00.3557... = 2,841,265; if you take the next row vector (one line down) and multiply it by the same column vector, you would get the 4,047,087 result in the last table, and so on..)
My problem was that when I used the title "Series E" instead of "E Series" in the Column Vector table and I tried to set it to "absolute row" - it would not work. When I changed it to "E Series" it did. Why? While I use "Series E" as a title elsewhere, I would assume that Numbers has an internal reference that includes the table name as part of the identifier so that there is no conflict.
Anyway - I seem to have solved it, but not in a way that makes sense to me and I sure would like to know what, if anything, I am doing wrong.
Thanks!
Andrew
Message was edited by: AndrewVee

Similar Messages

  • Purchased a new Apple TV and the remote double clicks each time I press the button. It worked fine during set up and for the first two days.  I have since moved it and this problem started. Restarted,reset,unplugged,change remotes, no change.Help please.

    Purchased a new Apple TV and the remote double clicks each time I press the button. It worked fine during set up and for the first two days.  I have since moved it and this problem started. Restarted,reset,unplugged,changed remotes, no change. Latest software update. This is really annoying.  iPhone remote app works just fine.  Any suggestions?

    That's one of the weird things.. it recognizes it maybe 10% of the time. And usually, only after I do the two-button reset. Problem is.. since it won't charge above 2%, anytime I try to do a restore or anything like that using iTunes, my device shuts off and I lose whatever progress I'd made.
    So, an update... after reading through a bunch of similar complaints (there are literally 1000's of them so there's NO WAY this isn't somehow ios7 related, thanks a lot APPLE ) I decided to try a restore in recovery mode. After 3 hours and several disconnections... I ended up having to just set it up as a new iPad, as the restore did nothing. Weirdly though... as I was doing the restore in recovery mode.. I noticed I'd gotten up to a 10% charge.. higher than it's been since September, so after setting it up as a new device, I turned it off and plugged it in using the wall charger. 2 hours later and I was up to 38%. Still not great, as my iPad, before ios7 could've fully charged twice in the amount of time it took for me to now get 28% more of a charge. And that's with a fully cleaned out device.. so that really ***** and I'm now more confused than ever.
    But I'm gonna leave it overnight charging and see what I come up with tomorrow. Sadly, when I paid $600 for it in February, I never expected to have to play "wait and see" with it...

  • Setting fonts and Background color

    Hi,
    Is there anyway to set the font and background color on a jLabel? Thanks for your help!

    ...emmmm lets see... for the font and the background...
    maybe setFont and maybe setBackground!
    http://java.sun.com/j2se/1.4.2/docs/api/javax/swing/JComponent.html

  • How to set text and background color of current row in a adf table?

    Hi,
    In jdev 11.1.2.3,
    How to set text fond and background color of current row in a adf table?
    I tried to set Background color in table property, but that is not what i want.
    Thanks.

    Hi,
    We almost had the same requirement, but we just needed to color a specific column.
    Here goes the solution to that, you might do the same for your row highlighting
    Changes are required in jsff and one method to be added in backing bean
    1. JSFF :
    <af:column headerText="Amount"
                     id="c4" width="100"
                     inlineStyle="#{backingBeanScope.BackingBean.cellColor}">2. Backing Bean
    //searchResultTableVO is Table's VO
    public String getCellColor() {
          FacesContext ctx = FacesContext.getCurrentInstance();
          ExpressionFactory ef = ctx.getApplication().getExpressionFactory();
          ValueExpression ve = ef.createValueExpression(ctx.getELContext(), "#{row}", FacesCtrlHierNodeBinding.class);
          FacesCtrlHierNodeBinding node = (FacesCtrlHierNodeBinding)ve.getValue(ctx.getELContext());
          Row row = node.getRow();
        if(row.equals(searchResultTableVO.getCurrentRow())){
    //You can add your inline style for font-style too
          return "background-color:Red;";
             return null;
      }Hope this is helpful :)
    Regards,
    Neha..

  • Setting rooms/resources for appointment through mail app

    Hi,
    Is there any way to set the rooms for an appointment through mail app, i know i can set the location field of appointment in compose mode. 
    I was wondering if there is any way to add/modify/remove rooms form appointment when outlook appointment is in compose mode? i have goggled it but did not fins any link which says the at it cannot be done. so just hoping if its possible
    Thanks

    Meeting rooms would be addressable entities just like a user/mailbox.  So you can create a Recipients object containing the required rooms using their email address and add them to the requiredAttendees property:
    Appointment.requiredAttendees property (JavaScript API for Office v1.1)
    http://msdn.microsoft.com/en-us/library/fp160965(v=office.1501401).aspx
    Eric Legault (MVP: Outlook;
    About me)
    Outlook Appins: Store social media fields in your Outlook Contacts!
    Co-author, Microsoft Office 2013 Professional Step-By-Step

  • Best procedure for setting iMac screen for color correction

    Hi All
    I know the iMac screen is not ideal for color correction, but I would like to know the best way to set the color space of the iMac screen to achieve the best possible result when color correcting.
    Specs: iMac 21.5” 3.06GHz Core 2 Duo
    Cheers
    -j-

    use Generic RGB
    any other profile is for colour managed still photography

  • Setting up Mail for IMAP through Gmail

    Hi,
    To sync mail on my desktop, laptop, and iPad, I've set it up to link them through Gmail using IMAP. (I chose not to use iCloud because it won't let me use my own domain name for the e-mail address...and this is my business mail.) Everything works fine; the In-Box and the half dozen folders I have for different projects all appear on my Mac and on Gmail, and syn perfectly.
    But....
    I now have 2 "Sent" folders in Mail, which each behaves somewhat differently, and 3 Trash folders, which also behave somewhat differently.
    SENT FOLDERS
    One Sent folder is in the top level, under Mailboxes. It appears to be purely local to the computer, and stores messages in the normal fashion. The second one is in the Gmail folder below it, and syncs with gmail. In that folder, all messages are shown as addressed to me. In the account preferences, under Mailbox Behaviors, I tried checking the box to "Store sent messages on the server." But all that did was to flag the top level Sent folder with an error message saying: "The Sent mailbox could not be created on the mail server. The local “Sent Messages (Gmail)” mailbox was created instead."
    Is there any way to fix this so that I have only one Sent folder (and no error flag)? I don't need 2 copies of every sent message.
    TRASH FOLDERS
    The situation is similar for Trash, except that I have 3 folders. A the top level, Trash has two sub-folders one labeled "On my Mac," the other labeled "Gmail." I have not checked the box to "store deleted messages on the server."  The third trash folder is in the Gmail folder below. For now, all the deleted messages seem to go into the "On my Mac" folder. But it's odd to have the other two trash folders.
    I would be grateful for any suggestions.
    (By the way, none of this is a problem on my iPad, where Mail has just one Sent folder and one Trash folder, and they both function just as expected.)

    About 45 minutes after posting my question, I found a web tutorial that addressed all these issues and explaind step-by-step how to fix them. The suggested settings worked perfectly and fixed all the issues.
    I tried to delete my original posting here, but didn't see how to do that. So instead, here's the link to the tutorial ... in case anyone else is facing the same problems.
    http://tidbits.com/article/10253

  • Slider with Synth - Problems setting tick and text color

    Hi,
    I'm currently using Synth and I'm having some problems with sliders. The sliders appear and work fine, although I can't seem to change the color of the ticks and text.
    I would like the ticks and text to be orange, but it seems to default to black. I tried changing this in the Slider section of my Synth file (see below) but with no luck.
    Would anyone have any suggestions?
    Thanks in advance for your help.
       <!-- ================================= -->
       <!-- SLIDER TRACK -->
       <!-- ================================= -->
       <style id="SliderTrackStyle">
          <imagePainter method="sliderTrackBackground" path="images/Slider/slider_track.png"
                        sourceInsets="7 7 7 7" destinationInsets="7 7 7 7" paintCenter="true"
                        stretch="true" center="false" />
          <state value="DISABLED">
             <imagePainter method="sliderTrackBackground" path="images/Slider/slider_track_disabled.png"
                           sourceInsets="7 7 7 7" destinationInsets="7 7 7 7" paintCenter="true"
                           stretch="true" center="false" />
          </state>
       </style>
       <bind style="SliderTrackStyle" type="region" key="SliderTrack" />
       <!-- ================================= -->
       <!-- SLIDER THUMB -->
       <!-- ================================= -->
       <style id="SliderThumbStyle">
          <font name="Arial" size="1" style="BOLD"/>
          <state>
             <!-- How do we set the slider text and tick colour -->
             <color type="TEXT_FOREGROUND" value="#8f5f00"/>
             <imagePainter method="sliderThumbBackground" direction="horizontal"
                           path="images/Slider/slider_thumb.png" center="true" />
             <imagePainter method="sliderThumbBackground" direction="vertical"
                           path="images/Slider/slider_thumb.png" center="true" />
          </state>
          <state value="PRESSED">
             <!-- How do we set the slider text and tick colour -->
             <color type="TEXT_FOREGROUND" value="#8f5f00"/>
             <imagePainter method="sliderThumbBackground" direction="horizontal"
                           path="images/Slider/slider_thumb_pressed.png" center="true" />
             <imagePainter method="sliderThumbBackground" direction="vertical"
                           path="images/Slider/slider_thumb_pressed.png" center="true" />
          </state>
          <state value="DISABLED">
             <imagePainter method="sliderThumbBackground" direction="horizontal"
                           path="images/Slider/slider_thumb_disabled.png" center="true" />
             <imagePainter method="sliderThumbBackground" direction="vertical"
                           path="images/slider_thumb_disabled.png" center="true" />
          </state>
       </style>
       <bind style="SliderThumbStyle" type="region" key="SliderThumb" />
       <!-- ================================= -->
       <!-- SLIDER -->
       <!-- ================================= -->
       <style id="SliderStyle">
          <property key="Slider.paintValue" type="boolean" value="false" />
          <property key="Slider.thumbWidth" type="integer" value="14" />
          <property key="Slider.thumbHeight" type="integer" value="14" />
          <!-- Cant seem to set the tick or text color -->
          <!-- <property key="Slider.tickColor" type="color" value="#8a8a00" /> -->
       </style>
       <bind style="SliderStyle" type="region" key="Slider" />Edited by: robben07 on May 18, 2010 7:36 AM

    I put the following code in the Title and it worked...
    <B><font face="Arial" size="+3" color="#244764">Text.....</FONT>
    the only problem is to know how to center it (I've tried putting <CENTRE> html tag but it's not working)... can you please advice...
    Thanks again for your assistance

  • How do you set RGB values for colors in Numbers?

    We are trying to set a specific RGB value for the background cell shading in Numbers.   Please help me on how to accomplish this?

    And another way is with short scripts.
    This one gets the RGB values of the background color of a selected cell:
    --get background color of cell -- like a "dropper"
    --if none set, returns 'missing value'
    tell application "Numbers" to tell front document to tell active sheet to tell (first table whose class of selection range is range)
              tell the first cell of the selection range
                        set bkgrRGB to its background color
              end tell
    end tell
    And this one sets the background color of selected cells to the RGB values defined in myBackGroundColor:
    --sets background color of a cell
    property myBackgroundColor : {8607, 65513, 1548}
    tell application "Numbers" to tell the front document to tell active sheet to tell (first table whose class of selection range is range)
              repeat with aCell in the selection range
                        tell aCell
                                  set its background color to myBackgroundColor
                        end tell
              end repeat
    end tell
    SG

  • On value selected in dropdown, set border and border color to subform

    Ok, I'm busy creating a form which has a dropdown field. There are five values inside the dropdown. I also have four subforms which contain tables and fields for each option in the dropdown except the first one. Now I want to set the border and border colour of the subform when the right value is chosen.
    In the exit part I created the code as follows:
    if (this.rawValue == "5"){
         this.resolveNode("TextfieldName").presence = "visible"; //This sets a text to visible...works like a charm
         Optie1.ui.oneOfChild.border.color.value = "255,153,0"; //After an example I found from Niall
         Optie1.ui.oneOfChild.border.color.thickness = "0.0200in";
    I changed this into Optie1, that's the name of the subForm. Somehow it doesn't apply it on the subform. I know I'm doing something wrong, but can't quite find what I want on the forums. Anyone any idea on this?

    Okay, managed to solve this myself by playing around a bit with the code.
    It should be:
    Optie1.border.edge.color.value and Optie1.border.edge.thickness.

  • Set max size for uploads through the media browser

    Add this to web.config file inside the system.web tag
    <httpRuntime maxRequestLength = "nnn" />
    where nnn is max KB that can be uploaded, default is 4096(4MB)
    More settings here
    http://msdn2.microsoft.com/en-us/library/e1f13641.aspx

    Hi ,
    If you are looking to limit the number of characters that can be entered to the field from GUI then a global side effect and rule combination will help you achieve it . It would be something like this :
    This is done by leveraging Side Effects under Rules - Rules Activation Conditions. You also need to set the Rule as Global for this to be effective across the system.
    In there the following has to be set:
    <$dDocTitle:maxLength=80$>
    <$dDocName:maxLength =50$>
    Set the above side effect in the rules and corresponding Profile need to refer it for being able to limit the number of characters that can be entered for Title and Content ID.
    Custom metadata too can be controlled in the same way . For example, if metadata "Version" need to limit the number of characters being entered then "Side Effects" to be set is as follows :
    <$xVersion:maxLength=50$>
    NB - the maxLength parameter is not supported for fields of type Memo. It will only take effect on standard text fields.
    Thanks,
    Srinath

  • How to set category and category attributes through BPEL?

    Greetings.
    I have seen ContentServices SDK, and tried to build own BPEL process which should make this work.
    But there is exception when authenticate to OID. If i not place password attribute to ContentServices.login method, there is exception like "Unable to retrieve application credentials from OID".
    If I place password, then exception is following: "Cannot uthenticate user using clear text password".
    In ContentServices web services SDK is example, called "ApplyDocumentTypeCategory", where in GetUserName assign activity you copy value of "/ns3:IFSQUEUEMESSAGE/PARAMETERLIST/PARAMETERLIST_ITEM[NAME='CONNECTASUSER']/VALUE"
    to connectasuser variable. What should contain this variable?
    If anybody knows how to solve this, please help.
    Thank you.

    BPEL process finished without any errors, but there is no results in document category
    here is function which call addCategoryAttributeValue. in Java Embedding activity seems it executes, but variable result not updated after executing this function.
    public String perform(ContentServicesSession session) throws Exception
    String result=new String("BEGIN");
    try
    result=result.concat("1");
    Item[] documents = WorkflowUtils.getTargetDocuments(session,
    mWorkflowid);
    result=result.concat("2");
    int len = (documents == null) ? 0 : documents.length;
    for (int i = 0; i < len; i++)
    result=result.concat(Boolean.toString(WorkflowUtils.addCategoryAttributeValue(session,
    documents,
    mCategoryName,
    mAttributeName,
    mAttributeValue)));
    catch (Exception e)
    result=result.concat(e.getMessage());
    finally {
    session.logout();
    return result;
    and here is piece of code where i call this function(Java Embedding activity):
    CategoryTest action = null;
    String res="";
    try
    //get the workflow id.
    String workflowid =(String) getVariableData("workflowid");
    String filesEndPoint = "http://myhost.com:7778/content";
    String user = (String) getVariableData("username");//username=orcladmin#welcome1
    java.net.URL u = new java.net.URL(filesEndPoint);
    // get the workflow parameters
    String categoryname = (String) getVariableData("categoryname");
    String attribname = (String) getVariableData("attribname");
    String attribvalue = (String) getVariableData("attribvalue");
    //String documenttype = (String) getVariableData("documenttype");
    // get the PartnerLink.
    com.collaxa.cube.engine.types.bpel.CXPartnerLink
    plink = (com.collaxa.cube.engine.types.bpel.CXPartnerLink)
    getVariableData("GetDataFromCS");
    res +="|connected";
    // Create a Content Services Session.
    ContentServicesSession session =
    ContentServicesSession.login(plink,filesEndPoint,user,"");
    res +="|logged in";
    // Run the java helper class.
    action = new CategoryTest(workflowid);
    action.ApplyCategoryValue(categoryname, attribname, attribvalue);
    res+="|applied attributes";
    // Perform the workflow operatio using the given session.
    res += action.perform(session);
    res+="|action performed";
    setVariableData("exception", res);
    catch(Throwable ex)
    setVariableData("exception", ex.getMessage());
    after executing this code, variable "exception" has following value: |connected|logged in|applied attributes|action performed
    I don't know what to do, plase advice me.
    Thanks,
    Konstantin

  • Change blink BG and FG colors

    Hi,
    I have four different controls on my front panel. each of them blinks at different stages of the program. I want them to blink in different colors. Which ever is related to emergency, should blink in bright colors, routine ones should blink in softer colors etc. where do I edit/set foreground and background colors for blinking of each control?
    Regards.

    i like to do this with system LED's, usually like to overlay them with the blinking led on top layer and transparent in the off condition...
    Attachments:
    BLINK.vi ‏7 KB

  • I was setting up my Airport and thought the first set up did not go through, so I set up again and I ended up with two accounts instead of one.  How can I manage to have only one account now? Thanks for the help.

    I was setting up my Airport and thought the first set up dod not go through, then I set up again and ended up with two wireless accounts.  I use it for the prointer and the iPad, and I can see both accounts in the iPad.  How do I get rid of one account?  Thanks for the help!

    me.com accounts can be used for iCloud.  See the FAQ section in:
    <http://support.apple.com/kb/ht4895>
    but it may be too late if you have already created a new AppleID.
    A few years ago Apple said they were working on allowing account merging, but it never happened (maybe objections from copyright holders).

  • I have an iPhone 4s, and I reset the content and setting. It turned on, I chose English, Australia, and now, I am unable to connect/activate my iPhone through Wi-Fi, and for an unknown reason, it will not allow me to use cellular data or iTunes.

    I have an iPhone 4s, and I reset the content and setting. It turned on, I chose English, Australia, and now, I am unable to connect/activate my iPhone through Wi-Fi, and for an unknown reason, it will not allow me to use cellular data or iTunes. I'm not sure of what to do. It's quite frustrating, and all I need is advice, and help. I would much appreciate it. Thank-you.

    In order to download to your phone over the air, you need to be connected to WiFi.
    It's possible the Internet connection through Verizon is not stable enough for the downlaod to begin (it is a very large download).
    You might want to head over to Starbucks with your laptop for the afternoon and see if you can download it over their WiFi.

Maybe you are looking for

  • How do I change my Ipad to access Itunes store in a different country than the one I usually use and have my account with?

    I usually use the Itunes application on my Ipad in FRence and use the French Itunes store. I am now in Cyprus and after synchronising my Ipad there I now can access the US Itunes Store but my purchases are refused as my account is with the French Itu

  • 5th generation ipod games no longer supported???

    I have a 60 GB 5th generation iPod video. I had a hard drive crash and lost all of the games that I had downloaded from the itunes store. Now, iTunes has restored all of my purchased items, but my 5th generation games don't seem to have appeared duri

  • Need help with basic steps in creating ebook

    I have a confession: I constantly use workarounds instead of stopping and learning the proper way of using Indesign to create ebooks. I wouldn't say I do it because I'm lazy, but rather because I'm simply inept lol. These are some of the basic steps

  • Saving a File in FTP using DSN or FTPCOMMAND

    Hi, I'm trying to save a file to a remote location in the background using ABAP. I tried DSN. This didnt work as it writes only to application server SAPUSERS directory. I tried FTPCONNECT and FTPCOMMAND but getting an error connecting to FTP.  (conn

  • 11g Production: Creating an artifact in the wrong project

    I have an application with multiple projects. I accidentally created a JSF page fragment in the wrong project which in turn created a Web Content folder and all the other usual suspects. However, I cannot 'undo' the fragment creation. I can delete th