Interactive report - display negative sum in red
APEX 4.0.2 RDBMS 11G R2I have an interactive report (IR) that generates multiple columns in the report. Infrared, (FORMAT > AGGREGATION) I added some of these columns. On columns that represent monetary values, I would like to see all the negative values in red.
Using FIREBUG, I'm able to identify and inspect one of these values but cannot determine the best way to conditionally displays this value (when it is negative) in red.
Thanks in advance.
Hello
When I run the page, sum 'A value' column shows <33.25>on the red letters.
If you change the number in S999G999G999G999G990D00 format there is no need to parse number of string in JavaScript.
Please note that separator decimal must be dot (.)
Kind regards
Jari
-----
My Blog: http://dbswh.webhop.net/dbswh/f?p=BLOG:HOME:0
Twitter: http://www.twitter.com/jariolai
Tags: Database
Similar Questions
-
Interactive report - display new/modified columns
Hello
When I add or edit a column of interactive reports, APEX does not show me the new column automatically.
Whenever the user log, he must go to the "Actions" and "Select columns" manually, otherwise the column news/modified will not be displayed.
How can I do that the column is automatically displayed after login?
I use APEX 4.0.2.00.07.
Kind regards
MarcEither you, as a developer, can save the report to the Public.
Or an aithorized user can save the report as report general Shared.
Or the user can save the report as a private one.Choose the columns you / the user wants to see. Then [Action-> Save]
-
Saving interactive reports display for all users options
Hello
For now, I'm building once more my apex Apex 4.0 applications
I created a user. In the administration of the apex this user is not an administrator and not a developer either.
However saved interactive report options appear for him too, so he can choose the appearance of the default report, etc...
Is this a bug? Or did, I forgot something?
Thank you!
FannyFanny, as long as you are connected as a developer in the apex, that you will be able to save the report as the standard report, any user, you are connected to your application.
Paul
-
Update of the elements on the Page regarding filters in Oracle APEX interactive report
I recently started using interactive reports in my Oracle APEX application. Previously, all pages in the classic application reports. The interactive report in my new page works fine, but now, I would like to add a summary box/table above the interactive report on the same page that displays values added some columns in the interactive report. In other words, if my interactive report displays 3 names of separate Manager, 2 separate offices and 5 different employees, my summary (box) will contain a line and three columns with numbers, 3, 2, and 5, respectively.
So far, I did this job creating the box summed up as a classic report that account of the distinct values for each column in the same table that my interactive report pulls. The problem is when I try to filter my interactive report. Of course, the classic report is not updated based on the interactive report filters, but I don't know how I could link the two so that the classic report meets interactive report filters. From my research, there are ways to refer to the value in the search box of the interactive report using javascript/jquery. If possible, I would like to refer to the value of the filter of the interactive table with javascript or jquery to refresh the summary box whenever a new filter is applied. Does anyone know how to do this?Thanks, Patrick! I was always getting some of the old filters for a reason, but I was able to use the tables included in queries to retrieve my ID to report, that I used in the APEX_IR. Function GET_REPORT.
-
How to add the link change in the detail view of the interactive report?
Hello
I use APEX 5.0 on 11g XE.
I have an interactive report displaying multiple records with a column of link which is one of to an edition for the registration page. All the standard stuff 'wizard generated. I have also created a layout of the detail view. It all works very well.
However. I want IR to show detail discovers all the time and hide all Toolbar IR. How can I show the link change in the detail for each record view?
Y at - it an easy way to do this by adding a column reference (something like: #LINKCOLUMN #?) or do I need to create it manually with an < a href... > tag. I guess that this method would require me to generate a checksum with apex_util.prepare_url?
Nick
Nick4 wrote:
Good point. I agree, however, I want to keep it as an interactive report that I must keep my options open as showing the data... every customer is different, I can change my mind.
Other options are available for this. Compilation options to be exact... create IR and parts of standard report and determine who gets deployed by setting the build on the export options.
I was hoping there was an easy way to display the IR link column in the detail view, but looks like I need to create one manually in the HTML "for each line" in the detail view section.
It works, but no checksum complains...
EDIT So have added as a column in the query:
APEX_UTIL. URL PREPARE_URL('f?p=&APP_ID.:14:&session.::no::P14_CONTACT_ID:#CONTACT_ID#:', NULL, 'SESSION')
and this for the HTML:
But the URL is always wrong... #CONTACT_ID # always ends after the checksum...?
You are mixing HTML/model and SQL syntax. #CONTACT_ID # does not substitute for CONTACT_ID value in the query. The column value should be included in the URL before calculating the checksum:
... apex_util.prepare_url('f?p=' || :app_id || ':14:' || :app_session || '::NO::P14_CONTACT_ID:' || contact_id, NULL, 'SESSION') url ...
Note that substitution integrated always strings need to be referenced as bind variables in SQL to avoid unnecessary analysis.
-
How to replace the interactive report '-' for null with white columns fields?
The reports interactive one places '-' for null column fields. In the classic report, column null fields remain just as a draft. Y at - it a setting to change how many interactive reports display columns null fields? I would prefer that it be display as the classic report and leave the fields to null as a draft column.
THX
Published by: jngoracle on July 24, 2010 22:43Hello
Will modify your report interactive report attributes.
In the paging section, you can change attribute "see the Null Values as".BR, Jari
-
Report interactive color display, but no data
Apex 5
Theme: universal
I have an interactive report
select b.project_number, b.name project_name, b.description, b.start_date, b.end_date, a.ID, a.STATUS_DATE, a.TIME_STATUS, a.COST_STATUS, a.SCOPE_STATUS, a.HR_STATUS, a.ISSUE_RISK_STATUS, a.OVERAL_ALL_STATUS, a.PROJECT_ID from ANG_PROJECT_STATUS a, ang_projects b where b.id = a.PROJECT_ID and PROJECT_ID = :P20_ID and a.STATUS_DATE = (select max(d.STATUS_DATE) from ANG_PROJECT_STATUS d where d.PROJECT_ID = b.ID)
The columns
a.TIME_STATUS, a.COST_STATUS, a.SCOPE_STATUS, a.HR_STATUS, a.ISSUE_RISK_STATUS, a.OVERAL_ALL_STATUS
Can have data of green, orange or red, so I created conditions of climax.
Anyway is to display the highlight color, but not the data
Concerning
Gus
Gus C wrote:
Apex 5
Theme: universal
I have an interactive report
- Select
- b.project_number,
- b.Name project_name,
- b.,
- b.start_date,
- b.end_date,
- a.ID,
- a.STATUS_DATE,
- a.TIME_STATUS,
- a.COST_STATUS,
- a.SCOPE_STATUS,
- a.HR_STATUS,
- a.ISSUE_RISK_STATUS,
- a.OVERAL_ALL_STATUS,
- a.PROJECT_ID
- ANG_PROJECT_STATUS a, ang_projects b
- where b.id = a.PROJECT_ID
- and = project: P20_ID
- and a.STATUS_DATE = (select max (d.STATUS_DATE)
- of ANG_PROJECT_STATUS d
- where d.PROJECT_ID = b.ID)
The columns
- a.TIME_STATUS,
- a.COST_STATUS,
- a.SCOPE_STATUS,
- a.HR_STATUS,
- a.ISSUE_RISK_STATUS,
- a.OVERAL_ALL_STATUS
Can have data of green, orange or red, so I created conditions of climax.
Anyway is to display the highlight color, but not the data
It is possible, but not appropriate for accessibility reasons. As noted in 1.4.1 WCAG success criteria, color should not be the only channel to transmit information. Without the status text, it will be difficult for color-blind users (up to 10% of the population) to distinguish colors in the report, giving them problems to understand and make the necessary arrangements. Here's how the report will look like to users with one of the most common types of color blindness:
In a report like this, in addition to the color channel, I include the RAG status labels in its entirety as red/orange/green and include a
title
attribute detailing the underlying value or an explanation of how the status of CLOTH has been evaluated. In an interactive report, this can easily been done using an HTML Expression:#COST_STATUS#
-
Problem with the display of the icon in the interactive report
Hello
for several days I am looking for a solution on the web, but I have not found the right article.
I can't display images in the display of the icon of interactive report.
I tried to understand with an example of implementation of the SUMMIT.
I work with the same component without success.
IN MY PAGE:
first region
P1O_IMG1: File Explorer to download image
P10_TITRE: text box: title
P10_LIBELLE: area of tex: topic
P10_CANCEL: button cancel
P10_submit: button to submit
in this area, I upload a picture and create a row in the CG63_IMG table
ID_IMG NUMBER FILE NAME VARCHAR2 (400 BYTE) MIME_TYPE VARCHAR2 (50 BYTE) CHAR_SET VARCHAR2 (128 BYTE) IMAGE_CONTENT BLOB OBJECT DATE_MAJ DATE LIB_IMG VARCHAR2 (400 BYTE) THE TITLE VARCHAR2 (100 BYTE) and everything is OK
second region with interactive report
Select
cg63_IMG.ID_IMG ID,
CG63_IMG.ID_IMG as ID_IMG,
CG63_IMG. Name of the FILE as FILENAME,
CG63_IMG. Mime_type like MIME_TYPE,
CG63_IMG. CHAR_SET as CHAR_SET
CG63_IMG. DATE_MAJ as DATE_MAJ,
CG63_IMG. LIB_IMG as LIB_IMG,
CG63_IMG.titre,
Decode (NVL (DBMS_LOB. GetLength (IMAGE_CONTENT), 0), 0, NULL, apex_util.get_blob_file_src (ID_IMG, NULL, 'P10_PHOTO', 'inline')) detail_img_no_style;
apex_util.prepare_url ('f? p ='|: APP_ID |) » : 20 :'|| : APP_SESSION |': P20_ID_IMG :'|| ID_IMG) icon_link
of CG63_IMG CG63_IMG
in my report, detail_img_no_style, icon_link are hidden
in attributes of reports
the normal display mode is ok
the detail view is ok
display the icon: problem no picture
I would like this (in the order of the lines of the "icon view" attribute)
YES,
NO,
ICON_LINK,
DETAIL_IMG_NO_STYLE,
TITLE,
HEIGHT = "140" WIDTH = "140"
#TITRE #.
'',
""
third region
I defined a P10_PHOTO point: File Explorer, hidden
Like this
Parameters:
NO,
BLOB type column specifies in the attribute of the source point,
MIME_TYPE,
FILE NAME,
' ',
DATE_MAJ,
YES,
' ',
Inline
Source:
Still, replacing everything,.
Databas column,
Per session.
Value of source = IMAGE_CONTENT,
' ',
' '
It is difficult to get information: how the element such as P10_PHOTO must be created.
APEX 4.2.5 WITH ORACLE HTTP SERVER
Concerning
MARC
user_fr_cg63 wrote:
Hello
for several days I am looking for a solution on the web, but I have not found the right article.
I can't display images in the display of the icon of interactive report.
I tried to understand with an example of implementation of the SUMMIT.
I work with the same component without success.
IN MY PAGE:
first region
P1O_IMG1: File Explorer to download image
P10_TITRE: text box: title
P10_LIBELLE: area of tex: topic
P10_CANCEL: button cancel
P10_submit: button to submit
in this area, I upload a picture and create a row in the CG63_IMG table
ID_IMG NUMBER FILE NAME VARCHAR2 (400 BYTE) MIME_TYPE VARCHAR2 (50 BYTE) CHAR_SET VARCHAR2 (128 BYTE) IMAGE_CONTENT BLOB OBJECT DATE_MAJ DATE LIB_IMG VARCHAR2 (400 BYTE) THE TITLE VARCHAR2 (100 BYTE) and everything is OK
second region with interactive report
Select
cg63_IMG.ID_IMG ID,
CG63_IMG.ID_IMG as ID_IMG,
CG63_IMG. Name of the FILE as FILENAME,
CG63_IMG. Mime_type like MIME_TYPE,
CG63_IMG. CHAR_SET as CHAR_SET
CG63_IMG. DATE_MAJ as DATE_MAJ,
CG63_IMG. LIB_IMG as LIB_IMG,
CG63_IMG.titre,
Decode (NVL (DBMS_LOB. GetLength (IMAGE_CONTENT), 0), 0, NULL, apex_util.get_blob_file_src (ID_IMG, NULL, 'P10_PHOTO', 'inline')) detail_img_no_style;
apex_util.prepare_url ('f? p ='|: APP_ID |) » : 20 :'|| : APP_SESSION |': P20_ID_IMG :'|| ID_IMG) icon_link
of CG63_IMG CG63_IMG
in my report, detail_img_no_style, icon_link are hidden
in attributes of reports
the normal display mode is ok
the detail view is ok
display the icon: problem no picture
I would like this (in the order of the lines of the "icon view" attribute)
YES,
NO,
ICON_LINK,
DETAIL_IMG_NO_STYLE,
TITLE,
HEIGHT = "140" WIDTH = "140"
#TITRE #.
'',
""
third region
I defined a P10_PHOTO point: File Explorer, hidden
Like this
Parameters:
NO,
BLOB type column specifies in the attribute of the source point,
MIME_TYPE,
FILE NAME,
' ',
DATE_MAJ,
YES,
' ',
Inline
Source:
Still, replacing everything,.
Databas column,
Per session.
Value of source = IMAGE_CONTENT,
' ',
' '
It is difficult to get information: how the element such as P10_PHOTO must be created.
APEX 4.2.5 WITH ORACLE HTTP SERVER
Instead of all that typing it would have been easier to download the application at apex.oracle.com and share the problem here...
Why does P10_PHOTO exist when there is already an article for the download of files in P10_IMG1?
Is there a process to look for automatic line (ARF) DML defined to fill the first area? If not, create one and its the Nevervalue condition.
-
Hi guys,.
is it possible to control the display mode of the interactive reports, i.e. display icon, list, view detail, group by, chart, pivot?
As I understand the current setting is stored as a preference of the user for each user... and again when his connection. A settings of the rules them all (all the stored report parameters).
The display mode switchable using a javascript, the api package apex_ir or via a link?
Thank you
~ Dietmar.Hi Dietmar,
It is not a supported way to change the display interactive report mode. With the device connected by Anthony internally, we will consider adding this because part of apex_ir or a link to the future.
Kind regards
Christina
-
Get an interactive report to change what it displays
Hello world
I have a table which have multiple values in a column, separated by semicolons, for example: "Architecture: Application: Software»
I have an interactive report that displays data, and by default it displays exactly as above: "Architecture: Application: Software»
I can get it to wrap so that it fits in narrow width, I put to this column of the report, but I can't seem to break properly - it just treats it as a value and stops at the width of the column in the report.
If I get: "Architecture: app
cation: Software'
What I would like to get is three words, one on each line. Is there a way to do this?
Ideally, I would like to replace it with a supply for each settler line - but only in the report. I'm not actually change the data in the table.
Thank you!
John Ramuta
Of course, you can use in SQL
Replace (my_col, ': ',')
')then, set the column for rendering HTML
You can also try to replace by ': ', that is to say including a space. The browser should then decide on best time to wrap.
-
Interactive report with display of the icon to set the page element
Hi all
I am currently using Apex 4.2.4, I have an interactive report using icons, each icon has a link to another page but a few I want to set a value in a page hidden in the same page element which is then used as a variable for a classic report.
I have this work via link href in the icon as f? p ='|| FA.page |': 1 :'|| : app_session |': P10_ID_ITEM :'|| FA.link_name without error.
My problem is that I wanted to put the value of the element without using a link href that I could handle the clicked icon to change the background color so that the user can have a Visual representation, where it was clicked, then using the value of the page item appears the classic report in another region with a partial refresh.
Any help is appreciated, thanks.
Can you provide a detailed explanation of the purpose of this report and the logic used in the report query? What are the rules to control which icons appear in the IR, what icons link to the second report on the page of IR, and icons to link to separate pages?
For me, the report query seems too complicated and inefficient by returning the data it does, and if another level of data is added to the hierarchy or more data is added to the second level, it fails with:
ORA-01427: einreihig subquery returns multiple rows
I'm guessing that the intent is that the IR displays only the icons at the top level of the hierarchy and icons for posting a link to a different page when they have no descendants, or to display the related lines in the secondary report below the IR when they do. I created a new page with the report query modified to a route of tree and keep the upper level lines. It is much more effective than the original query and simplifies the logic necessary for the verification of end-nodes. Instead of generating a URL link (which violates the separation of concerns), the query returns of the discrete values that can be used to implement the HTML link in the Icon View link Custom property:
with icon_tree as ( select ic.id_icon , ic.icon_name , ic.link_name , nullif(connect_by_isleaf, 1) is_parent , level depth from icons ic connect by prior ic.link_name = ic.id_parent start with ic.id_parent is null) select id_icon , icon_name , link_name , apex_util.get_blob_file_src('P10_ICON_IMAGE', id_icon) img_src , nvl2(is_parent, '586', link_name) target , nvl2(is_parent, 'P586_ID_PARENT', null) parent_item , nvl2(is_parent, link_name, null) parent_id , :app_id app_id , :app_session app_session , :debug debug from icon_tree where depth = 1
In the interactive report, Use Custom Icon Link is set to Yes, and the custom link is:
#ICON_NAME#Public static ID
icons
andresults
are applied to the IR and the regions second report respectively for use as selectors in action dynamics and CSS. The protected value property for the page P586_ID_PARENT element must be set to No for the value can be defined by a dynamic action.Dynamic action with several real actions is needed to bind alternatives click behavior to the links on the icons that have descendants (i.e. where the
data-parent-id
attribute has a value):Event: Click
Selection type: jQuery Selector
jQuery Selector:
.apexir_WORKSHEET_ICONS a:not([data-parent-id=""])
Real Actions
Seq: 10
Action: Delete the class
Class:
selected
Selection type: jQuery Selector
jQuery Selector:
.apexir_WORKSHEET_ICONS a
Seq: 20
Action: Add the class
Class:
selected
Selection type: trigger element
Seq: 30
Action: Set value
Wait for result: Yes
Type of value: Expression of JavaScript
JavaScript expression:
$(this.triggeringElement).attr('data-parent-id')
Selection type: Agenda
Point: P586_ID_PARENT
Seq: 40
Action: Discount
Selection type: Region
Region: results
Seq:50
Action: Show
Selection type: Region
Region: results
Seq: 60
Action: Cancel event
Finally, add a style sheet to the Inline CSS property page. Initially, this hides the secondary report and select the parent clicked icon:
#results { display: none; } #icons .apexir_WORKSHEET_ICONS a { border: 1px solid transparent; border-radius: 3px; padding: 0.8em 0 0.5em; } #icons .apexir_WORKSHEET_ICONS a.selected { border-color: #6a9cda; background-color: #bbd1ec; transition: 0.6s; }
However, after all it is the question of why you use an interactive report here if you turned off all the features of the IR? A dynamic list with a custom template box seems to be more applicable?
-
Display conditional interactive report
I have a group of buttons radio with two options:
1. display the timeline X table
2. display the records in the table Y
And a display button
According to the selection of the option button (option 1 to say) the user will be display and click on I want my Interactive report to display (in this case, chronogram X table).
If the user chooses the second option and click the Display then interactive to display report (in this case Records of table Y).
Please help me solve this problem. I am new to Oracle apex.
Thanks in advance.
You can manage this with two select statement. Here's the logic
Select * from table where 1 =: RADIO_PAGE_ITEM
Union
Select * from table where 2 =: RADIO_PAGE_ITEM and your condition
Note: Your option 1 must return 1 so the first select statement will be executed in this case second statement can't and vice versa.
-
How can I rearrange the columns in the not displayed section of the interactive report.
Hello
My interactive report contains 185 columns and requieres users to build its reports with some columns, but he gets lost between this amount of columns, it would be easier if the columns in the do not display the interactive report section would be automatically sorted, is it possible?
Thank you very much
Hi Eva,
A solution would be to order the column names in alphabetical order. You can create a dynamic JavaScript action to manage the sort.
The shuttle of the attribute IR "Select columns" have the ID "apexir_SHUTTLE_LEFT" or hidden columns and 'apexir_SHUTTLE_RIGHT' to the displayed columns.
The function that you create might look like:
var options = $('select#apexir_SHUTTLE_LEFT option'); var arr = options.map(function(_, o) { return { t: $(o).text(), v: o.value }; }).get(); arr.sort(function(o1, o2) { return o1.t > o2.t ? 1 : o1.t < o2.t ? -1 : 0; }); options.each(function(i, o) { o.value = arr[i].v; $(o).text(arr[i].t); }); var options = $('select#apexir_SHUTTLE_RIGHT option'); var arr = options.map(function(_, o) { return { t: $(o).text(), v: o.value }; }).get(); arr.sort(function(o1, o2) { return o1.t > o2.t ? 1 : o1.t < o2.t ? -1 : 0; }); options.each(function(i, o) { o.value = arr[i].v; $(o).text(arr[i].t); });
You need to find the right timing for dynamic action to run, I suppose the click on the button "Select columns" would do the trick.
Kind regards
Vincent
-
Interactive report, conditional display of the column binding
Hello
We have obligation to disable editing in case this field is 1 (1 = closed).
Is it possible to disable it on interactive report.
-case when status = 1 link in the column should be disabled (not visible) in order to prevent future changes on the payroll.
SELECT payroll_no, status
OF hr_payroll
ORDER BY payroll_no DESC;
I tried the link below, but it does not work in my case.
Oracle Database 11g Express Edition Release 11.2.0.2.0 - Production
Request Express 4.2.2.00.11
Thank you in advance,
Best regards, FM
Status of the INCIDENT WHEN 'ACTIVE' = then
'
OTHER END null deactivate_employee.Of
EMPLOYEES
What exactly is the error you get? What HTML is displayed in the HTML source code?
Just by looking at it, I would say that you need to remove the "/" before the f? p
Don't forget not this way could cause problems if you start using the checksum, then you might want to look at the use of APEX_UTIL. PREPARE_URL to create your URL.
-
Interactive report - new columns not displaying when you reset report
Hi all
I modified a report query interactive to display additional columns, but when you select Reset the report the additional columns are not displayed. I know that I can select them via the menu actions, then ssave the report like the one by default, but I was wondering if there is anyway to "clean" the report parameters to show them all by default anyway.
I use v 4.01.00.03 with no option to upgrade atm
Thanks in advance
Greg
OK, so I found the table - wwv_flow_worksheet_rpts where you can directly update the REPORT_COLUMNS column to view the columns of your choice by default.
Maybe you are looking for
-
Designjet 1050c Cutter do not operate.
I searched this forum for old cutter 1050/1055 related messages, but nothing has fixed the problem. Here's the background info... I fixed the plotter last summer and it has worked great until about 2 months ago. He plots fine, but will not cut the p
-
COMPATIBILITY WITH MAGIX AUDIO CLEANIC 17
Microsoft Web page says that Windows 7 is compatible with Magix Audio cleaning Lab 17. The latter is sold as compatible with Windows &. This shit does not work! Message says 'Microsoft Sound map waveform device cannot save this format'. I'm "usi
-
I have purchased a license but get box trial telling me to connect.
I had the trial version and decided to take on the monthly license based random, I get a dialog box saying the trial has expired and I need to access my account. I contacted the online chat support, they have charged several times and each time tell
-
I really have the problem that I can not restore with cuda...My system: 2 x Gigabty GeForce GTX 670 OC 2 GB. I7 3770 k. 12 GB of RAM. Windows 7 64 bitIf I chose the reading Mercury - GPU (CUDA) acceleration engine and I try to export the video my CPU
-
Pressure of the pen in PS CC 2014 with the Cintiq partner!
I downloaded PS CC 2014, because I was so happy about the new multitouch features on my companion of Cinitq of Wacom.But the new PS CC 2014 recognizes no pen pressure or other features of Wacom as tilt!It's terrible. I can't use PS atm.I've updated t