Display image based on conditions.
Hi every one.
We have to display image (circle) based on three conditions.
Example; if employee is < 1000 small circle, if salary is > 1000 and < 10000 medium size circle and >10000 big size circle.
And second condition if employee location is East coast fill black color in that circle, west coast red color central green color.
Third condition is if employee joining date is less than two years I should display * (Star symbol) in that circle.
I am trying to create conditional format but it is possible to display only one image .
My question is how can I change size and color if the image based on conditions and display start symbol with in the image.
I think I have to create different own images to display for every conditions.
Is there any way to create my report?
Thank you very much for your time and help.
Hi,
If you want to display everything in one image for end user you need to do some trick.
sal orginal region orginal Joining date Sal decode value Region decode value Joining date decode value ImageCode
100 east 20\2\2008 1 10 100 111
200 WEST 20\2\2008 1 20 100 121
300 NORTH 20\2\2009 1 30 200 211
300 NORTH 20\2\2008 1 30 100 131
100 east 20\2\2008 1 10 100 111
2000 west 20\2\2009 2 20 200 222
30000 south 20\2\2009 3 40 200 243
Create few more columns in your answers, as following
Salary decode value: based on your original salary decode it to 1 or 2 or 3
region decode value: based on your regions decode it to 10 or 20 or 30 or 40
joining date decode value: based on joining date decode it to 100 or 200
Image code add all of decoded values ie 1+10+100 = 111
In report show image based on image code
i.e from above table row1 image code is 111 (small black circle), last record BigCircle Red with Star.
Pain full thing is you need to create 24 images on your own(3(salary range)*4(regions)*2(join dates) =24) and place all 24 conditions in that column.
--Hope it helped you
Thanks
Srinivas Malyala
Similar Messages
-
Display an image based upon condition A
I am displaying layers based upon windows username. If User B, then Layer B. If Username A, then Layer A. etc. Do you see that is compatible with Acrobat Reader 9? It would appear as if the OCG methods will not work as Reader doesn't support the setIntent OCG object Maybe with another function like backgrounds or watermarks?
The only thing the layer contains is a picture. Can we get the pictures to display using another method other then OCG?
Please advise.You can place a picture as a button icon. You can also show/hide buttons with JavaScript.
George -
Display Image based on DropDownList C# ASP
Hello,
So I basically created SQL Server Database and I got it working with displaying my images and drop downlist and everything, however, I want to make it to display an image only if a continent is selected. So if I select Europe, I would like to receive a picture
and short description. Any ideas how can I add the description as well?
So something like:
if(ddlContinents.SelectedValue = "Europe) display image 1"
protected void Page_Load(object sender, EventArgs e)
if (Request.QueryString["ImageID"] != null)
string strQuery = "select Name, ContentType, Data from tblFiles where id=@id";
SqlCommand cmd = new SqlCommand(strQuery);
cmd.Parameters.Add("@id", SqlDbType.Int).Value = Convert.ToInt32(Request.QueryString["ImageID"]);
DataTable dt = GetData(cmd);
if (dt != null)
Byte[] bytes = (Byte[])dt.Rows[0]["Data"];
Response.Buffer = true;
Response.Charset = "";
Response.Cache.SetCacheability(HttpCacheability.NoCache);
Response.ContentType = dt.Rows[0]["ContentType"].ToString();
Response.AddHeader("content-disposition", "attachment;filename=" + dt.Rows[0]["Name"].ToString());
Response.BinaryWrite(bytes);
Response.Flush();
Response.End();
if (!IsPostBack)
ddlContinents.AppendDataBoundItems = true;
String strConnString = ConfigurationManager
.ConnectionStrings["conString"].ConnectionString;
String strQuery = "select ID, ContinentName from Continents";
SqlConnection con = new SqlConnection(strConnString);
SqlCommand cmd = new SqlCommand();
cmd.CommandType = CommandType.Text;
cmd.CommandText = strQuery;
cmd.Connection = con;
try
con.Open();
ddlContinents.DataSource = cmd.ExecuteReader();
ddlContinents.DataTextField = "ContinentName";
ddlContinents.DataValueField = "ID";
ddlContinents.DataBind();
catch (Exception ex)
throw ex;
finally
con.Close();
con.Dispose();
private DataTable GetData(SqlCommand cmd)
DataTable dt = new DataTable();
String strConnString = System.Configuration.ConfigurationManager.ConnectionStrings["conString"].ConnectionString;
SqlConnection con = new SqlConnection(strConnString);
SqlDataAdapter sda = new SqlDataAdapter();
cmd.CommandType = CommandType.Text;
cmd.Connection = con;
try
con.Open();
sda.SelectCommand = cmd;
sda.Fill(dt);
return dt;
catch
return null;
finally
con.Close();
sda.Dispose();
con.Dispose();
public void ddlCity_SelectedIndexChanged(object sender, EventArgs e)
lblResults.Text = "You Selected " +
ddlContinents.SelectedItem.Text + " -----> " +
ddlCountry.SelectedItem.Text + " -----> " +
ddlCity.SelectedItem.Text;
public void ddlContinents_SelectedIndexChanged(object sender, EventArgs e)
var continent = ddlContinents.SelectedValue;
ddlCountry.Items.Clear();
ddlCountry.Items.Add(new ListItem("--Select Country--", ""));
ddlCity.Items.Clear();
ddlCity.Items.Add(new ListItem("--Select City--", ""));
ddlCountry.AppendDataBoundItems = true;
String strConnString = ConfigurationManager.ConnectionStrings["conString"].ConnectionString;
String strQuery = "select ID, CountryName from Countries where ContinentID=@ContinentID";
SqlConnection con = new SqlConnection(strConnString);
SqlCommand cmd = new SqlCommand();
cmd.Parameters.AddWithValue("@ContinentID", ddlContinents.SelectedItem.Value);
cmd.CommandType = CommandType.Text;
cmd.CommandText = strQuery;
cmd.Connection = con;
try
con.Open();
ddlCountry.DataSource = cmd.ExecuteReader();
ddlCountry.DataTextField = "CountryName";
ddlCountry.DataValueField = "ID";
ddlCountry.DataBind();
if (ddlCountry.Items.Count > 1)
ddlCountry.Enabled = true;
else
ddlCountry.Enabled = false;
ddlCity.Enabled = false;
catch (Exception ex)
throw ex;
finally
con.Close();
con.Dispose();
<table> <tr> <td align = "center"> <<asp:image ToolTip = "ASP Image Control" ID="Image1" runat="server" ImageUrl ="Default.aspx?ImageID=1" Height="156px" Width="174px"></asp:image></td> <td align = "center"><<asp:image ToolTip = "ASP Image Control" ID="Image2" runat="server" ImageUrl ="Default.aspx?ImageID=2" Height="156px" Width="174px"></asp:image></td> <td align = "center"> <<asp:image ToolTip = "ASP Image Control" ID="Image3" runat="server" ImageUrl ="Default.aspx?ImageID=3" Height="156px" Width="174px"></asp:image></td> </tr> </table>Questions related to ASP.NET should be posted in the ASP.NET forums (http://forums.asp.net ).
-
Adobe form- Images based on conditions
HI Experts,
I have to put 2 logos which are based on company codes.
Logo1 condition:- Standard Logo for each company code except for BREEZ, where the MAIN standard logo will be placed.
Logo2 condition:- Standard Logo for BREEZ, if other company code no logo will be displayed.
where to do coding for the same
Do i need to upload the logos or we reach it with scripting.
Regards,
Nikhi
you can write code logic in the interface used in the adobe form.
in the interface screen, below you will have two tabs, select the conditions tab and pass the condition variable, use the availabe operators and thus the logic for the logo can be set in 'form interface'.
check this link:
saptechnical->Tutorials->AdobeForms->Exercise1
regards
mano -
Display Images based on site's URL
Hi! I am working on a project and would like a different logo image to appear on the first slide of a captivate course based on the URL of the site. I am wondering if there is a way to do this and what it would involve. Thanks in advance!
So it would look something like this:
/* Convert the web address to lower case for comparisons sake */
var webAddress = window.location.href.toLowerCase();
/* Check if the web address contains part of the URL name */
if(webAddress.indexOf('victortechnologies')>-1){
/* The Web Address contains "victortechnologies' so set the Captivate User Variable to 'Victor' */
window.cpAPIInterface.setVariableValue('vImageToDisplay', 'Victor');
}else{
/* The Web Address does not contain "victortechnologies' so set the Captivate User Variable to 'Thermal' */
window.cpAPIInterface.setVariableValue('vImageToDisplay', 'Thermal');
So you'd use a 2-step Conditional Advanced Action on entry of the first slide to:
Execute this JavaScript (set 1 = 1 for the condition)
Check the value of the vImageToDisplay user variable and show/hide the appropriate image.
Note that you'll want to check if vImageToDisplay is equal to "Victor". I was using "HTML5" in my action below because my images were different.
I tested this and did not run into any timing issues. -
Display Image(which set as behind text) based on some condition.
hi all
I have developed a xml report and in that rtf am displaying a static image (which is set as behin text).
But i need to display the image based on some condition
for example i have a field as ORG_ID
if org_id=87 then image should display for that purpose am planning to use <?if:ORG_ID=87?> condition but where to place this condition for the image.
kindly help me
thanks for all in advance.that too not working because
on image am displaying some other fields.
see i think you didn't get my point.
in my out put page am displaying item details ,quantity,and cost and customer details just like invoice copy .
behind this data am displaying my company logo which will capture whole page size..
if i place the image in table then fields will be automatically in table so i cant restrict image in this way.
Kindly suggest any other way that works only for image which is behind text. i mean condition should be applicable only for image and leaving all other fileds in rtf.
or
help on this how to set a dynamic image as behind the text.
Edited by: maddy on Nov 28, 2012 7:32 AM
Edited by: maddy on Nov 28, 2012 7:35 AM -
Displaying record based on the condition in Crystal report
Hi All,
I want to display certain records in crystal based on some condition.
For example,
If I am having 5 student records like,
Name Mark1 Mark2 Mark3 Total
aaa 40 50 60 150
abc 30 60 40 130
tcr 25 25 25 75
Now in table i have only 4 fields (STUNAME, MARK1, MARK2, MARK3).
I have to calculate the total at runtime and if total is greater than 150, then actual record should display in report.
For example, I can use formula to calculate total but I can calculate total only after each record prints. But i want to calculate total internally only it should display in report if condition satisfies. I dont want to keep one more field for total in crystal report.
Please help me on this.If the filter is not "pushed" down to the database, then Crystal will pull all of the data into memory and then filter it there. This is not a big deal if you only have a couple of records, but it can significantly slow down a report that is pulling in more than a few records.
An alternative, if your report is just linking tables in the Database Expert, would be to create a SQL Expression that adds the three fields together. Using this in the Select Expert WILL push the condition down to the database.
If you're using a command instead of linking table, they you would add this to the Where clause of the comment. If you're using a stored proc instead of tables or a command, you would want to do this filter in the code for the stored proc.
-Dell
Message was edited by: Dell Stinnett-Christy -
hi,
i have a sharepoint custom list with Title and image attachments, now i want to display image attachments in div based on the title.i am using the below code only
SPSite mySite = new SPSite("http://sharepoinsiteaddress");
SPWeb myweb = mySite.OpenWeb();
SPList myList = myweb.Lists["Announcements"];
SPListItem myListItem = myList.GetItemById(1); foreach (String attachmentname in myListItem.Attachments)
String attachmentAbsoluteURL = myListItem.Attachments.UrlPrefix // gets the containing directory URL
+ attachmentname;
// To get the SPSile reference to the attachment just use this code
SPFile attachmentFile = myweb.GetFile(attachmentAbsoluteURL);
// To read the file content simply use this code
Stream stream = attachmentFile.OpenBinaryStream(); StreamReader reader = new StreamReader(stream);
String fileContent = reader.ReadToEnd();
here i am using panel, how can i attach this attached image to panel -
Display T - tru or F - false based on condition
Hello,
Could you please let me know how to display T - true or F - False based on condition.
I am only able to display 0 and 1 but i want F and T instead.
thanks
Gade.Hi,
I donot think that it is possible simply with Query designer features. You better think about the Macros . The below thread can be considered as an example(mr. Deveshwar reply).
Display Date as 00/00/0000 instead of # if date field is empty
With rgds,
Anil Kumar Sharma .P -
How to give color to the display of keyfigure based on condition using exception.
Dear Friends.
I am trying to color "BAD3" in exception based on condition but my problem is in exception I can have only formula variable to compare the value, How to assign a value to formula variable in BEx Query designer.
What I am trying to do is :
in Query designer :
I have PO Quantity and Delivered Quantity.
if PO Qnantity > Delivered Quantity
then Delivered Quantity field should be colored as "BAD3" in exception.
but here proble is in exception
I have alert level , operator, and value fields for Delivered Quantity keyfigure ( Under definition tab - Exception is defined on = Delivered Quantity ).
but for value field I dont have PO Quantity for that I have to supply one formula variable,
When I created a forumula and did this way
FV_PO_QUANTITY = PO_QUANTITY formula editor throws errors. I dont understand How to assign a value of key figure to formula variable and use it in EXceptions.
Please help me How I can solve my problem
I will greatly appreciate your any help.
Thanking you
Regards
NaimThank you so much for your replies,
I did following way and it helped me to solve my issues.
I created one formula and under formula I use boolean < funtion to compare the values.
like following way.
( 'PO Quantity' > 'Delivered Quantity' ) * ( FV_PO_QNT + PO_QUANTITY')
here fv_po_qnt is formula variable I supply that variable to exception and since I have the value in it.. it compares with Delievered Quantity value and colored the perticular cell.
Thanks again for your replies
Regards
Naim -
Hi !
I have received a set of datas via rs232 and it contains picture messages. I have to decode the datas first and then display them on a canvas.
I have known several functions that may be used . Such as
int SetBitmapData (int bitmapID, int bytesPerRow, int pixelDepth, int colorTable[], unsigned char bits[], unsigned char mask[]);
int CanvasDrawBitmap (int panelHandle, int controlID, int bitmapID, Rect sourceRectangle, Rect destinationRectangle);
However,I don't know how to set the following parameters according to the actual pixel values and color values.
int bytesPerRow, int pixelDepth, int colorTable[], unsigned char bits[], unsigned char mask[]
What's more,I have no idea how to decode the datas.
The attachment is a incomplete project. I will be very appreciated if anyone could help me .
Best regards.
xiepei
I wouldn't care success or failure,for I will only struggle ahead as long as I have been destined to the distance.
Attachments:
Decode and display image.zip 212 KBWell, things are getting a bit clearer now.
1. Your image is actually 240x240 pixel (not 320x240 as you told before). The size of image data is 57600 bytes which corresponds to that frmat (I was puzzled by such a data size compared with larger image dimensions!)
2. The image is a 8-bits-per-pixel one; this means that you must provide a color palette to create the bitmap
3. You cannot simply copy image data into bitmap fields in CVI: CreateBitmap always produce an image with pixeldepth matched with display colour depth (normally 24 or 32 bpp)
All that means that you must:
1. Create the appropriate color palette with 256 colors: it may be a grayscale or color palette depending on camera characteristics. Grayscale palette can be found in my sample project, while sample colour palettes can be found here (here the description of a "standard" 8-bpp color palette)
2. Create the bits array correctly dimensioned for the color depth of your monitor
3. Get each pixel value from the camera, lookup in the color palette for the appropriate colour and create the RGB informations into the bits array in memory
4. Display the bitmap on the canvas
As a first step, I would configure my system for 256-color display setting, create a bitmap and simply copy image data into it: you should be able to get the correct image back to your screen.
Proud to use LW/CVI from 3.1 on.
My contributions to the Developer Zone Community
If I have helped you, why not giving me a kudos? -
Display image in report from BLOB
Hi All,
i have one requirement i.e
i want to display image in a report base on condition
like if id =1 then firest image, id = 2 then second image and id =3 then third image
i have image in database in BOLB type
i need to display in report based on that condition
please help me this requirement is urgent
reg,
jelljust create a query like this:
select id, image_name, image
from tablethen your XML output would be like this:
<ROWSET>
<ROW>
<ID>1</ID>
<IMAGE_NAME>kljkla</IMAGE_NAME>
<IMAGE>Lots of characters that represents the BLOB</IMAGE>
</ROW>
<ROW>
<ID>2</ID>
<IMAGE_NAME>jdkwel</IMAGE_NAME>
<IMAGE>Lots of characters that represents the BLOB</IMAGE>
</ROW>
<ROW>
<ID>3</ID>
<IMAGE_NAME>oled</IMAGE_NAME>
<IMAGE>Lots of characters that represents the BLOB</IMAGE>
</ROW>
<ROW>
<ID>4</ID>
<IMAGE_NAME>mlish</IMAGE_NAME>
<IMAGE>Lots of characters that represents the BLOB</IMAGE>
</ROW>
</ROWSET>in your RTF you put this:
<fo:instream-foreign-object content-type="image/jpg" width="251.8pt" height="174.3pt" xdofo:alt="picture"><xsl:value-of select=".//IMAGE"/></fo:instream-foreign-object>the attributes width and height are optional -
Displaying images in Briefing Book
Hi,
We are using Oracle Business Intelligence Enterprise Edition v10.1.3.4.
In OBIEE Answers, we have two reports and one dashboard page that hold these two reports. It is to be noted that the measure columns in both the reports have some images based upon the criteria specified in "Conditional Formatting" for the measure columns.
With the above setup in place, here is the problem scenario:
When we create a Briefing Book and individually add the two reports to it, all works fine. The display generated by "Get Now" and "Print Now" buttons in the briefing book is OK.
However, if we create a Briefing Book and add the dashboard that contains the two reports (and not the reports themselves), then the display that is generated using the "Get Now" and "Print Now" buttons does not show the images in the measure columns - instead it shows a red X mark in place of the images.
If we add either of the report to this briefing book now, the red X marks are replaced by the corresponding images for that report.
In essence, we are not being able to display the images in the measure columns if we add the dashboard page (containg the reports) to the briefing book rather than adding the reports themselves.
Any help is much appreciated.
Best Regards,
Piyusha few points that i can check
If you can see it in RRP3 then you should also be able to see the sales orders in the Standard SAP planing book based on 9ASNP94 planning area. can you see this?
if so .. your planning area is not set right
check if you have intialized the planning area and if your planning book has the required KF setup properly and similar to what you have set up in the Standard book
Also check if your MPOS that is attached to the new planning area is set up correctly
another point to check is if your selection id is properly selected when you load on to the planning area -
How to suppress an Image based on a report?
Hello
I have some images which are signatures( at least 5) and I would like to suppress them if some conditions are meet. For example I have some variables set like this below
StringVar vName1;
StringVar vName2;
StringVar vName3;;
StringVar vTitle1;
StringVar vTitle2;
StringVar vTitle3;
StringVar vCompany1;
StringVar vCompany2;
StringVar vCompany3;
and I would like to suppress the image( signature1) if vName1='ABC' and vCompany1='XYZ' else dont suppress it leave it TRUE so the image will display and so on .. , really based on the name , title and company I would like show the signature I want. any suggestion would be appreciated.
Thank you
alphaThere is another thought
First two is discussed
1. supprssing the object conditionally
2. Placing the image object in section and conditionally handling the section itself
3rd is
If the source of the image is brought in from outside, then you can control the path itself.
for eg: You want to show Imag1 for condition 1 and image 2 for condition 2 then conditions then
If condition 1
image : path 1
elseif condition 2
iimage :path 2
It depends on your rquirement. -
How to change images based on action.Even clicking changed images should ?
how to change images based on action.
Even clicking changed images should do respective actions.
and while displaying only one image at a time sholud get displayed.
I am using three images for a single column of a table in Jsp.
Any clues.
Any link for any good javascript html jsp site where i can find some good solution.
vijendraIn broad way if i say i have multiple situations in mutiple tables where i need such a logic to operate in for all tables.
lets say in first time load of page by default one image will be displayed (one with sorted order for first column rest all non sorted)Now after every click to any image respective sort should get called.along with all images should get changed.Here with every function one/two images will get effect at least.
As in first if i say sort by desc then this image will change rest all will remain in unsort form.
when i move to other column and click on new image the previos will convert to unsort and new one will convert to sort by ascending. rest all will be in unsort form as it is.
Now it seems like same logic is required with two three conditions.
even for everyaction different parametrs has to be passed at differnt situations.
Any good idea if someone can suggest.
I will be very greatful for him.
thanks
vijendra
Maybe you are looking for
-
Up to OS10.9, there is an option to show calendar events in a column, and event details in an adjacent column. Days without events were skipped. This was called "Schedule View". After upgrading to Yosemite, this option has disappeared. I find it very
-
Non PO invoice posting in ECC from SRM
Hi, We are creating non-PO invoice in SRM and upon approval, its posting in ECC as a material document, but the problem is that it is created without any line items. All the header information is passing fine only line item info is missing and it i
-
[SOLVED] ASCII desktop list
Hello. Is there any program/script that will let me pick from list which desktop environment/window manager I will start without need to edit ~/.xinitrc or installing graphical login manager. Thx. Last edited by verb0ss (2012-06-09 22:26:24)
-
Ironport size limit exceeded message
Hi, Wondering if anyone can help, we have a limit on the size of emails allowed to be sent out as per normal and when users exceed this limit they receive an email response which appears to be generated by one of our exchange servers, should they be
-
HT1933 couldn't Play songs after purchased.
When I bought Set Fire to the Rain, I knew you were trouble, Paparazzi, and a few other songs it said on the receipt that the songs were purchased but I couldn't play them!