Change the color of line in an interactive report in version 4.2 # Apex
Hi team,
I have done following things in my interactive report to reflect changes in color, but these changes do not appear. Could you please help where I'm missing.
Apex Version 4.2 #.
Theme-100 light blue
1. to light under the screen if active_flag is "N", then the entire line, I would like to show in a different color.
2. then create a dynamic action like this
Name: Give the appropriate name
Event: After refresh
Selection type: region
Region: select your region classic report
Condition: No strings attached
Action: Run the JavaScript Code
Fire on loading the Page: Yes
Code
$('td[headers="Active_Flag"]').each(function() { if ( $(this).text() === 'N' ) { $(this).closest('tr').find('td').css({"background-color":"#FFFF99"}); } else if ( $(this).text() === 'Y' ) { $(this).closest('tr').find('td').css({"background-color":"#EEA196"}); } else { $(this).closest('tr').find('td').css({"background-color":"#C6EA91"}); } });
But it does not reflect anything, you can offer me if I wrong anywhere.
Kind regards
Sruthitamiri
Sruthi Tamiri wrote:
I have done following things in my interactive report to reflect changes in color, but these changes do not appear. Could you please help where I'm missing.
Apex Version 4.2 #.
Theme-100 light blue
1. to light under the screen if active_flag is "N", then the entire line, I would like to show in a different color.
2. then create a dynamic action like this
Name: Give the appropriate name
Event: After refresh
Selection type: region
Region: select your region classic report
Condition: No strings attached
Action: Run the JavaScript Code
Fire on loading the Page: Yes
Code
- {$('td[headers="Active_Flag"]').each (function ()}
- If ($(this) () .text = ' don't) {}
- $(this) .find ('td').css({"background-color":"#FFFF99"});).closest('tr')
- } ElseIf ($(this) () .text = 'Y') {}
- $(this) .find ('td').css({"background-color":"#EEA196"});).closest('tr')
- } else {}
- $(this) .find ('td').css({"background-color":"#C6EA91"});).closest('tr')
- }
- });
But it does not reflect anything, you can offer me if I wrong anywhere.
Interactive report region that model is set to Model No.? If so, that means that is missing an ID attribute that is required to bind a dynamic action after refreshing the report. Use a region template that contains id="#REGION_STATIC_ID#"
, as the region without buttons or title.
The number of standard theme for the theme of blue light is 15. Have numbered it 100 would indicate that it has been customized, exported and re-imported. In an application updated through previous versions of APEX, it can actually be an older version of this theme earlier at APEX 4.x, when a number of models in legacy issues, missing this attribute altogether.
Tags: Database
Similar Questions
-
change the color of line based on the value of column 5 Apex in the classic report
Version of the apex 5.0.0.00.31
Standard universal theme
Page theme default template
Classic report
Foldable report template
Hello
I know this question has been asked several times here, but I'm working on 5 Apex and need to know the correct way to do it in this version.
I need to change the color of the text of the entire line (no background color) based on the value in one of the columns of the classic report. I have just two conditions, if the value of column = Yes, color should be red, otherwise it must be green.
I am new to jscript and css, so appreciate if someone can tell me the solution with steps.
I have already checked this link that changes the value of the column, need to do something similar to the whole line.
https://tylermuth.WordPress.com/2007/12/01/conditional-column-formatting-in-apex/
Hi coolmaddy007-Oracle,.
Here's an example set up on the apex.oracle.com according to the specifications you gave: https://apex.oracle.com/pls/apex/f?p=35467:1
Version of the apex 5.0.0.00.31
Standard universal theme
Page theme default template
Classic report
Foldable report template
Here is how it is done:
Create a dynamic action with the following specifications:
Name: Give the appropriate name
Event: After refresh
Selection type: region
Region: select your region classic report
Condition: No strings attached
Action: Run the JavaScript Code
Fire on loading the Page: Yes
Code:
$('td[headers="JOB"]').each(function() { if ( $(this).text() === 'MANAGER' ) { $(this).closest('tr').find('td').css({"color":"red"}); } if ( $(this).text() === 'SALESMAN' ) { $(this).closest('tr').find('td').css({"color":"green"}); } if ( $(this).text() === 'CLERK' ) { $(this).closest('tr').find('td').css({"color":"blue"}); } });
NOTE: Download the selector appropriate for your knowledge $('td[headers="JOB"]') case using firebug/browser development tools.
Items concerned: leave blank.
PS: Changed the example to change the color of text instead of the background color.
I hope this helps!
Kind regards
Kiran
-
Change the color of line based on condition.
Hello
Am using jdeveloper 11.1.1.6.0
I slipped and fell by xxxVO as an array of af in my jspx page.
This vo has the attribute of gravity which is a component to select only one option.
I need to change the color line if gravity = 1.
How can I achieve this.
Kind regards
Prasad K T,.
9840021070.
Refer
ADF: color change of the value of the column according to the requirement
-
How can I change the color of line in a line graph?
I used Illustrator to create a line graph. (Not my option you want because I normally import from R and then edit, but the manual wanted to show that you can create graphic and edit them in Illustrator)
In any case, I did all the editing, except that I can't change the color of the line. My job requires me to match the example of manual and the manual does not provide any instructions on how to do it. I did pretty much any method I can think and the rest always gray line. I'm almost ready to give up everything and lose the points, but something as simple as the color cannot be that hard, right? Right?
You need spend the focus from filling in the race or the color Panel, or by using the shortcut SHIFT - X. You can use Select > same > Fill and stroke to select all parts of the line and then a Cmd (Ctrl)-J to connect all the parts.
-
Change the color of lines, such as the quick selection selection
Is there anyway to change the color of the selection of black moving dashes (ants), a selection tool, such as the quick selection?
No, sorry.
If you could, it would be in the preferences. It is not the case.
You can hide the mobile dotted with Cmd + H (Ctrl + H)
-
How to change the color of line according to the value of the column
Hi all
I have an obligation to change the color of the column based on the value. As I have a table of results and the State are success and failure and progresses, if the State values is the success that should appear in green and if the status is failed, that should be red...
Here is my table ADF Trinidad read only tables.
Can someone help me with this.
Thank youHello
Try this:
styleClass="#{row.bindings.Status.inputValue=='IN PROGRESS' ? 'INPROGRESS' : row.bindings.Status.inputValue}"
-
Change the color of line permanently as a condition while the other lines remain default color
I tried the methods I've read on other forums, but when I go to the next record, follows the color. I want the color to stay on the line that meet the condition. TNX
Hello.
You can use the built-in SET_ITEM_INSTANCE_PROPERTY to set the VISUAL_ATTRIBUTE property for each item in the folder that you want to change.
The Set_Record_Property does not work or the Set_Block_Property.
-
Hi, need to change the color of line at run time
Hi all
I have columns in the paintings is one of them for YES and it is of TYPE I create two attribute for this and place like this to trigger post_query block-level after that I get what I want the color of the YES and NO, but
NOW I NEED TO CHANGE THE LINE COLOR IN FULL WHAT IT TAKES PLEASE GUIDE
IF: ORDER_TRACKER2. TYPE = "YES" THEN
SET_ITEM_INSTANCE_PROPERTY ('ORDER_TRACKER2.) TYPE ', CURRENT_RECORD, VISUAL_ATTRIBUTE, 'ATT_NO');
ON THE OTHER
SET_ITEM_INSTANCE_PROPERTY ('ORDER_TRACKER2.) TYPE ', CURRENT_RECORD, VISUAL_ATTRIBUTE, 'ATT_YES');
END IF;
Thanks and greetings
Vikas SinghalIF :ORDER_TRACKER2.TYPE = 'YES' THEN SET_ITEM_INSTANCE_PROPERTY ('ORDER_TRACKER2.TYPE', CURRENT_RECORD, VISUAL_ATTRIBUTE, 'ATT_NO'); SET_ITEM_INSTANCE_PROPERTY ('ORDER_TRACKER2.ITEM1', CURRENT_RECORD, VISUAL_ATTRIBUTE, 'ATT_NO'); SET_ITEM_INSTANCE_PROPERTY ('ORDER_TRACKER2.ITEM2', CURRENT_RECORD, VISUAL_ATTRIBUTE, 'ATT_NO'); SET_ITEM_INSTANCE_PROPERTY ('ORDER_TRACKER2.ITEM3', CURRENT_RECORD, VISUAL_ATTRIBUTE, 'ATT_NO'); SET_ITEM_INSTANCE_PROPERTY ('ORDER_TRACKER2.ITEM4', CURRENT_RECORD, VISUAL_ATTRIBUTE, 'ATT_NO'); SET_ITEM_INSTANCE_PROPERTY ('ORDER_TRACKER2.ITEM5', CURRENT_RECORD, VISUAL_ATTRIBUTE, 'ATT_NO'); ELSE SET_ITEM_INSTANCE_PROPERTY ('ORDER_TRACKER2.TYPE', CURRENT_RECORD, VISUAL_ATTRIBUTE, 'ATT_YES'); SET_ITEM_INSTANCE_PROPERTY ('ORDER_TRACKER2.ITEM1', CURRENT_RECORD, VISUAL_ATTRIBUTE, 'ATT_YES'); SET_ITEM_INSTANCE_PROPERTY ('ORDER_TRACKER2.ITEM2', CURRENT_RECORD, VISUAL_ATTRIBUTE, 'ATT_YES'); SET_ITEM_INSTANCE_PROPERTY ('ORDER_TRACKER2.ITEM3', CURRENT_RECORD, VISUAL_ATTRIBUTE, 'ATT_YES'); SET_ITEM_INSTANCE_PROPERTY ('ORDER_TRACKER2.ITEM4', CURRENT_RECORD, VISUAL_ATTRIBUTE, 'ATT_YES'); SET_ITEM_INSTANCE_PROPERTY ('ORDER_TRACKER2.ITEM5', CURRENT_RECORD, VISUAL_ATTRIBUTE, 'ATT_YES'); END IF;
-
How to change the color of line based on Condition
Dear all,
We have requirment as shown below
Based on the condition, I want to show the color for all of the line
Example of
If attribute = 'Y' then
{
< show the color for complete line in advanced table?
}
Please give me suggestion how join my requirment.
Thank you
Venkat Reddy PulichinthaHey...
you said that the code you wrote is working for a column... in the same way you can set the CSS Style on all other columns as well...
Why don't you go with code that works...
DataBound APIs are an alternative solution to this... you can search on it later...
Thank you
Gerard -
Change the maximum default line in an analysis report?
I am using OBIEE 11.1.1.3 (and test this on 11.1.1.5) and am curious to know how to change this setting:
On all our analytical reports, we can display lines 1-25 in the results for the report tab. I want to change that, so I see more than 25 lines my default for any report, like maybe 500 or 1,000. I know that it affects the cache but must be able to try different values.
Can someone guide me how to proceed?
Thank you.For all reports in a single shot by changing the Instanceconfig.xml, with the tags below, make sure you put these tags before the area of AdvancedReporting.
50
Thank you
-Laurence.Published by: laurence may 18, 2011 15:13
-
Change the number of lines displayed in a report
Hi guys,.
I have a query that will return 3 rows, so I set the number of lines on the screen of the report attributes for 3 and everything was fine.
I then changed the query to return 4 lines and also changed this attribute to 4, but the report stubbornly refuses to display 4 - only 3 old.
Is there something I missed here?
See you soon
SteveI find the runtime application logging and lumbering solves this. It does not seem to be cached for your session by default, Yes.
-
How to change the width of columns in an interactive report?
I have an interactive report. I want to customize the width of the column in the report. How to get there?
Thank you
JenTwo things... (1)
items are for the forum display use only, do NOT copy them to your page in APEX.. 2) I have modified your page 23 in your app, I have added the code in the proper location and removed the other code you had in place and copied it to the comments section of page. Please take a look and adjust the size accordingly.. If this answers your question, please mark the question as answered and assign points where due.. Thank you, Tony Miller Webster, TX Time flies like the wind, but fruit flies like bananas.
-
Change the color of line of text found grep
I use InDesign CS 5 on Mac. I modified the script to find the word 'Base' and apply a fill color to the cell.
But I'm also trying to figure out the following:
1. search only in the selected table (I tried to change to var docTables = app.selection [0]; but I got an error for o = docTables.length I don't know how to fix.)
2. Add Grep search looking for 'Base' with the character style "medium weight table" attached (I tried to play with this code I use elsewhere, but can't figure out how to merge the two...)
app.changeGrepPreferences.appliedCharacterStyle = app.activeDocument.characterStyles.item ("medium weight table") ;)
3. apply fillColor on the line. I tried to play with the parentRow command, but not very successful there.
app.findGrepPreferences = NothingEnum.nothing; //[Grep, cellStyleName] var grepSearch = [["Base"]] var docTables = app.activeDocument.stories.everyItem().tables.everyItem().getElements(); o = docTables.length; for(var i = 0; i < o;i++){ myTable = docTables[i]; l = grepSearch.length; while(l--){ app.findGrepPreferences.findWhat = grepSearch[l][0]; var foundList = myTable.findGrep(); f = foundList.length; while(f--){foundList[f].parent.fillColor = "PANTONE 3005 C 45%";} } } app.findGrepPreferences = NothingEnum.nothing;
Thanks for any help on any of these issues.
Hi Jennifer,.
I suggest making some clearings:
1. to catch a table from selection select an item in a parent table instance and check desired until successful.
2. you merge Grep conditions while assigning a value to consecutive preferences
(if your test should work in fact). To refer to the line in a cell content (text) use text. parent.parentRow
3 assign a witness to a .fillColor property
Then try this:
var mSel = app.selection[0], mCheck = mSel instanceof Table || mSel instanceof Document; while (!mCheck) { mSel = mSel.parent; mCheck = mSel instanceof Table || mSel instanceof Document; } if (mSel instanceof Document) {alert ("Select anything inside a table"); exit();} app.findGrepPreferences = NothingEnum.nothing; var grepSearch = ["Base"] , l = grepSearch.length, mStyle = app.activeDocument.characterStyles.item("chart semibold"), mSwatch = app.activeDocument.swatches.item("PANTONE 3005 C 45%"); app.findGrepPreferences.appliedCharacterStyle = mStyle; while(l--) { app.findGrepPreferences.findWhat = grepSearch[l]; foundList = mSel.findGrep(); f = foundList.length; while(f--) { foundList[f].parent.parentRow.fillColor = mSwatch; } } app.findGrepPreferences = NothingEnum.nothing;
Jarek
-
change the color of the line in a diagram 3D with points - e3DShapePoints
How can I change the color of line in a type of diagram of e3DShapePoints? I want to use one of the global predefined palettes.
I managed to change the color of line of brand via:
Report.Sheets.Item (MySheetName). Objects.Item (MyDiagramName). Curves3D.item (MyCurveName). Shape.Settings.Marker.Line.Color.ColorIndex = eColorIndexGlobalColorPalette3
but this will not have the legend color unfortunately. Apparently there is no object available within the parameters of the curve line.
Any suggestions?
If you cange the color in the definition of the curve of dialogue for 'points' this corresponds to the 'points' textcolor because no line is available. (oMyShape.Extensions.Label.Font.Color.ColorIndex = eColorIndexGlobalColorPalette1)
Dim oMy3DAxisSystem, oMy3DCurve, oMyPos, oMyShape
Call Report.NewLayout)
Call Data.Root.Clear)
Call DataFileLoad (DataReadPath & "Report_Data.tdm", "CT","" ")
Set oMy3DAxisSystem = Report.ActiveSheet.Objects.Add (eReportObject3DAxisSystem, "My3DAxisSystem")
Set oMyPos = oMy3DAxisSystem.Position.ByCoordinate
oMyPos.X1 = 20
oMyPos.X2 = 80
oMyPos.Y1 = 20
oMyPos.Y2 = 80
Set oMy3DCurve = oMy3DAxisSystem.Curves3D.Add (e3DShapePoints, "MyNew3DCurve")
Set oMyShape = oMy3DCurve.Shape
oMyShape.DataStructure = e3DDataStructureMatrix
oMyShape.XChannel.Reference = "[2] / [1].
oMyShape.YChannel.Reference = "[2] / [2].
oMyShape.ZChannel.Reference = "[2] / [3].
oMyShape.Settings.Marker.Type = eMarkerCircle
oMyShape.Settings.Marker.Filling.UseCurveColor = True
Call oMyShape.Settings.Marker.Filling.SetPredefinedColor (ePredefinedColorred)oMyShape.Extensions.Label.Font.Color.ColorIndex = eColorIndexGlobalColorPalette1
' oMyShape.Settings.Marker.Line.UseCurveColor = True
' oMyShape.Settings.Marker.Line.Color.ColorIndex = eColorIndexGreen
' oMyShape.Settings.Marker.Filling.UseCurveColor = True
' oMyShape.Settings.Marker.Filling.ColorIndex = eColorIndexblack
oMy3DAxisSystem.ColorLegend.Visible = TrueCall Report.Refresh)
It's a little confusing.
Hope this helps
Winfried
-
For example, I go through a foreach loop and draw two points. How to distinguish this set of plots of the yet to come? How can I change the style, color and have separate lines (instead of on the line connecting everything) for each of my plots? I don't know how to set everything up, but it still does what he wants to do. TIA.
Hello
The problem you see occurs because of the following lines of code:
The _data and _data2 scatterPlot3 value
_data = scatterPlot3
_data2 = scatterPlot3
When you do this, you define _data as _data2 to reference an object of the simple concession - scatterPlot3. Yes, even if you have (from the code you have posted at least) three slots in your collection, they are all pointing to the same object of point cloud. So when you change the color for one, it changes the color for them all. However, I think that you have fallen on the right solution in your last sentence. If you want to have multiple locations on your ScatterGraph, each with its own color and style, they should each be separate and unique plots in the collection plot of your ScatterGraph. Based on the code you posted, you'll see this if you comment just the two lines shown above.
Please let me know if something is still uncertain.
NickB
National Instruments
Maybe you are looking for
-
Where is the iTunes store?
Where is the iTunes store?
-
Can I access on my iMac with MacBook cd drive
Can I access on my iMac with MacBook cd drive
-
Current entry port analog for BNC-2110
Hello I use BNC-2110 as interface to connect to the PCI-6280, I checked this interface card. I wonder if this curd can be used for current analog measing (I mean directly). It accepts input of current analog? and one thing, when I open the module Mea
-
When I start my computer, I get a message saying ntldr is missing. How can I replace this file on my computer without wiping my hard drive and delete my files that are on the computer.
-
Get a signal on a XPS 17 L701X SPDIF
Looking for a little help from the good people on these forums on how to get a digital audio SPDIF on my L701X XPS17. There is a 3.5 mm jack on the side of the computer that says SPDIF. It is ok. Now, what to I need to connect to an external DAC? It'