Display the results in a report on the APEX of two datepicker page elements
Hi allI'm trying to get some data to display in a report by choosing between two dates. These two dates, I select by datepickers, then a button is pressed to submit and the report to appear.
I made the conditional statement on the button, the button submit as "searchdates", then a branch that is conditional (when the button is pressed, the application is set to "searchdates") and the branch is: 'On Submit - after treatment.
the query behind the report is:
select * from desk_allocation
where (DESK_ALLOCATION.DATE_FREE >= TO_CHAR((:P5_DATE_FROM), 'DD-MON-YY')
AND DESK_ALLOCATION.DATE_FREE < TO_CHAR((:P5_DATE_TO), 'DD-MON-YY')
AND :P5_DATE_TO IS NOT NULL AND :P5_DATE_FROM IS NOT NULL)
AND DESK_ALLOCATION.ALLOCATED like 'No'
and the sample data that I use to test:DESK_NO DATE_FREE ALLOCATED ALLOCATED_TO
66 20-AUG-10 No -
75 19-AUG-10 Yes Superman
60 16-AUG-10 Yes Spiderman
When I run the page, it is said no data displayed.Someone at - it ideas?
Using APEX v3.2
Thanks in advance :)
I tried with your data with this query, remove the additional supports, SQLDeveloper. There is no record for 'No', then the data found was the correct result. Changed to 'Yes' and got results.
select * from desk_allocation
where DESK_ALLOCATION.DATE_FREE >= TO_DATE('10-AUG-10', 'DD-MON-RR')
AND DESK_ALLOCATION.DATE_FREE < TO_DATE('20-AUG-10', 'DD-MON-RR')
-- AND :P5_DATE_TO IS NOT NULL AND :P5_DATE_FROM IS NOT NULL)
AND DESK_ALLOCATION.ALLOCATED = 'Yes'
Kind regards
Tags: Database
Similar Questions
-
My network printer will display the test in Windows 7 page, but nothing else. It is a Brother MFC-440CN
Hi djmatthewlee
1. How is the printer connected to the network?
2. is the printer directly connected to the Windows 7 computer?
3. do you have the updated drivers installed for the printer?You can refer to the link below and use the printer troubleshooter. See if it resolves the issues -
http://Windows.Microsoft.com/en-us/Windows7/open-the-printer-TroubleshooterYou can also check out the link below:
http://Windows.Microsoft.com/en-us/Windows7/why-cant-I-printI hope this helps.
-
view the code for two different pages at a time
HI - in other editors I've used I've always been able to implement the code for two different pages so that I can watch side by side to compare. I can't find a way to do this in Dreamweaver. Anyone know if this is possible?
Thank youFound. Always after asking for help! This is the "cascade" in the Windows menu.
Thanks anyway! -
display the data in two tables.
Hi considers the following data
I want to join these two tables and result the followingWITH table1 AS ( SELECT 111 userid, To_Date('7/31/2010','mm/dd/yyyy') dt FROM dual UNION ALL SELECT 111 userid, To_Date('8/1/2010','mm/dd/yyyy') dt FROM dual UNION all SELECT 111 userid, To_Date('8/2/2010','mm/dd/yyyy') dt FROM dual UNION ALL SELECT 111 userid, To_Date('8/3/2010','mm/dd/yyyy') dt FROM dual UNION ALL SELECT 111 userid, To_Date('8/4/2010','mm/dd/yyyy') dt FROM dual UNION ALL SELECT 111 userid, To_Date('8/5/2010','mm/dd/yyyy') dt FROM dual UNION ALL SELECT 222 userid, To_Date('2/28/2010','mm/dd/yyyy') dt FROM dual UNION all SELECT 222 userid, To_Date('3/5/2010','mm/dd/yyyy') dt FROM dual UNION all ), mydates AS ( SELECT To_Date('7/31/2010','mm/dd/yyyy') dt1, To_Date('8/4/2010','mm/dd/yyyy') dt2 FROM dual UNION ALL SELECT To_Date('2/28/2010','mm/dd/yyyy') dt1, To_Date('3/5/2010','mm/dd/yyyy') dt2 FROM dual )
Basically, I join two tables, take dt from table1 and look into mydates. If the data match then display dt and DM2.DT DT2 7/31/2010 8/04/2010 8/01/2010 8/01/2010 8/02/2010 8/02/2010 8/03/2010 8/03/2010 8/04/2010 8/04/2010 8/05/2010 8/05/2010 2/28/2010 3/5/2010 3/5/2010 3/5/2010
If the date in table1 does not match date in t1d in mydates, then display the data but dt and DM2 there same date.
for example,.
7/31 in table1 is 7/31 in mydates so I show 7/31 dt and DM2 as 8/4(from mydates).
now 8/01 does not match all lines in my dates so dt should be 8/01 and T2D should be 8/01. same logic applies to the other lines
can someone write a query that gives the above result? Thank youHello
If you want all lines of table1 (attached to mydates when this is possible, but even when there is no match) then use an outer join:
SELECT t.dt , NVL (m.dt2, t.dt) AS dt2 FROM table1 t LEFT OUTER JOIN mydates m ON t.dt = m.dt1 ORDER BY t.dt ;
-
The firefox button and the button display the panorama are two disappeared in FF4 RC1
I upgraded to FF4 RC1 two days earlier and noticed that he was missing the button display the panorama and the firefox button, which is supposed to replace the file, edit, view menus etc. had not yet done. So basically, I'm still stuck with the buttons of the menu style FF3.
If you hide the menu bar, you should get the Firefox button. That right-click on a toolbar and deselect the option "menu bar".
For the Panorama button, right-click on a toolbar and then choose Customize to open the Customize toolbar window. Drag the "Groups of tabs" icon to the toolbar, then click done.
-
Hi gurus,
Is it possible to display the scroll bar on each tab on Web tab page where the display of content from the same block of data?
for example:
Block of data elements used:
1. employee ID
2. first name
3 first name
4 date of hire
scroll bar appears on the page 1
5 salary
6 commission
scroll bar appears on page 2
Many thanks in advance,
Kind regards
Ferrere
Dear fendy_chang,
A data block can have only 1 scroll bar. If the form is for display purpose, you can create several data bloks that points to the same table for each tab.
Manu.
-
Dreamweaver has a plan APP to display the outline of my HTML page?
Hi, I'm doing a course on the CSS and the guy uses Aptana studio and it has a screen that displays the html page plan. Dreamweaver has it.
Thank you.
In more recent versions of the program (CC2014 +) there is an icon in this bar, which will open the quick view of the element window.
This window will have an overview of the site that allows you to extend the elements with nested elements. By clicking on the given items will highlight the code in Code view.
Currently, she disappears after you click outside of it, but there is a feature request for trying to make a standard window of DW...
-
Display the months between two dates
Hello:
I need all the months between two dates. I entered two dates as January 15, 2001 and 2011-mar-03. I want the result as below.
JANUARY 15, 2011 - JANUARY 31, 2011
February 1, 2011 - February 28, 2011
MARCH 1, 2011 - MARCH 3, 2011
I held this result of sql query in oracle. Could you please suggest me?
Thanks in advance.
AbhishekSELECT GREATEST(st, ADD_MONTHS(TRUNC(st, 'MONTH'), (LEVEL - 1))) dt, LEAST(ed, LAST_DAY(ADD_MONTHS(TRUNC(st, 'MONTH'), (LEVEL - 1)))) ld FROM (SELECT DATE '2011-01-15' AS st, DATE '2011-03-03' AS ed FROM DUAL) CONNECT BY LEVEL <= MONTHS_BETWEEN(TRUNC(ed, 'MONTH'), TRUNC(st, 'MONTH')) + 1 ORDER BY 1; DT LD ------------------------ ------------------------ 15.01.2011 00:00:00 31.01.2011 00:00:00 01.02.2011 00:00:00 28.02.2011 00:00:00 01.03.2011 00:00:00 03.03.2011 00:00:00
HTH, Urs
-
The difficulty to define a page element by using $s
Hi all
I try to use an APEX 'list' as a "pick list", so that the user can click just a value in the value list on the right side of the page, and then refreshes the tabular presentation, query data for the selected value.
I have a point to page setup to store the selected value and I can select an item in the list and I can see it changes the page element, but there's just the question for a second, and then the question is equivalent to null.
Here is my sample application:
Workspace: leppard
username: guest
PW: app_1000
App: MyTestApp (App ID: 32581)
Page: 27
apex.Oracle.com/pls/apex/f?p=32581:27
My dynamic action is named "Select a list item" and is based on a picker jQuery (li) and contains a simple code:
$('li').click(function() { var text = $(this).text(); $s('P27_LOC', text); });
Then I have another real action to refresh the form of the tab area.
I can't understand what I'm missing or why I see this behavior. Any advice or suggestions are appreciated!
Thank you
John
I brought the following to your application changes to make it work:
Change 1: as Scott suggests, your list of 'Place' under the shared components missing the href of the link. I changed your 'Location' as shown below.
Before:
select distinct null, loc label, null target from dept
After:
select distinct null, loc label, 'javascript:void(0);' target from dept
Change 2: page 27, I edited your "Table" report Under the "Region definition-> Source-> Page elements must send", I entered the name of your item to display P27_LOC. This is because $s (JavaScript API) sets the value of the element on the page (DOM) and not in session state.
3 change: page 27, I edited more your 'Table' report but this time to allow the partial-Page update. Report of the attributes-> layout and Pagination-> Enable partial Page Refresh. I've changed that from no to Yes. "Refresh" action under dynamic actions can refresh your report in the form only in a partial Page refresh was set to Yes.
Thank you!
JMcG
-
Error in the generator of the ApEx 4 on Edit Page of the article: ORA-06502
Hello
We took 4 ApEx (patch 4.0.1.00.03), and have a problem in a single application, where appears the error ORA-06502 character string buffer too small.) This error at bottom of the page this article Page. In addition, point editing the page "settings" section is left blank, so I can't change any settings. It also gives me wrong when creating new items, so I have to copy existing elements and change them from place. This worked until recently, when the mistake is now also displayed in the application itself, and not only in the constructor. This is a page with a tabular presentation and some elements of search filter. After having fill the filter and click on a search button, the error message and tables is not rendered. This happens from time to time, and the 'solution' is to disconnect and return to the application. I'm not 100% sure, but I guess that's the same problem as the error appearing in the report generator. It is certainly not caused by user data.
So far, I found this:
While developing the application, we regularly put the generator of the ApEx between French and English. I read that it was a cause of ORA-06502, but that this problem has been resolved in version 4.0.1.00.03. Our problem may still be linked to the multilingual constructor?
I ask this because we are running other applications in the same environment, ApEx, and they are all very good. So somehow this error in Report Designer is related to this particular application.
Any ideas?
Thanks in advance!Hello
(1) no longer this error occurs if you export your application and install it on apex.oracle.com which has 4.0.2?
(2) do you use point type plug-ins in your application. In 4.0.1 there was a mistake in the generator if too many when installed in this application. Reduce the number of plug-ins type point or better to install 4.0.2.00.07Concerning
Patrick
-----------
My Blog: http://www.inside-oracle-apex.com
APEX 4.0 Plug-Ins: http://apex.oracle.com/plugins
Twitter: http://www.twitter.com/patrickwolf -
Is this a bug? HTML is not escaped in the conditional read only LOV page elements
Then test my application for injection HTML filling HTML for each column in my data injected datamodel HTML running when a field only LOV ready, I noticed
I have dynamic LOV in use in my form, so their share, users can select. That sometimes I don't want to make them able to change a value, they chose earlier.
For this reason I condtionalu readonly my LOV. by using the conditional read only an option for the items on the page.
That's when a dynamic LOV made readonly HTML code inside is done instead of escaped
is this a bug or is it intentional?
At least, I think I should be able to choose the behavior.
GeertGeert - Thanks for the info. I think that's not a bug. With the read-only option, it displays the data as it would for a display text (does not save the State) items for which source of HTML element, that is, unescaped. If you want the text escaped by using your dynamic lov query simply use htf.escape_sc:
Select htf.escape_sc ('
data ') d, 1 r of the doubleScott
-
How to integrate the APEX into a web page?
Hello
I want to integrate the APEX in other sites with iframe. The only problem is the security. Anyway to avoid the double connection?
Hey Cheney,
Long back I did using the link below.
See if he can help you.
Pass APP_USER of an application to another
Sunil Bhatia
-
What is the order of evaluation of Page elements
I wonder what the order of execution of the page point assignments are in the page rendering process.
Sequence (+ region), the Type of items, more skilled checking dependencies?
I couldn't find anything here, or looked at with the wrong keywords.
I just need to know, what reliable hypothesis on the dependencies between page elements?
Which is visible in the APEX code? A pointer to that would be OK.
Thank you very much
ThomasHello
If you have a process 'Automated row fetch', then APEX will fill the session state of all elements on the page where source type = "Column DB" when the process is run.
All other types of source page point are filled in the order that the elements of the page are rendered.
Concerning
Patrick
-----------
My Blog: http://www.inside-oracle-apex.com
APEX Plug-Ins: http://apex.oracle.com/plugins
Twitter: http://www.twitter.com/patrickwolfPublished by: Patrick Wolf on November 15, 2012 13:47
-
display the text overlapping & incomplete Web pages
displayed web pages difficult to read text is overlapping and incomplete. Other elements of web page such as incomplete dialog boxes so that the displayed information lost
Hi Extec,
A. what version of internet explore do you use?
B. is this problem with some pages or the whole?
Are c. When you facing this problem?
D. recent changes made on your computer?
Click on the small icon at the top (right) the icon bar and address of refreshment. It runs the website in compatibility mode.
Previous post: the result.
Bindu S - Microsoft Support
[If this post can help solve your problem, please click the 'Mark as answer' or 'Useful' at the top of this message.] [Marking a post as answer, or relatively useful, you help others find the answer more quickly.]
-
It is a problem specific to Oracle Web Logic EM.
In our society, we use the logical Web as a basis for the application server.
In the EM logic web server, users can use a Web Logic EM (EM is a portal to view processes on Web Logic application) to verify the data.
I found when I use EM to check online XML, sometimes the page does not appear the scroll bar.
If I use Google Chrome or Opera, and do the same thing, the page will display scroll bar.
But I need Firefox because it is my main browser.
How to overcome this issues?
And how to prove?Hello, cor - el
Please, please read this thread first:
https://support.Mozilla.org/en-us/questions/976345I found there is that some people have the same problems.
I check the data of the source code viewer, the data displayed are "pure XML.
So my question is "pop-up windows display XML data in Firefox.
I searched the KB and found an expert suggests a whole 'dom.disable_window_open_feature.scrollbars', 'true '.
This solution not solve my problem.
And thank you once again, cor - el.
I can give up google chrome forever.
Maybe you are looking for
-
I tried to do a clean install of Sierra several times and each time Setup reaches the end and then displays the message "the responsibility of the installer has no signature verification. This leaves the computer without a bootable Mac OS version. I
-
How to disable the shuffle in-app music?
There is no shuffle button more to switch or repeat.
-
Add mp3 files to icloud drive in garageband for ios 9
Hi all! This has probably been asked before, but I couldn't find a solution anywhere, so will ask once again, for what its worth. After the new update to garageband for ios 9, there is now an option to add a track by choosing "import icloud drive." I
-
My 512n desktop does not illuminate. There is no green light on the back, but when I pull the power plug to the back of the computer, a green light comes on for a second and then turns off. I have a new computer, but if it is not expensive, I want t
-
Keyboard replacement for HP Pavilion dv7t - 6 c 00
Spill of liquid on the keyboard and dried everything, but half right of the keyboard is still not working. What is the number of spare parts for the HP Pavilion dvt7 - 6 c 00 portable keyboard for PC? (color: bronze) Thank you!