Conditional display of interactive report based on the different SQL query
HelloI 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 you
Hello
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/71
Kind regards
Jari
Tags: Database
Similar Questions
-
Conditional display for interactive report columns
The APEX 4, one of the options in the conditional displays for the columns was 'PL/SQL function body returning Boolean ". I had a function that returns a Boolean value, and I stuck my function call in the text like this:
return DISPLAY_FIELD (: APP_USER( )
"I don't see" ""PL/SQL function body returning Boolean " option 5 APEX. What should I use to call the same function to hide and show the column in the report?
bobmagan wrote:
Thank you. Using PL/SQL Expression will give best performance? Some of my reports have 80 + items, which must undergo this check.
Probably not what you have seen. Have less well.
And if I use PL/SQl Expression, what is the syntax I need?
this:
DISPLAY_FIELD(:APP_USER) = TRUE
For functions that return a Boolean value, just use the function call:
display_field(:app_user)
-
Selective display of a report based on the value of a Variable of presentation
Hello
Is it possible to selectively display a report on a dashboard page based on the value of a variable presentation.
I have 5 reports that are part of the same page that has a page with 5 options-level prompt.
According to the option selected in the command prompt that the value is stored in a variable of the presentation, I need only 4 reports to view at any time (ie 1 report should NOT be directed).
Example: -.
When Option 1 is selected 1,2,3,4 reports must be posted
When Option 2 is selected 2,3,4,5 reports must be posted
Thanks in advanceHello
Search this Guided Navigation forum. In this way, you can hide a section on your dashboard based on the results of a report that is "hidden".
Good luck
Daan Bakboord
-
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 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. -
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
-
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
-
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
-
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
-
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
-
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
-
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
-
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
-
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.
-
edit interactive report based on APP_USER link conditional
I have a users table with standard information, including a user_id column which is what is used by my access control page to connect. I have a screen of user management with an interactive report I want everyone to see all users, but I want only the link modify to display the line that represents the user who is logged on. I know there is a conditional parameter on the link change, and I tried to develop in exp1 = exp2, with & APP_USER. exp1 and exp2 user_id, but who do not seem to work. Any other ideas, or I'm doing something wrong with the way I tried to make it work?HI -.
It really bothers me, this forum has a problem with the code examples, so for a while at least I posted quick example on Google:
[Conditional column | http://docs.google.com/Doc?id=dd2tkvv6_212dbzw2ftq]
Not to complicate too much, but if you want without empty column except a line, you could of course apply this trick to the column that contains actually the user name in your table... in other words, the user can right click on their name to go to the Edit screen, but any other name user, but they would not be a hyperlink. But it is as they say an exercise for the reader :)
Good luck.
Maybe you are looking for
-
I don't know what to do! Tell me what you need more information
-
I don't want to go to earn 10 - I've heard too many problems. I'm ready to upgrade to win 8 or 8.1 if it means I get a legitimate copy of windows See more of Diagnostic report. Diagnostic report (1.9.0027.0): ----------------------------------------
-
Files queued will be not print
Windows 7 The printer is hardwired. I just moved. Printer was on wifi, but now it is wired. Printer series HP Photosmart Prem 310 - use offline It is what I see and then the 2 files in my queue. I click Restart click file nothing happens. I'm sure it
-
Data Push causes phone vibrate and red light flashes
Hello, I noticed that the data push, in our case to the application of the ECL, causes the phone vibrates if the vibration is turned on and the red light blinks for about 15 minutes or more. I was wondering if there was a way to prevent this, either
-
Queries Smartphones Rogers Blackberry Bold blackBerry - wireless and data Plan-
I talked to people at Rogers and have seen various posts, and I am VERY confused. Currently, I have a new Blackberry "BOLD" (since 12/14/08) with a data plan. Issues related to the: (1) if I'm on Wifi (checked under managed connections - service stat