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
http://vincentdeelen.blogspot.com
Tags: Database
Similar Questions
-
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
-
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
-
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!
-
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);
-
Create a report based on different schema objects
Hello
I have a situation of reporting for my database performance.
Let me explain my requirment.
There are 2 diagrams in my database called X, Y
X owns all of the performance of the related data. But read X objects access.
Now in APEX, a developer that dev1 is mapped to the database schema I Y through WS1.
I can't map DEV1 to database drawing X for security reasons.
When I am creating a report as DEV1, it's allowing me to create based on schema objects belonged there.
However it is not allowing me to create a report based on objects belonged to X, although there are CERTAIN privileges of the items of x.
Can be a help in this?
Concerning
BarroHello
Choose your post on workshop SQL works?
Are sure you grant select privilege to your application to the analysis of schema?
BR, Jari
-
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 shortcut to toggle the sound device?
Anyone have any suggestions on how to create a shortcut to toggle the USB audio device in Device Manager?
A shortcut is to enable this device, and the other shortcut is disable this device.
Thanks for all the suggestions
Hi oem7110,
· Why you want to create a shortcut to enable or disable an audio device from Device Manager?
You will be able to create the shortcut to Device Manager but no shortcut to enable/disable a device in Device Manager:
a. right-click on the space empty where you want to create a shortcut
b. click the shortcut
c. in the type of space empty in devmgmt.msc
d. click Next and follow the instructions in the wizard.
With regard to:
Samhrutha G S - Microsoft technical support.
Visit our Microsoft answers feedback Forum and let us know what you think.
-
How to create a document and insert the words and/or art on both sides of the page
How to create a document and insert the words and/or art on both sides of the page
How to create a document and insert the words and/or art on both sides of the page
You create a document by using an application of word processor like Microsoft Word or Corel WordPerfect or OpenOffice Writer. Think of it as a broad a page roll.
When you print the document, you can print all pages of the document on one sheet of paper (the normal default value), or you can print on both sides of a sheet of paper.
Some printers are capable of automatic double-sided printing. With others, you print all the odd pages and then take the stack of paper, turn upside down and put it back into the printer to print all pages. You need either to read your printer manual, or experiment a bit to determine if you need to re - organize the first last pages before printing the second side.
-
How to create a new folder in the voice tab 7 hp slate
How to create a new folder in the voice tab 7 hp slate?
I wish to cretae a folder in my home page.
Please help me...
Hello and welcome to the HP support community!
You want to organize your icons in folders, or put a shortcut of data on your home page folder?
The first is easy, this last not so much.
Just hold your finger on an icon, and then drag it on another similar icon. A "folder" will be done with the name "unnamed file". Press and hold the words to change the name of the folder.
I'm not aware of a way to file a record of data on the homepage...
WyreNut
-
How to create a restore point in the protection of the system in safe mode?
As topic the question, how to create a restore point in the protection of the system in safe mode?
Hello
read a tutorial on the below link for everything you need to know about the system restore
http://www.bleepingcomputer.com/tutorials/tutorial143.html
and read this too
System Restore: frequently asked questions
http://Windows.Microsoft.com/en-us/Windows-Vista/system-restore-frequently-asked-questions
Maybe you are looking for
-
I created an email unique iCloud for my new iPhone SE. I've never used this email address anywhere except iTunes and the App Store installation. I use Apple Mail on my iPhone to retrieve the email for the account and never get any email to this accou
-
Hi all I have an iPhone 6, 64 GB 9.2 running iOS. When to end calls, disconnects the line but the phone seems to handle it too well, and it just gets stuck. This gives other softs becomes unresponsive too. I tried to force stop the calling function,
-
Need drivers Labview 8.5 for Spartan 3rd starting Board
Hello Could someone put a link to temporary download for pilots Labview 8.5 for the 3rd Spartan (Digilent) departure Board? My research project is still using Labview 8.5 and downloadable drivers are now for Labview 8.5 and 2009/2010. Thank you! Kind
-
I AM trying to BUY a 64-BIT VERSION OF the BICYCLE CARD GAMES I HAVE a FEW VERSION COMPATIBLE WITH MY PC
-
System freeze when it is opened the tool update BIOS, how can I update the BIOS?
I'm trying to update the BIOS on my 14 (1016tx) want. I downloaded the latest BIOS from the HP website and open it, the dialog box has 2 buttons only start at 1, output 2 Click 1 start, then another dialog box pops up saying not to stop your computer