MSS - selection list in Reporting Tool
Hi experts,
I've designed two orgview groups and two report categories for Reporting Tool of MSS. I would like to display each orgview respectively depending on the category of the report I select.
I know the portal calls the FM HRWPC_RFC_OADP_GET_ORGVIEWGRP to create orgview, but have no idea how should I enhance or modify the FM. Any idea? Thanks.
Regards,
Shane
Hi,
Can you give more details pl?
Srini
Similar Messages
-
Dynamic select list in report based on other report column
I have a report with three columns. The first column is the Id, the second is the name that matches the Id. In the third column I would
like to have a list of values that are dependant on the Id in the first column.
This is the query I have.
SELECT c.category_id,
c.category_name,
APEX_ITEM.SELECT_LIST_FROM_QUERY(3, NULL,
'SELECT option_name, option_id
FROM invmodel_category_option
WHERE category_id = APEX_APPLICATION.G_F01('||rownum||')') AS options
FROM invmodel_model m,
invmodel_category c
WHERE m.model_id = :P2_MODEL_ID
This doesn't give any error, but I do not get any select list.
I have tried various other ways to reference the category_id within the APEX_ITEM function, including:
WHERE category_id = c.category_id (c.category_id is an invalid identifier)
WHERE category_id = ''#CATEGORY_ID#''' (number error)
As an example what I would like to see is
Id Name Options
1 Fruit Banana, Apple, Orange
2 Vegetable Carrot, Potato, Onion
Can anyone please tell me if this can be done, and how.
ThanksThis can be done if you follow this example:
http://apex.oracle.com/pls/otn/f?p=31517:176
Denes Kubicek
http://deneskubicek.blogspot.com/
http://www.opal-consulting.de/training
http://htmldb.oracle.com/pls/otn/f?p=31517:1
------------------------------------------------------------------- -
Select list in report region.Everything is not in order...
I want to have a select item in a report region. The selected item in de select list is the "master" for the records in the region. It was working fine but after dropping another region on the same page the select list is now shown beneath the report instead of on top of the report. I can't find a way to get it back on top.
As a matter of fact I can't find any attribute that determines what comes first in this situation. Is it bad practise to use a item in a report region?Thanks, that's it.
Because I wanted this region to be above two other regions I moved it to page template 2. I did not notice the "items below/items above region content". I guess I need to create a page template region 2 items above content. -
Position of select list on report
Sometime when I add a select list to a report region, it will appear at the top of the report. However, when I do it to another report, it appears at the bottom.
Anyone have any ideas about this strange behavior?
By the way, I did change the sequence of the drop down to before the report sequence, but it didn't have any effect.I would take a look at the Region that you selected the item be placed in. There are all different choices of where to display a region item if you look. There are two choices. One of the choices is to display an item in the region and the other is to display an item among this regions theme or something. I can't remember for sure but you will find your answer in the region definition.
-
Dynamic Select List in Reports
Hi,
I have come across solutions to implement dynamic Select Lists. But can the same be implemented in a report.
I have a report of 2 columns which are select lists. The Value of one depends of the other.
Can this be done?
Thanks in AdvanceHi Abdullah,
Thanks for the Tip. However, couple of queries.
1) The first modification involves changing the query to : select lov_pkg.savekey() , colA, colB, ... But the function savekey takes a value.
Ideally, I need this function to be called while loading and when the first select list is changed. How can this be done.
2) Also, To make this change in query, I had to use (Use Generic Column Names (parse query at runtime only)) option. Now my Add Row button doesnt work? Can you tell me how that can be customized.
Thanks,
Sunil -
Dynamic lov, Select List in Report
Hi all,
I have searched the APEX forum for dynamic lov but somehow no topic could really solve my problem.
I have a report and 2 columns in this report are displayed as a select list. I want one of the select list show some values depending on the other select list in this report. If the value of the first select list is equal to some data the second select list should show a lov and otherwise nothing.
All examples i have found so far seem to explain a solution for a select list item on the page and not for a select list in a report like in my case.
Are there any advices or some links you can give?
Thanks in advance
MarkusSee http://htmldb.oracle.com/pls/otn/f?p=18326:54:1415328128204513::::P54_ID:1282
and http://forums.oracle.com/forums/thread.jspa?messageID=1222153� -
Object Slection in Reporting tool of MSS
Hi,
We have ECC 6.0 Ehp4 and we are using HIS Reporting tool to display the HR data reports in portal in the form of lists.
In Portal the path to these reports is My Staff Manager--> Report(in second level Navigation) then it will display reporting iview table which contains list of reports.
This Report page contains 3 steps. 1) Select Report, 2) Define selection criteria, 3) Report Results.
In Define selection criteria section we have drop down called Object selection, this dropdown contains options like directly subordinated employees, Reporting structure, Employee by org Unit etc..
Now our requirement is we need to add 2 more new options to this drop down. Can anyone please let me know how we can achieve this? Is this something we need to achieve via backend configuartion or is there something needs to be done on the portal?
Awaiting reply.
ThanksIssue resolved
-
Report -- filter with selection list -- show all values after select page
Hello!
I have the following problem:
- I have a report
- this report can be filtered with a selection-list
- the selection list is based on dynamic LOV and has a null-value
- I added the code of the report the following, to filter the report after choosing a value of the selection list:
... and (instr(type, decode(:P8_FILTER_type, '%null%',type,:P8_FILTER_type)) > 0)
This works very well.
But my problem is: When the user logs out and the next time, he logs in, the selection list shows " --- show all values --- " (my null-display-value) and the report is empty "no values found".
---> I want to show the first time, the page is selected ALL the values of the report. (this is now only possile if I press the button which belongs to the selection list)
I hope, somebody understands my problem.
Thank you so much,
LISAHello Lisa,
The first time it's probably NULL.
So what you can do in your where: (instr(type, decode(NVL(:P8_FILTER_type,'%null%'), '%null%',type,:P8_FILTER_type)) > 0)
Off topic: I also wonder if that where clause can't be simpler? Do you rely need the instr?
Regards,
Dimitri
http://dgielis.blogspot.com/
http://www.apex-evangelists.com/
http://www.apexblogs.info/ -
Refresh PL/SQL Report Region (not Page) using Select List value
Hi,
I've got a report region based on a 'PL/SQL function body returning a SQL query'which gets generated on selecting a value from a Select list item, The Select List action is 'Redirect and Set value' but this causes the whole page to refresh rather than just the report region. I've tried to refresh the report only using a dynamic action on the Select List item (Action now reset to 'None') but now the report is not appearing on choosing from the List. Can anyone suggest a solution that will allow me to refresh this report without refreshing the page? I am using APEX 4.2.2 and the report syntax is as follows:
DECLARE
v_statement VARCHAR2(500);
BEGIN
SELECT query_text
INTO v_statement
FROM sql_queries
WHERE query_id = :P2_QUERY ;
RETURN v_statement ;
END ;
where P2_QUERY is Select List Item,
regards,
Kevin.KevinFitz wrote:
The report region being displayed is conditional on P2_QUERY item being NOT NULL. I assume the region not appearing is because the Action for the Select List Item is set to None and so P2_QUERY is always NULL.
No, the region is not appearing because it is conditional on P2_QUERY being NOT NULL. This means that the report region never exists on the page shown in the browser, so it can't be dynamically refreshed. (Dynamic refresh doesn't evaluate region conditions, and it only re-renders the report content, not the entire region.)
Remove the condition on the report region, check the refresh is working, then reconsider exactly what the requirements here are. If you want the region to appear only when P2_QUERY has a value, and you want it to be refreshed without submitting and re-rendering the page, then the region needs to be hidden rather than conditionally rendered, and shown via a dynamic action when P2_QUERY gets a value.
I tried adding an additional Set Value True Action for the DA event but got an error as listed above,
All irrelevant if Page Items to Submit on the region is used properly. -
Dynamic Action based on Interactive Report Select List Value
I'd like to perform a Dynamic Action when a user selects one of 3 options from a Select List within an Interactive Report:
select APEX_ITEM.SELECT_LIST(
p_idx => 3,
--p_value => deptno,
p_list_values => 'Copy;Copy,Delete;Delete,Export to PDF;Export to PDF',
--p_attributes => 'style="color:red;"',
p_show_null => 'YES',
p_null_value => NULL,
p_null_text => '--Select--',
--p_item_id => 'f03_#ROWNUM#',
p_item_id => 'P6_IR_SELECT_LIST',
p_item_label => 'Label for f03_#ROWNUM#',
p_show_extra => 'YES') "Actions"
from dual;
When building the Dynamic Action, I chose the following values from the Advanced wizard
Event: Select
Selection Type: DOM Object
DOM Object: P6_IR_SELECT_LIST
Condition: Equal to
Value: "Delete"
True Action: Execute Javascript Code: Alert('Here');
Doesn't seem to be firing...can anyone help?
Thanks in advance,
JohnHi,
I am not sure if the "equal to" condition applies to a DOM object... after all, a DOM object can be anything (any HTML element) not only a field.
Try using a javascript expression instead, like this:
$v('P6_IR_SELECT_LIST')=='Delete'UPDATE: Sorry, I just tested and "equal to" condition works for DOM objects... should have tested before posting!
Luis
Edited by: Luis Cabral on Feb 29, 2012 4:45 PM -
Help with Select Lists in Classic Report
Hello,
I working with APEX 4.1. Oracle 11.
I have a simple classic report with 4 columns (Username, Role, Read, Update). The Read and Update columns are Select Lists with values of "Yes", "No".
Report looks like this:
Username Role Read Update
JSmith Admin Yes Yes
LJones Dev Yes No
My requirement, is that when a user selects Yes from the Update select list, the value of the associated Read column needs to change to Yes as well for that particular Username. The change has to occur upon selection of Yes from the Update select list.
Im not very strong with javascript, but for testing purposes I applied: onchange="alert('hi');" on the Update column. When I make a change to the Update select list, the alert does pop up.
Can anyone suggest how I can implement the change to the associated Read value of Yes if the Update value chosen is Yes, for that particular row.
Thank you,
LauraLauraK wrote:
I working with APEX 4.1. Oracle 11.
I have a simple classic report with 4 columns (Username, Role, Read, Update). The Read and Update columns are Select Lists with values of "Yes", "No".
Report looks like this:
Username Role Read Update
JSmith Admin Yes Yes
LJones Dev Yes No
My requirement, is that when a user selects Yes from the Update select list, the value of the associated Read column needs to change to Yes as well for that particular Username. The change has to occur upon selection of Yes from the Update select list.
Im not very strong with javascript, but for testing purposes I applied: onchange="alert('hi');" on the Update column. When I make a change to the Update select list, the alert does pop up.
Can anyone suggest how I can implement the change to the associated Read value of Yes if the Update value chosen is Yes, for that particular row.Should be possible to do this using a Dynamic Action without writing any (or much) JavaScript. The complexity in this case is that you're using items in a report rather than standard page items. -
Report with select list and link to call another report
Hi,
I am trying to do 2 reports (REPORT1 and REPORT2).
The first is a summary report (REPORT1).
This report will display sales figures for the year. Now, I need to have a select list in the result set that will have 2 options, depending on which option is chosen, I want to call REPORT2 with the select list as a parameter. How can I do this ?
Let me try to explain what I did.
I created REPORT1 on Page 100
SELECT YEAR, sum(YTD_SALES), APEX_ITEM.SELECT_LIST(1,'DEPARTMENT','Department;DEPARTMENT,Division;DIVISION') Drilldown FROM SALES_ANALYSIS WHERE YEAR > 2000
GROUP BY YEAR ORDER BY YEAR
I created 2 hidden items namely P100_YEAR and P100_DRILLDOWN
I also made the column YEAR as a link and specified both P100_YEAR and P100_DRILLDOWN as parameters to be passed.
Next, I created REPORT2
SELECT YEAR, DECODE(:P100_DRILLDOWN, 'Department', department, 'Division', Division) dept_div, sum(YTD_SALES) ytd_sales
FROM SALES_ANALYSIS
WHERE YEAR = :P100_YEAR
When I run Report 1, it's fine, when I choose either Department or Division from the Select List and click on the link to call Report 2, report 2 is displayed, but the value being passed for P100_DRILLDOWN is not correct and as a result, I am unable to get correct results for Report 2
Am I missing something ? Are there any alternate ways to do what I'm doing ?
Thanks,
AshokHi Ashok,
The link definition will not know the value selected in the list as it is constructed only when the page is being rendered. You would need to create some javascript to handle this. I've done that here: [http://apex.oracle.com/pls/otn/f?p=267:182]
The link on the EMPNO column has been defined in the HTML Expression setting for the column instead of the Link section. The HTML Expression that I have used is:
<a href="#" onclick="javascript:doDrilldown('#EMPNO#',this);">#EMPNO#</a>And, in the page's HTML Header setting, I have added in:
<script type="text/javascript">
function doDrilldown(empno,group)
var g;
var p = group.parentNode;
while (p.tagName != "TR")
p = p.parentNode;
var x = p.getElementsByTagName("SELECT");
if (x.length > 0)
g = x[0].value;
var url = "f?p=&APP_ID.:183:&SESSION.::::P183_EMPNO,P183_GROUP:" + empno + "," + g;
document.location.href = url;
</script>When a link is clicked, the doDrilldown function is called passing in the EMPNO value and the "this" object (which identifies the object triggering the call). The function starts from that object and goes up in the HTML tag tree to the nearest TR tag (the row tag that the link is on) and then finds the first SELECT list item on the row and gets its value. It then constructs a URL using this and the EMPNO value and performs a redirect to the second page (page 183 in this example).
Andy -
Report displayed based on Select List condition
Hello,
Any help would be appreciated.
I have a report and a select list, P55_MISSING. The select list contains the column names in the table that the report displays.
If I select one of the column names, I would like to display all records where that column name is null.
The sql I have at the moment is:
select
"ID",
"APPLICATION",
"SHORT_DESCRIPTION",
"DESCRIPTION",
"OPC_NET_NAMES",
"PROCESSING_SCHEDULE",
"PROCESSING_REGULARITY",
"PLATFORMS_INVOLVED",
"UNIX_DIRECTORIES",
"SOURCE_FILES",
from "APP_METADATA"
where :P55_MISSING IS NULL
If I select 'source files' for example, I would expect to see 3 out of 4 records stored in the table. However, I receive the message 'no data found'.
Any help would be great. Thank you.Hi
In order to doe this you will have to use dynamic sql (so you have to change your report type to 'SQL Query (PL/SQL Function Body Returning SQL Query)').
It would then look something like this...
DECLARE
l_sql VARCHAR2(32767);
BEGIN
l_sql := 'SELECT id,
application,
short_description,
description,
opc_net_names,
processing_schedule,
processing_regularity,
platforms_involved,
unix_directories,
source_file
FROM app_metadata
WHERE ';
l_sql := l_sql||:P55_MISSING||' IS NULL';
RETURN l_sql;
END;Sorry, I can't test this as I don't have your tables.
Cheers
Ben -
How to create a report based on selected item from Select list?
Hi,
I have created a tables_LOV based on:
select table_name d, table_name r from user_tab_cols
where column_name like '%_type%'
Then I created a page item ListOfTables, Display as select list and pointing to tables_LOV.
I run the page, and i can select the table i want from the drop down list.
How to create a report based on the selected item? (ex: select * from selected_table)
many thanks in advance
SalahHi Salah,
Allright, have a look at this page: http://apex.oracle.com/pls/apex/f?p=vincentdeelen:collection_report
I think that simulates what you're trying to accomplish. I've set up the simplest method I could think of.
The report is based on an apex collection. If you are not familiar with that, you should study the documentation: APEX_COLLECTION
To recreate my example you should:
1) create an (interactive) report on your collection
SELECT *
FROM APEX_collections
WHERE collection_name = 'MY_COLLECTION'
2) create a page_item select list for the tables you want to display (in my case this is called "P38_TABLES" )
3) create a dynamic action that triggers on change of your select list page_item. The dynamic action must be a PL/SQL procedure perfoming 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 you add your page_item to the "Page Items to Submit" section.
4) Add an extra true action that does a refresh of the report region.
Here are two pictures 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 regards,
Vincent
http://vincentdeelen.blogspot.com -
How can i display Value in Report which i select from Multiple select list
Dear All,
i am using multiple select List in form with report page.
When i create new Entry with select Multiple value in Multiple Select List then in report Value display me in below format
my SQL Query are
select NAME D, CODE R from COUNTRY_MAS WHERE ACTIVE_FLG ='Y' order by NAME
AS:AI:AG:AM these are return value .i want to display NAME in report .
How can i do this ?
Thanks
Edited by: Vedant on Apr 25, 2012 11:14 PMShort answer, use the apex_util.string_to_table to convert to a table; then you can either iterate through the table to generate a string of names, or accomplish the same with a bulk operation.
http://docs.oracle.com/cd/E23903_01/doc/doc.41/e21676/apex_util.htm#CHDFEEJD
Encapsulate all this within a pl/sql function.
Maybe you are looking for
-
How can i talk or chat with a person/
How can I talk or chat with a person?
-
Compressor 3.5 - Frame Controls Different!
Anyone else that has used frame controls on their presets notice that the new version is much different? I am compressing HD source to MPEG2 for SD-DVD. I have always used FRAME CONTROLS in my presets because of the beautiful quality that I was able
-
Mail command keystroke deleted or moved items
I was trying to use the keystroke command in Lion's mail to hide my favorites bar when I accidentally used the wrong keystroke and it moved or deleted the items but I can't find them. The keystroke I used was Command Option Control H Does anyone
-
Effects panel in premier pro cc is their a way to retrieve it ?:D
see question above
-
How to choose a mortgage lender?
My co-borrower and I have already received pre-approval through a Century 21 broker, but as we get closer to finding a house I'm wondering how to select a lender that will provide the best deal. We both have excellent credit (him 810, me 798...pulle