Tag datwindow property object not functioning in background color
I am using 12.6 classic
I need to send to the column's of a Datawindow information to control the properties so that I can dictate the column's background color, The border, etc.
For example, I use the below to control the background property of a column.
if( right(customer_name, 1) = 'O', rgb(255,135,155), rgb(255,50,50))
The problem is that these codes I send with the customer's name display as well.
My attempted solution was to use the column's tag property
after sending information to the tag property I want to use the below in the background color of each column.
if( right(customer_name.tag, 1) = 'O', rgb(255,135,155), rgb(255,50,50))
but upon saving i get the error DATAWINDOW
Expecting true/false expression
I can also solve the problem even easier if I can just display the tag property of each column in my datawindow, leaving the value of the column to control the background and other column properties.
Sorry Philip,
I must have misread your question. When you say tag, we all thought the tag property of the column. Having re-read the question...
The problem is that these codes I send with the customer's name display as well.
you are tagging an O to a column in your select statement to choose a certain background colour, but you don't want to show the letter O.
You should really select the background colour as a separate column in your results set (refer also to a very similar discussion in PBSAPCN)
So instead of SELECT customer_name + 'O' ..... SELECT customer_name , 'O' as mybackcolour....
Then if ( mybaclcolour = 'O' , rgb (....
Alternatively but not nice and eccentrically unusual, you could diplay the customer name as a computed column without the last letter: left ( customer_name, len ( customer_name) - 1 )
HTH
Lars
PS Stuart has already suggested this.
Similar Messages
-
Why does converting word into PDF does not take the background color of the page?
When I do a page background on a document, and save as pdf, it does not take the background color. It shows only white background.
This may be a limitation with the built in PDF writer in OS X. Never tried it so I have no idea if it does the same on my Mac.
As this is not a MS Word problem you are in the right set of forums.
Have you tried another PDF writer other then the built in one? -
Graphics.drawImage not using specified background color
Thanks to everyone in advance -
I have created an image resizing class, with a crop method. The cropping works great, the issue that I am having is the background color that i specify in the drawImage function of Graphics is not working correctly, it defaults to black as the background regardless of what I supply (in this case Color.WHITE). Also, the overlaying image or top most image (comes from a file) is being inverted(i think it is) or otherwise discolored. Here is the code below that I am working with:
Thanks,
Sam
public void Crop(int Height, int Width, int SourceX, int SourceY) throws Exception {
//output height and width
int OutputWidth = this.OutputImage.getWidth();
int OutputHeight = this.OutputImage.getHeight();
//create output streams
ByteArrayOutputStream MyByteArrayOutputStream = new ByteArrayOutputStream();
MemoryCacheImageOutputStream MyMemoryCacheImageOutputStream = new MemoryCacheImageOutputStream(MyByteArrayOutputStream);
//Create a new BufferedImage
BufferedImage NewImage = new BufferedImage(Width, Height, BufferedImage.TYPE_INT_ARGB);
Graphics MyGraphics = NewImage.createGraphics();
MyGraphics.drawImage(this.OutputImage, -SourceX, -SourceY, OutputWidth, OutputHeight, Color.WHITE, null);
// Get Writer and set compression
Iterator MyIterator = ImageIO.getImageWritersByFormatName("PNG");
if(MyIterator.hasNext()) {
//get image writer
ImageWriter MyImageWriter = (ImageWriter)MyIterator.next();
//get params
ImageWriteParam MyImageWriteParam = MyImageWriter.getDefaultWriteParam();
//set outputstream
MyImageWriter.setOutput(MyMemoryCacheImageOutputStream);
//create new ioimage
IIOImage MyIIOImage = new IIOImage(NewImage, null, null);
//write new image
MyImageWriter.write(null, MyIIOImage, MyImageWriteParam);
//convert output stream back to inputstream
ByteArrayInputStream MyByteArrayInputStream = new ByteArrayInputStream(MyByteArrayOutputStream.toByteArray());
MemoryCacheImageInputStream MyMemoryCacheImageInputStream = new MemoryCacheImageInputStream(MyByteArrayInputStream);
//resassign as a buffered image
this.OutputImage = ImageIO.read(MyMemoryCacheImageInputStream);
}Thanks for all your help!
Here is the solution, notice the clear rect:
public void Crop(int Height, int Width, int SourceX, int SourceY) throws Exception {
//output height and width
int OutputWidth = this.OutputImage.getWidth();
int OutputHeight = this.OutputImage.getHeight();
//Create a new BufferedImage
BufferedImage NewImage = new BufferedImage(Width, Height, BufferedImage.TYPE_INT_RGB);
//create new grapics
Graphics2D MyGraphics = NewImage.createGraphics();
//set background
MyGraphics.setBackground(Color.decode(this.BackgroundColor));
//clear rect
MyGraphics.clearRect(0, 0, Width, Height);
//draw image
MyGraphics.drawImage(this.OutputImage, -SourceX, -SourceY, OutputWidth, OutputHeight, null, null);
//dispose graphics
MyGraphics.dispose();
//resassign as a buffered image
this.OutputImage = NewImage;
} -
Double Click Property Node not functioning with Queued State Machine
I am writing an application which relies on input from the operator to start different steps in a process of steps. I am using a queued state machine, however I cannot get the Double-Click property of my listbox to function with in this Queued state machine. I have tried Creating a refrence to the Listbox and creating a property node from that refrence. I have tried a property node of the control. The double click functon works only if the queueing is not occuring. It has something to do with the queue but I am at a loss as to what is causing it. Any help would be GREATLY appreciated. I have attached a simplified version of the state machine with the double click function. Thanks for any help on this. It is written in LV7.1
Attachments:
Test Q.llb 55 KBHi
Its Simple....
Your Properrty node is not getting read..... dont understand how..
see the attachment...
now laugh at your small mistake... (even i have the habbit of making such small mistakes ;-) )
Message Edited by Tushar Jambhekar on 01-11-2006 11:38 AM
Tushar Jambhekar
[email protected]
Jambhekar Automation Solutions
LabVIEW Consultancy, LabVIEW Training
Rent a LabVIEW Developer, My Blog
Attachments:
Test Q.llb 55 KB
Picture.JPG 44 KB -
InDesign PDF transparent images not printing right background color.
problem with exporting an InDesign Document to a PDF and printing. My transparent images are showing up with a darker background than what they are placed on. Know how to help?
Thanks everyone! That really helped.
There were a few other things that I had to make sure of also.
Solution:
Images placed in InDesign that were made in Photoshop or another program should be in ckmy format. The background needs to be in the same ckmy. Transparency blend must be set at CKMY, then Transparency Flattener presents must be set at Rasters/Vectors: 0 Line art and text resolution: 600, Gradient and mesh resoltuion 300. Exporting to PDF must be done under present PDF/X-4:2008 Compatibility: Acbrobat 7. -
Div background color not showing in Internet Explorer 8 and before
My Footer div is not showing the background color (supposed to be black...) in Internet Explorer 8 and earlier. It's assuming the body color instead. Also the border color on top of the 'bubbles' that run across the page is wrong (supposed to be blue) Is this just because Internet Explorer 8 and earlier did not support div background and border colors yet, or is there a work-around?? Or maybe I did something wrong?
The site is: www.meridianwaterfiltration.commartcol wrote:
I don't think that IE8 does rgba.
It should be OK with rgb but not rgba.
Martin
No its doesnt
I'd just use a hexidecimal color - black #000 and blue: #03f (see below)
.footer {
position: relative;
width: 100%;
padding-top: 0px;
padding-right: 0;
padding-bottom: 0px;
padding-left: 0;
background-image: none;
background-repeat: repeat-x;
margin-top: 0px;
clear: both;
height: 350px;
background-color: #000;
#bubble {
background-image: url(Images/water drop 0banner.jpg);
background-repeat: repeat-x;
width: 100%;
height: 43px;
border-top-width: 3px;
border-top-style: solid;
border-top-color: #03F;
margin: 0px;
padding: 0px;
background-color: #3FF; -
Why is the background color not applied in one case?
Hi,
I'm using RH 7 and WebHelp.
I apply a TableHeading style to the first row of my tables. The TableHeading style is supposed to fill the cells of the first row with a background color of blue, and the text is in white. It works fine except for one table. I think TableHeading style was not applied in the Word document when I imported this topic. I tried to apply the TableHeading style to the first row, and it says it is applied in the HTML. But, the background blue does not fill the cells.
Here is what I am trying to achieve:
Here is my problem table:
I can see in the HTML that the background color is not present in the code. Here is the code for the example that is correct:
<p class=TableHeading>Chapter</td>
<td style="border-left: none; border-right: solid #000000 1.0px; border-top: solid #000000 1.0px; border-bottom: solid #000000 1.0px;
width: 279.4pt; padding: 0in 5.4pt 0in 5.4pt; background-color: #003399;"
bgcolor=#003399 width=279.4pt>
<p class=TableHeading>Description</td></tr>
<tr><td style="x-cell-content-align: top; border-left: solid #000000 1.0px; border-right: solid #000000 1.0px; border-top: none;
border-bottom: solid #000000 1.0px; width: 182.85pt; padding: 0in 5.4pt 0in 5.4pt;
padding-left: 0px; padding-top: 0px; padding-right: 0px;
padding-bottom: 0px;" valign=top width=182.9pt>
Here is the code for my problem table:
<p class=TableHeading>Activity</td>
<td style="border-left: none; border-right: solid #000000 1.0px; border-top: solid #000000 1.0px; border-bottom: solid #000000 1.0px;
width: 168.0pt; padding: 0in 5.4pt 0in 5.4pt;" width=168pt>
<p class=TableHeading>Keyboard Shortcut</td></tr>
<tr style="x-cell-content-align: center;" valign=middle>
<td style="width: 374px; x-cell-content-align: top; border-left: solid #000000 1.0px; border-right: solid #000000 1.0px;
border-top: none; border-bottom: solid #000000 1.0px; padding: 0in 5.4pt 0in 5.4pt;
padding-left: 0px; padding-top: 0px; padding-right: 0px;
padding-bottom: 0px;" valign=top width=374px>
Here is the code from the CSS:
p.TableHeading {
background-color: #003399;
punctuation-wrap: simple;
text-autospace: none;
font-size: 10.0pt;
font-weight: bold;
color: #ffffff;
font-family: Verdana, sans-serif;
margin-left: 3pt;
margin-right: 3.0pt;
line-height: 120%;
margin-top: 0pt;
margin-bottom: 0pt;
LI.p-TableHeading {
punctuation-wrap: simple;
text-autospace: none;
font-size: 10.0pt;
font-weight: bold;
color: #ffffff;
font-family: Verdana, sans-serif;
line-height: 120%;
Any suggestions?
Thanks,
Julie
I don't understand why the TableHeading style is not applying the background color for the one table. I'm guessing I could just add it to the code using the HTML editor. However, I wasn't sure if that was the best way to fix this problem or if I would create another problem.Hi Willam,
Thanks for your answer, and I will go ahead and add the background color to the problem table.
However, I am still puzzled as to why the background color is applied to the cells in the other tables and not the problem table. I'm not sure what I did to cause the problem - how I applied the TableHeading to the table cell in one case and not the other. Any ideas how I can avoid this problem?
I will not use the Word documents going forward and will only make changes with the RH editor.
Thanks again,
Julie -
[SOLVED]Can't set background color for Knotes
Today I'm testing KDE 4.9.5 and the app Knotes start well, can add new notes, save them, etc, but it is not changing the background color of the notes...
Here's the app log:
╒══[ /home/jairo ]══════╕
└> knotes
QDBusConnection: session D-Bus connection created before QCoreApplication. Application may misbehave.
QDBusConnection: session D-Bus connection created before QCoreApplication. Application may misbehave.
Fontconfig warning: "/etc/fonts/conf.d/50-user.conf", line 9: reading configurations from ~/.fonts.conf is deprecated.
knotes(5896) ResourceLocal::ResourceLocal: ResourceLocal::ResourceLocal()
knotes(5896) KNotesResourceManager::load: "Opening resource Notes"
knotes(5896) KNotesLegacy::convertKNotes1Config: The file " "/home/jairo/.kde4/share/apps/knotes/notes/libkcal-122400669.545" " lacks version information but is not a valid KNotes 1 config file either!
╒══[ /home/jairo ]══════╕
└> knotes(5896)/kdecore (KLibrary) kde4Factory: The library "/usr/lib/kde4/kcm_knote.so" does not offer a qt_plugin_instance function.
knotes(5896)/kdecore (KLibrary) kde3Factory: The library "/usr/lib/kde4/kcm_knote.so" does not offer an "init_kcm_knote" function.
knotes(5896)/kdecore (KLibrary) kde4Factory: The library "/usr/lib/kde4/kcm_knote.so" does not offer a qt_plugin_instance function.
knotes(5896)/kdecore (KLibrary) kde3Factory: The library "/usr/lib/kde4/kcm_knote.so" does not offer an "init_kcm_knote" function.
knotes(5896)/kdecore (KLibrary) kde4Factory: The library "/usr/lib/kde4/kcm_knote.so" does not offer a qt_plugin_instance function.
knotes(5896)/kdecore (KLibrary) kde3Factory: The library "/usr/lib/kde4/kcm_knote.so" does not offer an "init_kcm_knote" function.
knotes(5896)/kdecore (KLibrary) kde4Factory: The library "/usr/lib/kde4/kcm_knote.so" does not offer a qt_plugin_instance function.
knotes(5896)/kdecore (KLibrary) kde3Factory: The library "/usr/lib/kde4/kcm_knote.so" does not offer an "init_kcm_knote" function.
knotes(5896)/kdecore (KLibrary) kde4Factory: The library "/usr/lib/kde4/kcm_knote.so" does not offer a qt_plugin_instance function.
knotes(5896)/kdecore (KLibrary) kde3Factory: The library "/usr/lib/kde4/kcm_knote.so" does not offer an "init_kcm_knote" function.
knotes(5896)/kdecore (KLibrary) kde4Factory: The library "/usr/lib/kde4/kcm_knote.so" does not offer a qt_plugin_instance function.
knotes(5896)/kdecore (KLibrary) kde3Factory: The library "/usr/lib/kde4/kcm_knote.so" does not offer an "init_kcm_knote" function.
knotes(5896)/kdecore (KLibrary) kde4Factory: The library "/usr/lib/kde4/kcm_knote.so" does not offer a qt_plugin_instance function.
knotes(5896)/kdecore (KLibrary) kde3Factory: The library "/usr/lib/kde4/kcm_knote.so" does not offer an "init_kcm_knote" function.
knotes(5896)/kdecore (KLibrary) kde4Factory: The library "/usr/lib/kde4/kcm_knote.so" does not offer a qt_plugin_instance function.
knotes(5896)/kdecore (KLibrary) kde3Factory: The library "/usr/lib/kde4/kcm_knote.so" does not offer an "init_kcm_knote" function.
knotes(5896)/kdecore (KLibrary) kde4Factory: The library "/usr/lib/kde4/kcm_knote.so" does not offer a qt_plugin_instance function.
knotes(5896)/kdecore (KLibrary) kde3Factory: The library "/usr/lib/kde4/kcm_knote.so" does not offer an "init_kcm_knote" function.
knotes(5896)/kdecore (KLibrary) kde4Factory: The library "/usr/lib/kde4/kcm_knote.so" does not offer a qt_plugin_instance function.
knotes(5896)/kdecore (KLibrary) kde3Factory: The library "/usr/lib/kde4/kcm_knote.so" does not offer an "init_kcm_knote" function.
I'm googling but can not find anything concrete
Any help?
Thank in advance
EDIT:
It was my mistake, the truth is that this application can change the background color, but does so in a cumbersome way.
Each note can change the background color (individually) and to make it globally, you must remove all existing notes and the new notes then take the chosen color :S ...anyway.... issue solved
Last edited by JohnnyDeacon (2013-02-01 16:02:47)bmishoe wrote:But all to no avail...I can click on the control and it changes from red to green, like I originally defined in the control. Why can't I programatically change the color?
It is probably more likely that your imported pictures are just covering the background of the button.
A picture ring is the better way to go anyways.
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines -
Changeing Canvas Background Color
Hi !
Once I have defined background color property(at design time) then how i can not change it back to <Unspecified> or Null? It doesnot except <Unspecified>. is it a bug?
Regards
Neerajhi
after clicking right of "background color" part,
click "Inherit" button which is at the top of the
"Property Palette" window..
your background color is now <Unspecified> as you want.. -
PDF BackGround color..
Dear All,
My requirement is to remove the background color from a PDF if it is set, as per the suggestion which I got from lrosenth(referrence: http://forums.adobe.com/thread/730875?tstart=0) I was successful in Identifying the object which sets the background color but that object was a path object, as i came accross path object also represent various other things, now how can I refine the search and find the exact element object in the content stream which represents the Background color object.
These are the Values which I retrieved for the path:
Path (2) #0x66fb98
Op: fill Size: 20 bbox -1 -1 580 722{
matrix: 1.000000 0.000000 0.000000 1.000000 0.000000 0.000000
ColorSpace (9) #46 0x4bd3b58
{Separation }
fill: 10000 0 0 0
Rect: 0 0 580 722
Clip (7) #1 0x4bf215c
Num elems: 1{
(2) 66fbf8
Please Suggest......
Regard's
Amith SaiSo I have given you the path object details which is setting the background now
in this list does colorspace property sets the background ?? -
How to set background color in PL/SQL
Hi,
I have tried to set background color in SQL Query. When I execute in Report Region, I am not getting the background color.
SELECT first query
UNION
SELECT ' || v_sel_organization_id || ' organization_id FROM DUAL) org , hr_all_organization_units haou WHERE positions_set.position_id = allocations_set.position_id(+) AND org.organization_id = positions_set.organization_id AND positions_set.position_id = encumbrance_set.enc_position_id(+) AND positions_set.position_id = payclass_set.position_id(+) AND org.organization_id = haou.organization_id AND TRUNC (SYSDATE) BETWEEN haou.date_from AND NVL (haou.date_to, TRUNC (SYSDATE)) AND (NVL (allocations_set.allocations, 0) + NVL (encumbrance_set.enc_count, 0) + NVL (payclass_set.pay_count, 0)) != 0 union select null , '' '' ,'' '',''<SPAN STYLE="background-color: red;">Total</span>'' ,''' || v_sum_alloc ||''','|| v_sum_vac ||','''|| v_sum_encum ||''',''' || v_sum_pay ||''' ,null,null,null,null,2 from dual' ; Can anyone help me to resolve this issue.
Regards
Balaji S
Edited by: Balaji Subramaniam on Jan 19, 2010 5:53 PM
Edited by: Balaji Subramaniam on Jan 19, 2010 5:53 PM
Edited by: Balaji Subramaniam on Jan 19, 2010 6:46 PM
Edited by: Balaji Subramaniam on Jan 19, 2010 6:48 PMHi
A couple of things...
Thats SQL - not PL/SQL
That is not a valid SQL statement, I'm surprised its not giving an error. Please post the exact region source.
When posting code on the forum, put {noformat}{noformat} (with the curly brackets and the word code in lowercase) above and below your code like this...
{noformat}{noformat}
SELECT *
FROM emp
{noformat}{noformat}
It will then appear like this... SELECT *
FROM emp
Cheers
Ben -
Background color change option for box in screen painter
have created a box in screen painter . is there any option to change the back ground color of this box.
please helpNo, you can not change the background color of your screen painter box.
-
How Do I Save the Background Color with my File
I am operating on a Mac Air Book with the new Adobe Creative Cloud. I am new to Illustartor, so do not know how to use it well. I saved my document as a pdf, however, in the preview, it does not have the background color, but is jjust plain white. How can I save my document so that the color will show onto the pdf?
this is how it looks on Adobe Illustrator
however, when I save it as a PDF, it looks like this
how can I save it so that the color in the background from the first image show on the PDF? -
Browser background color question
Hello,
I have read in some article, that not all Browser background colors are readable by all computers.
So I am wondering: when I am choosing the right color for my website's Browser Background, can I pick any color from color picker?
Or should I only use certain "universal" color, which is guaranteed to be readable on any viewer's computer.
Thank you .Just as there are web-safe fonts, there are also web-safe colors. Your color window has all the information you need. See.....
http://www.iwebformusicians.com/WebMusic/FontsandColors.html
"I may receive some form of compensation, financial or otherwise, from my recommendation or link." -
Change sidebar background color
First, themes do NOT solve this problem.
I want to change the background color of the bookmark- and history sidebar. Changing themes does NOT change that background color - at least none of the 100 or so that I tried.
I asked Google, but nothing seemed to match, which is strange, I'd think LOTS of people would ask this (I'm usually LAST asking for any GUI changes, I always use what is there without changing a thing, but this light gray background is a bad fit for most websites right next to it).This code in '''userChrome.css''' will do that. Change the color code to what you want. <br />
<pre><nowiki> #bookmarks-view, #historyTree {
background-color: #DDDDDD !important;
} </nowiki></pre>
http://www.w3schools.com/cssref/css_colors.asp
http://kb.mozillazine.org/UserChrome.css
This add-on makes it quite easy to work with the 3 "user" files. <br />
http://webdesigns.ms11.net/chromeditp.html
Maybe you are looking for
-
Blocking Vendor Payment Using F110
Hi All, If I run F110 to pay a vendor, block one of the open items for payment, carry out the payment run, and start another payment run for the same vendor, will the open item that was blocked still be blocked? Will I have to unblock it? Thanks, Dek
-
Boot Camp safe to use with Time Machine?
Is Boot Camp safe to use with Time Machine? I will be installing Windows on a partition and using an external hard drive to back up. I only want the Mac partition to be backed up, though, since Windows will just be used for applications which I can r
-
Email attachment for text file using ABAP with funny format output
Hi All, I am developing an ABAP program to generate an email to an external email address by using Function Module FUNCTION 'SO_DOCUMENT_SEND_API1. There is an attachment included in this program. The attachment is generated by reading through a data
-
Hi All, I have a 8.1.7.4 database with oracle text installed. I try to create a index and get the followin error: create index quick_text on quick ( text )indextype is ctxsys.context; ORA-29855: error occurred in the execution of ODCIINDEXCREATE rout
-
Filter in Bex Reports - Very Urgent, Please help!
Hi, I have a report based on CRM transaction which has both header row and item row, the report also has filters like status and product, the status is the header level and product is at the item level, in which case the header row would not have the