How to create a report based on the selection of a node of a tree
HelloI 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.
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.
SELECT ...
..
WHERE empno= :P100_SELECTED_NODE
Tags: Database
Similar Questions
-
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 document based on the name of a file in the file system?
Hello
With lots of photos, I like to have a database to collect information on these photos.
First question is how to generate a record based on a file in the file system?
for example, the images are "c:\fotos\2009\01\disc_001.jpg" to "c:\foto\2009\01\dis_98.jpg".
now, I want to create folders with as one of the attributes of the name of the image (not the image itself). How to create these records (based on information from line-telephony). that is the number of records must be the same as the number of photos.
any suggestions?
any response will be appreciated.
LeoLink to create the directory
http://www.adp-GmbH.ch/ora/SQL/create_directory.html
You can create a list of files in the directory and read the list of files in this directory.
[Documentation UTL_FILE | http://download.oracle.com/docs/cd/B14117_01/appdev.101/b10802/u_file.htm#996728]
[Solution using Java | http://asktom.oracle.com/pls/asktom/f?p=100:11:0:P11_QUESTION_ID:439619916584]
SS
-
Hi all
Suppose I have table, whose structure changes frequently on a daily basis.
For example. / / desc my_table gives you after the name of the column the day 1
SQL > my_table DESC;
Output
Name
Age
Phone
Day 2, two other columns are added, viz, address and salary.
SQL > my_table DESC;
Output
Name
Age
Phone
Address
Salary
Now, I want to create a Dynnamic RTF report which made extracting data from all columns from my_table daily. For this, I have defined a simultaneous program with XML output type and include in annex a data/definition of data model that takes XML as input and gives the final result of the conc program in EXCEL layout. I am able to do that for a constant number of columns, but don't know how to do it when the number of columns to display dynamically changes.
For 1 day my XML file should be like this.
<?xml version="1.0" encoding="UTF-8"?> <dataTemplate name="XYZ" description="iExpenses Report" Version="1.0"> <dataQuery> <sqlStatement name="Q2"> <![CDATA[ SELECT Name ,Age ,Phone FROM my_table ]]> </sqlStatement> </dataQuery> <dataStructure> <group name="G_my_table" source="Q2"> <element name="Name" value="Name" /> <element name="Age" value="Age" /> <element name="Phone" value="Phone" /> </group> </dataStructure> </dataTemplate>
And my day 1, EXCEL output RTF model should be like this.
Name age phoneSwapnill 23 12345
For 2 days my XML file should be like this. With 2 new columns selected in the SELECT clause.
<?xml version="1.0" encoding="UTF-8"?> <dataTemplate name="XYZ" description="iExpenses Report" Version="1.0"> <dataQuery> <sqlStatement name="Q2"> <![CDATA[ SELECT Name ,Age ,Phone ,Address ,Salary FROM my_table ]]> </sqlStatement> </dataQuery> <dataStructure> <group name="G_my_table" source="Q2"> <element name="Name" value="Name" /> <element name="Age" value="Age" /> <element name="Phone" value="Phone" /> <element name="Address" value="Address" /> <element name="Salary" value="Salary" /> </group> </dataStructure> </dataTemplate>
And my day 2, exit EXCEL model RTF should be like this.
Name address telephone pay23 12345 Madrid 100000 Swapnill
Now, I don't know below things.
- Make the dynamic XML as we did in the day 1 there are 3 columns in the SELECT statement and the day 2, 5 columns. I want to create a dynamic XML which must not be changed if the new columns are added into my_table. I don't know how to create this query and also create their corresponding items below.
- Make the RTF model dyanamic as day 1 there are 3 exit EXCEL columns and the day 2, 5 columns. I want to create a dynamic RTF model that would display all the columns selected in XML dynamic. I don't know how the RTF will create new XML tags and how it will know where to place them in the report. Means, I can create model RTF day 1, by loading the XML data for 3 columns and place 3 tags XML in the model. But how he will create and place the tags for the new columns the day 2?
Hope so, you got my requirement, it's difficult. Please let me know how I can implement the necessary solution using the RTF dynamically without any manual intervention.
Kind regards
Patricia K.
Post edited by: SwapnilK
Hi guys,.
I was able to solve above the requirement.
I created a procedure that would create & update (attached to the data definition) XML file dynamically for each race. This dynamic XML contains the SQL statement for the data query that is built dynamically. I am updating this XML file using XDOLoader utility to the definition of data. Then run my program customized to generate the excel output.
Exit excel retrieves correct number of columns dynamically (3 on Day1 and Day2 5), with corresponding data records.
Kind regards
Patricia K.
-
Create a report based on the Emails in folders
Our emails are stored in specific folders depending on which group is the application or through electronic mail. I have a group that wants to e-mail, daily/weekly reports for all their emails, but I don't have the bandwidth to collect and provide the information manually. I am creating a report, will include e-mails from "their case" in E10, but I do not think that this is possible. Anyone know or have a method they use?
I have daily and weekly reports that are generated with these data for all emails that we send, but I don't want to share these reports because it's WAY too much information.
Thanks for the help!
Drewann
Big question, drewannp... Unfortunately, file-based reporting is not available. Exist records for purposes of organization; If you have your emails carefully sorted in E-mail groups, you can run reports on this... but nothing for file-based. Sorry!
-
the detailed report based on the selected value
Hello experts,
I use 10g obiee.
I have a requirement were on the dashboard there are 4 guests say product, region, year, color.
All are select muli-value prompt.
on the dashboard, there is a synthesis report that reflects the value according to the selected data from the command prompt. His work so far.
Now below the customer wants a link that has the title of 'detailed report '. When they click the hyperlink, they want to see detailed but it show only the values selected in the command prompt.
They claim as detail as there are more number of columns found in the report detail than the summary report following.
Can we can suggest me how to achieve in 10g.
Thanks a lot for your help.Hello
Just add your detailed report to the dashboard as a link or an Image and keep the required columns, you are invited into the report. It should work.
Thank you
Gerard -
publish a report based on the selection of the radio button.
Hello
Any1 can help me on the below scenario?
I have a dashboard command prompt that contains criteria below.
Date of beginning of end and two boxes button (A, B) - what are created using 'variable prompt' and there are two reports (Report_A, Report_B).
Cond1: Report_A should open if I select the option button "A".
Cond2: Report_B should open if I select the option button 'B '.
Thanks in advance!Hello
keep report_A in separate section and Report_B in a separate section and apply condition of the article on him passing the variable presentation. so when the user select an option then only Report_A button is displayed.
Follow this link to reach the requirement.
http://Shahin-OBIEE.blogspot.in/2012/04/switching-between-multiple-reports-in.html
Select this option if useful/correct.
Thank you
-
Refresh the report based on the select list item
Hello world
Someone has the answer to refresh a report based on an element that I select in a select list? I currently have the item in the list of selection and a report under him I wrote a sql that fills with data. If I choose an article in my select list, I want to change the data in my report. What I have to write separate sqls for each item to be fired or write some type of process. Can someone help me?
Thank you
RyanWrite directly in the SQL report. Your select list item will be the variable in the SQL.
-
Change the report based on the selected value frm the prompt
Hello
I have a requirement where we invite dashboard that has three columns namely year, month, and report the name.
The user will choose the name at the prompt report, once made the report that was selected should appear
on the dashboard page and he should be able to select the data on the basis of the month and the year of it.
Also, if the user wants to go to the other report it should be able to select in the guest and view it.
Pls enlighten us on the way of progress on this issue. From now on, think that if something like this is possible, then it would definitley
need two prompts a report name and one for the month and the year.
THX :)Are you looking for this?
http://oraclebizint.WordPress.com/2008/01/17/Oracle-BI-101332-selecting-reports-from-Dashboard-prompts-and-guided-navigation-sections/
-
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
-
APEX4: How to create a report whose data are based on the date of entry of the user fields
With the help of 4 Apex I create a report that allows the user to enter two dates and displays a report between the date range.
How can I do this?
Thank you.Go to Actions > filter in your IR and ther, you can create several conditions to filter your report.
Denes Kubicek
-------------------------------------------------------------------
http://deneskubicek.blogspot.com/
http://www.Opal-consulting.de/training
http://Apex.Oracle.com/pls/OTN/f?p=31517:1
http://www.Amazon.de/Oracle-Apex-XE-Praxis/DP/3826655494
------------------------------------------------------------------- -
Report based on the return values from checkboxes
Hi guys,.
I have a question about the boxes and a report.
Is it possible to create a report based on a list of dynamic control, where I can score different points of the brand. for example:
With a radio group ii without problem and when I mark only 1 entry in the list of control that works too, but I would like to have the ability to mark more than one entry and validity of these marked entries that the report should be implemented...select * from table where colomn <> :PX_CHECKLIST
If anyone has an idea how to get account, please let me know.
Should I create a box separated each entry area to be able to refer to them?
Thank you
PatrickHi Patrick
We are working on the same problem... ;-)
I'spent 2-3 recent
days attempted to understand how to treat the boxes in a tabular form
Looks like you had the same problem
My solution is...
The checkox "ChkBox" returns the values 36:58:423:46:422:421 etc.
This box is passed to a function of package 'GetEquipmentSql (ChkBox-online pArr2)"used s Source for a Pl/Sql statementFunction GetEquipmentSql (pArr2 in Varchar2)
Return Varchar2
as
When Varchar2 (2000);
Wselectionnez Varchar2 (2000): = ' Select re. Room_Id, r.Name, Count (1) of Room_Equipment re, Hall r';
Win a Varchar2 (2000);
l_vc_arr2 APEX_APPLICATION_GLOBAL. VC_ARR2;
BEGIN
l_vc_arr2: = APEX_UTIL. STRING_TO_TABLE (pArr2);
If l_vc_arr2.count > 0 Then
FOR z IN 1.l_vc_arr2.count LOOP
If z > 1 then
Win: wIn = | ',';
end if;
Win: wIn = | l_vc_arr2 (z);
END LOOP;
Wselectionnez: = Wselectionnez | «where are.id = re.» Room_Id';
If l_vc_arr2.count > 0 Then
Wselectionnez: = Wselectionnez | ' and re.equip_id IN ('| win |') ' ;
End If;
Wselectionnez: = Wselectionnez | When;
Wselectionnez: = Wselectionnez | "Room_Id group, r.name';
Wselectionnez: = Wselectionnez | ' Having count (1) > = ' | l_vc_arr2. Count;
On the other
Wselectionnez: = "Select Room.Id, Name, 0 from Room;";
End If;
Return (wSelect);
END;The function returns
*' Select Re. Room_Id, r.Name, Count (1) of Room_Equipment re, Hall r where are.id = re. Room_Id and re.equip_id (36,58,423,46,422,421) GROUP of Room_Id, r.name'; *I did it the easy way, I showed you the code
Do you understand my solution?
/ Gunnar -
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 in excel for a table?
How to create a report in excel for a table?
Creating an excel report
the forage value off markup html on spool on
coil emp.xls
Select * from noshow.
spool off
moved the markup html off the coast of the coil
-
Create a form based on the procedure
Hi all
I am creating a form based on the procedure, but when I entered the name of stored procedure, I got this error:
Specified procedure could not be found, please choose a procedure name valid store.965628 wrote:
My procedure is in a package.How can I prepend package name?
Like this
your_package_name.your_procedure_name(parameters);
Maybe you are looking for
-
My I Mac computer is older than 6 years and became slower and slower. I added the memory once in the past which has contributed to the speed. He was clocked at 2.66 Ghz Intel Core 2 Duo for a processor and memory is 4 GB 800 Mhz DDR2 SDRAM. I wond
-
Desktop Windows 7 does not start in windows and loops to fix the screen
You have a problem! HP mdl 3000mt-4 GB-150 GB hard drive-windows 7-32 bit. These units have worked without problem for 2 years. We have over 300 units on the line. We have now 4 units with the same question. This started with one and over a peri
-
Multiple monitors using RDP 7 in Windows Vista x 64
I have two computers using Windows Vista x 64 and RDP 7, both computers have two video cards, however, there is no way to activate the two monitors with remote desktop. Here are some tips on the configuration of the machine running Office remotely:-M
-
HP digital imaging monitor icon
How can I restore hp digital imaging icon in the system tray... it is not listed with the other icons
-
[SDK WebWorks for Mac] Could not load the COD file to the device
I downloaded the latest version of the SDK of BlackBerry WebWorks for Smartphones (Mac version) to my laptop. I am able to zip/compilation/sign my application in a COD file. However, when I try to load the app on my BB device using javaloader, I get