Interactive report based on the hidden column cell color
Hello
APEX 5.0.1 used here.
How can I set the color of a specific cell (or column) based on a hidden column?
Seems the link that I can't use the built-in feature because I need the custom color returned by my request.
I tried to set the color with javascript by iterate over each line, by taking the value. text() of the color column and value
This color-specific cell. It works, but it requires the column is visible.
A column containing a hexadecimal value of the color does not look good...
I tried to hide / display: no column complete but this messes up the layout.
THX
the force says:
APEX 5.0.1 used here.
How can I set the color of a specific cell (or column) based on a hidden column?
Seems the link that I can't use the built-in feature because I need the custom color returned by my request.
I tried to set the color with javascript by iterate over each line, by taking the value. text() of the color column and value
This color-specific cell. It works, but it requires the column is visible.
A column containing a hexadecimal value of the color does not look good...
I tried to hide / display: no column complete but this messes up the layout.
Specify the color of cell required using the hidden column and a data
attribute to the property Expression of HTML in the column:
#VISIBLE_COLUMN_ALIAS#
Apply a static ID of the visible column to serve as a selector, jQuery, and you can access the invisible color value in your JS code in dynamic action to run the JavaScript Code using the dataset
property.
Tags: Database
Similar Questions
-
Select a cell of interactive report based on another hidden cell
Greetings,
Someone know how to select a cell in an interactive report, based on the value of another cell in the same row and without this cell being shown?
The integrated highlight feature IR does not seem to allow me to highlight a cell based on the value of another cell (correct me if I'm wrong).
So I tried to go with a JavaScript solution, that I found in a thread somewhere on the forums of the APEX. I created a dynamic Action with this JavsScript code:
and it works perfectly when the column is displayed, but not when it is hidden (which makes perfect sense).$('[headers = "INTENSITE"]').each(function() { if ($(this).text() == 1) { $(this).siblings('[headers = "NOM_COMPLET_USAGER"]').css('background-color','red'); } });
So this is where I am stuck. The report has a lot of info, and I don't want to have a useless column projected and using precious space.
Any help would be appreciated.
Thank you
MathieuYou can try the following:
1. Add a column to your sql that contains the background for example color
SELECT
EmpNo,
Ename,
initialst,
Decode(INTENSITE,1,'red','white') background_color
Of
EMP;2. in the new updated interactive report background_color column is hidden.
3. Select the NOM_COMPLET_USAGER column and set the following parameters
Link text = > #NOM_COMPLET_USAGER #.
Link attributes = > style = "background-color: #BACKGROUND_COLOR; #
Target = > URL
URL = > #.I hope it helps
Shunt
-
Conditional display of interactive report based on the different SQL query
Hello
I have two drop-down list at the top of my page and below I have an interactive report.
Based on the selection of the user from the drop-down list values, interactive report should change based on different SQL queries.
Is it possible to have different SQL queries based on the drop-down list values and generate interactive report based on that?
Thank youHello
You can't have IR based on function returning the query as you can have classic report
But here is a workaround
http://www.oracleapplicationexpress.com/tutorials/71Kind regards
Jari -
Interactive report based on the view
Hello!
I just started to rewrite my apps of forms at the Apex.
Based on an existing view, I want to create an interactive report, but there is only the choice between 'Table' and 'SQL statement'.
Is it possible to use the view directly (not in a SQL ' select * view)?
Concerning
PietjaHello Pietja,
In my APEX env (3.2) an IR cannot be based on a SQL query. You can use the Query Builder to select a table or view, but still he ends with an SQL statement.
Greetings,
Roel
http://roelhartman.blogspot.com/
You can reward this response in marking it as useful or Correct ;-) -
Interactive report based on a Collection
Hi guys
Using Apex 3.2
I have a classic report based on a collection, which works very well.
I am now trying to create an interactive report based on the same query (collection), but no data is returned.
I there something special I need to do an interactive report.
See you soon
GusHello Gus,
First time when you create a report based on the collection ir, it does not include the columns in the display (don't know why)
pls select the correct answer to help others
Thank you
-
Updated interactive report based on shuttle Page
I am trying to create an interactive report based on the selected items in a shuttle service. On the page there is a page entitled P2_ITEMS element which is a shuttle service. It displays a list of items for the user to choose and returns the item_id, the primary key of the main table. I then an interactive report on the same page that displays data for the item_ids selected in the shuttle. I use the sql query below in my interactive report, but nothing shows up in my report. How can I get the interactive report to be updated when items are selected in the shuttle?
Select
a.date_loaded,
b.item_type,
c.Item,
a.info
point a, item_type_lookup b, item_name_lookup c,.
where instr (': ' |: P251_ITEMS |': ',' :'|| a.item_id |': ') > 0
and a.item_type_id = b.item_type_id
and a.item_name_id = c.item_name_id;
Hello
Please, install application example sample Dynamic Actions. There are exactly what you are looking for (side Server-online shuttle refresh).
Kind regards
Pavel
-
Interactive reports will change the order of columns
Hi all
Have experienced this for the 3rd time now. The other times I just create a new report with the request in the order you wish to fix. But it starts to become annoying now...
When I use the arrows to change the column order on my reports interactive nothing happens when running. The new order is saved and appears that way in design mode, but does not change the order on the report.
Please let me know if you know how to solve this problem, or if Miss me just something really obvious.
Thank you!
KHey,.
Changing the order in the attributes report is more an effect, since the default report parameters overwrite it.
If you want to change the order of the columns, you must go through the menu actions of the interactive report, then choose the column selection menu item, change the order and press ok.
Then save this order order by default, you go to the action menu again and choose save report option this time, select "primary" or "Save as default" depending on your version of apex (this option is available only if you are connected as a developer in the generator of the apex). Then press the ok button again.
Other users will only see the changes if they press the reset button on their version of empathy.
I hope this helps.
-
The column report based on the build option
Hello
is it possible to display a column of report based on the selected build options?
I can exclude the elements or even a full page by adding a compilation option, but I couldn't find any way to exclude a column of a report according to a compilation option (for example not displayed this column if the build option is xyz).
Any ideas?
Thank you
JochenJochen:
I have not tested, but creating a condition for the column based on the APEX_APPLICATION_BUILD_OPTIONS could provide a solution.
CITY
-
How to create a report based on the selection of a node of a tree
Hello
I am new to Oracle Apex and tried to build a tree and also an interactive report based on column empno from emp table.
I created a tree based on the emp table. Now, I want to see the records in the employee selected in the tree.
This is the query of the tree:
Select case when connect_by_isleaf = 1 then 0
When level = 1 then 1
of another-1
end the status,
level,
'ENAME' as the title,
NULL as an icon,
'EMPNO' as value,
NULL as ToolTip,
NULL as link
of ' #OWNER # '. " EMP.
Start by "MGR" is nothing
connect prior "EMPNO" = "MGR".
siblings arrested by 'ENAME '.
Can someone tell me step by step how to go from here?
I tried to follow the thread but could not understand a lot of it.The approach to reload the page and display the report is fairly simple.
- You start by creating a new page element that will be used to store the selected node ID, for example. P100_SELECTED_NODE (you can do atext element and change hidden once everything works as expected)
- Change the query of the tree and the link column in the SQL of tree definition to a link to the same
for example if your page is 100, you'd do the tree node a link to the same page but the value of the P100SELECTED_NODE with id_ of the node selected
This is done here
{message: id = 4410987}
In this case, it would be' f ? p = & APP_ID.: 100 :'|| : APP_SESSION |': P100_SELECTED_NODE :'|| EMPNO as link
Now when you click on a link to tree node, it would be back to the same page, but set the P100_SELECTED_NODE with the empno of the clicked node.
- All that's left to do, change your report so that it refers to the new point inorder to filter records for this employee empno i.e
SELECT ... .. WHERE empno= :P100_SELECTED_NODE
-
Interactive report - no research on all columns
Hello
I have following question:
I have an interactive report based on a query that contains a column that displays data and an image:
Example:
SELECT Col_a,
col_b,
col_c,
"< img src =" #WORKSPACE_IMAGES #small_image.png ">" col_img "
FROM my_table;
In my col_img column properties I put the 'view Type' to "Column of report Standard", it will display the image.
But when I search in my interactive report for example the small Word, it will display all of the columns there are on each line the small word (from my small_image.png).
I already tried to set in the properties of the column col_img ' allow users to:' everything off. It works I can't search only on the col_img column. So, it's ok.
But when I choose in the field of research for 'Search on all columns' it also research the col_img column, what I want.
Is there a solution for this problem?
THX,
DavyHello
I have not fully tested this, but you could test.
Go edit the column and set the condition type "ask!" = Expression 1"and for the Expression 1, enter APXWGT
Kind regards
Jari -
Report based on the result of the sorting function?
Dear all,
I will make this issue in general terms:
We have a report based on a query that reads data from a single table (P). It will take to provide a field more (X) in the report which is obtained using more than two tables (E, 1 m approx).
I wrote a function that produces this extra field based on a join of tables E and P1. Please note that this function depends on the report query variables. This output is correct and provides all the necessary information, but it is necessary to sort the report based on the result of this function, i.e. the value of field X.
Is this possible?
I appreciate your comments.
Note: I've tried incorporating pictures E, P1 in the request report (I can then sort on the required field) but gets reduced the number of lines in the report. This is because the join between the tables, P, E and P1 reduces the number of lines (which is not the correct result).
Yes, it is possible. If you have ended up above a formula column.
Create the formula column. For example, CF_SALARY_TOTAL. Place a level to the top of the query and set your desired sort (Asc/Desc)
Hope this helps
Hamid
-
How to create a report based on the item selected from the list of selection?
Hello
I created a tables_LOV based on:
Select table_name table_name user_tab_cols r, d
where column_name like '% _type % '.
Then I created a ListOfTables page element, display in a selection list and pointing to tables_LOV.
I run the page, and I can choose the table I want in the drop-down list.
How to create a report based on the selected element? (ex: select * from selected_table)
Thanks in advance
Salah
Hi Salah,
Allright, take a look at this page: http://apex.oracle.com/pls/apex/f?p=vincentdeelen:collection_report
I think that simulates what you are trying to accomplish. I've implemented the simplest method I could think of.
The report is based on a collection of apex. If you are not familiar with this, you should study the documentation: APEX_COLLECTION
To recreate my example, you should:
(1) create a report (interactive) on your collection
SELECT * FROM APEX_collections WHERE collection_name = 'MY_COLLECTION'
(2) create a selection list page_item for the tables that you want to display (in my case, this is called "P38_TABLES")
(3) create a dynamic action that triggers on the evolution of your selection list page_item. Dynamic action must be a parade of PL/SQL procedure the following code:
declare l_query varchar2(4000); begin l_query := 'select * from '||:P38_TABLES; if apex_collection.collection_exists ( p_collection_name => 'MY_COLLECTION' ) then apex_collection.delete_collection ( p_collection_name => 'MY_COLLECTION' ); end if; apex_collection.create_collection_from_query ( p_collection_name => 'MY_COLLECTION' , p_query => l_query ); end;
Make sure that you add your page_item 'Page to send items' section.
(4) add a real extra action that makes an update of the report area.
Here are two photos describing the da:
http://www.vincentdeelen.com/images/OTN/OTN_COLLECTION_REPORT_DA1.PNG
http://www.vincentdeelen.com/images/OTN/OTN_COLLECTION_REPORT_DA2.PNG
Good luck and greetings,
Vincent
-
link to an interactive report AND apply the filter for 2 items.
Hi can you help me out here on how to create a link to an interactive report AND apply the filter for 2 items.
Here is my code
I have a list of table, clicking the selected item should link to interactive report and create the filter. Below the code does not work for a filter. can you help me what to do with 2 filters.
A filter = > works very well
sys. HTP.p ("< ul class =" uChartList"> ');
sys. HTP.p ("< class li =" uNumber uGrid col_2 col_sart"> ');
sys. HTP.p ("< a href =" "|") sys. HTF.escape_sc ('f? p ='|: APP_ID |': 0 0 :'||: APP_SESSION |':00:P00_XXX:000, RIR:IREQ_XXX:Test :') |) » » >') ;
sys. HTP.p ("< class =" uValue"> ' | l_tester |) ("< / big >");
sys. HTP.p ("< small class =" uLabel"> < /small > Tester ');
sys. HTP.p ("< /a > '");
sys. HTP.p ("< /li >" ");
Scenario 2:
Two filters = > does not
sys. HTP.p ("< ul class =" uChartList"> ');
sys. HTP.p ("< class li =" uNumber uGrid col_2 col_sart"> ');
sys. HTP.p ("< a href =" "|") sys. HTF.escape_sc ('f? p ='|: APP_ID |': 0 0 :'||: APP_SESSION |':00:P00_XXX:000, RIR:IREQ_XXX:Test:P00_YYY:001:IRC_YYY:test2 :') |) » » >') ;
sys. HTP.p ("< class =" uValue"> ' | l_tester |) ("< / big >");
sys. HTP.p ("< small class =" uLabel"> < /small > Tester ');
sys. HTP.p ("< /a > '");
sys. HTP.p ("< /li >" ");
Thanks in advance
actually the syntax wrong values in the syntax of the passes to several elements.
is
f? p = 6000:6004: & APP_SESSION. : NO:6003:MY_ITEM1, MY_ITEM2, MY_ITEM3:1234, 5678
Use above scenario and verification.
Go
-
The hidden column dimensions are break Internet Explorer on the client
Hello
We have an implementation on a customer system 11. We had to hide some dimensions of the column in some of web forms. Every time that the clients connect and try to open these types of forms where there is the hidden column dimensions, process internet explore in the customer hits the use of 50% and never to open the form. More interesting still, process continues to run even if we stop planning and essbase servers. I tried the same on the two planning 11.1.1.1 and 11.1.1.2 and unfortunately the results are the same. I would be very surprised if I'm the only one facing this problem. Otherwise I have to miss a few essential adjustments to bring.
Thanks in advance & Best looks,
AlpI just got an additional update for the SR, I logged with Oracle. looks like a bug, here's what the analyst:
"Thank you for your update... On further research on your case, I replicated the issue at my end as well and found the same problem...
When I found this question in order to be logged as a BUG and our development team worked on this...
I enclose this SR this BUG... »
Will update with something else I hear...
Out DQ
-
Rows based on the timestamp column
Hi Experts
I'm trying to get the last 3 records based on the timestamp column. But I am not able to understand where I should start... ?
To make it more clear
I have the following data
I want toid date 1 07/03/09 3:57:55.000000 PM 2 08/03/09 9:23:55.000000 PM 3 05/03/09 7:53:55.000000 PM 4 08/03/09 5:41:55.000000 PM 5 06/03/09 8:50:55.000000 PM
Thanks and greetings2 08/03/09 9:23:55.000000 PM 4 08/03/09 5:41:55.000000 PM 1 07/03/09 3:57:55.000000 PM
Saurabh Sharmaselect * from ( select * from x order by dt desc ) where rownum <= 3
Published by: Alex Nuijten on March 10, 2009 11:31
Maybe you are looking for
-
I downloaded "Big-Button" (Win7) hate it. How can I delete?
This new 'upgrade' seems to be a little buggy. I have no icon in the bar 'Add-on' to remove the 'big button' to the bottom of the load. It takes too much space on the desktop, I need to remove it. Add-ons only I can see through the button Manager add
-
(Can single or multiple iMovie library I get your help on that)?
I do 7 minute short videos on YouTube/Facebook... And I want to do a lot every week. I am concerned about the backup "bloat". Library files can become very large. And if they get corrupted, I'm toast. So I thought, "why not create a new iMovie for ea
-
Hello Recently I happened to use Labview drivers of NewPort (ESP301) and Lakeshore (Lsci218) and I encountered the same problem of "time out" every time that a Subvi driver called VISA Read.vi for serial communication. I first thought has problems wi
-
Failed to start after removing malicious software
After removal of security 360 (Chinese malware) through Malwarebytes, was invited to restart the computer. However the computer (Vista) could not start start and crashes to the homepage with the circle goes round & round nonstop. Only be able to star
-
OfficeJet 6500 e709n availability of software for Win 7 wireless
I write here because I've already tried the technical support and has received virtually no response. I would like to know when I can expect full features software for my printer. I don't want to hear that I can use the driver in windows 7, because i