EXTRACT DATES WITH THE HELP OF TWO DATES AND THE BOX
HelloI HAVE 2 DATE PICKER ITEMS
: P1_ARRIVAL_DATE AND: P1_DEPARTURE_DATE
AND I HAVE 7 ITEMS in BOXES DAY it return values are 'Y '.
: P1_MON
: P1_TUE
: P1_WED
: P1_THU
: P1_FRI
: P1_SAT
: P1_SUN
as I choose date: P1_ARRIVAL_DATE AND: P1_DEPARTURE_DATE
AND THE DAY, AS: P1_MON, ONLY THE DATES HAVE TO RETURN WHO HAVE MONDAY AS DAY BETWEEN: P1_ARRIVAL_DATE AND: P1_DEPARTURE_DATE.
FOR EXAMPLE IF I CHOOSE THE DATE: P1_ARRIVAL_DATE AS 07_NOV_2011 AND: P1_DEPARTUE_DATE AS: P22_NOV_2011 AND IT HAS 3 MONDAY BETWEEN THESE DATES
RESULT SHOULD BE DISPLAY AS
======================================
ARRIVAL DATE-------ARRIVAL DATE+6
============================
07_NOV_2011 --- 13_NOV_2011 // THESE ARE MONDAY DATES
14_NOV_2011 --- 20_NOV_2011
21_NOV_2011 -- 28_NOV_2011
CAN I CHOOSE MORE THAN ONE CHECK BOX AT THE SAME TIMEFOR EXAMPLE IF I CHOOSE: P1_MON AND: P1_TUE, THE RESULT SHOULD BE
ARRIVAL DATE-------ARRIVAL DATE+6
============================
07_NOV_2011 --- 13_NOV_2011
08_NOV_2011 --- 14_NOV_2011
14_NOV_2011 --- 20_NOV_2011 // MONDAY AND TUESDAY DATES
15_NOV_2011 --- 21_NOV_2011
21_NOV_2011 -- 27_NOV_2011
22_NOV_2011 --- 28_NOV_2011
HOW CAN I DO THIS? PLEASE HELP SOLVE THE PROBLEM.THANKS and GREETINGS
CORINE
X the problem you see is a misunderstanding on my part about what is the date of arrival date of departure... it's inverse reasoning: at your arrival is before departure (and I got it on the other hand, the departure before arrival (:-))
But there is also a flaw in the code (instead of the Date of arrival by using the select sysdate).
Please run the code like this:
with dates as
(select to_date(:P1_ARRIVAL_DATE,'DD-MON-YYYY')+level-1 as day from dual
connect by level <= to_date(:P1_DEPARTURE_DATE,'DD-MON-YYYY') - to_date(:P1_ARRIVAL_DATE,'DD-MON-YYYY') +1
)
select day, to_char(day,'Dy') from dates
where to_char(day,'Dy') = 'Mon' and :P1_MON = 'Y'
union
select day, to_char(day,'Dy') from dates
where to_char(day,'Dy') = 'Tue' and :P1_TUE = 'Y'
union
select day, to_char(day,'Dy') from dates
where to_char(day,'Dy') = 'Wed' and :P1_WED = 'Y'
union
select day, to_char(day,'Dy') from dates
where to_char(day,'Dy') = 'Thu' and :P1_THU = 'Y'
union
select day, to_char(day,'Dy') from dates
where to_char(day,'Dy') = 'Fri' and :P1_FRI = 'Y'
union
select day, to_char(day,'Dy') from dates
where to_char(day,'Dy') = 'Sat' and :P1_SAT = 'Y'
union
select day, to_char(day,'Dy') from dates
where to_char(day,'Dy') = 'Sun' and :P1_SUN = 'Y'
for the period from 01 to 15 November 2011, with P1_TUE and P1_FRI, flag in there, I got this result:
DAY TO_CHAR(DAY,'DY')
11/01/2011 Tue
11/04/2011 Fri
11/08/2011 Tue
11/11/2011 Fri
11/15/2011 Tue
To simplify (can only test inside the apex report, could not run code in SQL Wkshop):
with dates as
(select to_date(:P1_ARRIVAL_DATE,'DD-MON-YYYY')+level-1 as day from dual
connect by level <= to_date(:P1_DEPARTURE_DATE,'DD-MON-YYYY') - to_date(:P1_ARRIVAL_DATE,'DD-MON-YYYY') +1
)
select day, to_char(day,'Dy') from dates
where v('P1_'||to_char(day,'DY')) = 'Y'
Published by: Kléber M on November 14, 2011 05:06
Tags: Database
Similar Questions
-
What is the Diff between extract data and analytics
Hello
I'm new to HFM.
What is the difference between the extract data and extended Analytics?
Thank you
FriExtract data will create a flat file of entity currency only on folders - to simplify, there basically entry level data with the exception of the entity dimension and account where higher level data can also be extracted.
EA has the ability to turn a star schema or a flat file that contains the data to any level of any dimension.
-
Why Responsive mode Design might disagree with the box of the HTML element model?
In the web page, I am writing right now, number of width of the sensitive design view does not match the width specified in the view of the box model (meaning that my questions of media do not seem to be triggered the breakpoints of good width). See the attached screenshot that displays the Appointment page, view the box model and a ToolTip with dimensions of the HTML element.
I have yet to reproduce it in a simpler page, although I'm still trying. I dismissed the possible influence inland iframes and the viewport metatag.
So, I would like to know what could cause two tools to account for the figures of different widths.
See you soon,.
Jordansaid jscher2000
Ah, I tried using 38.0.5.
This could be a problem of zoom?
Oh! That's all! I was slightly zoomed-out and after a Cmd + 0, RDV now accepts exactly with the box model, and queries of the media are behaving as they should.
Quick Note: the zoom was causing a second problem, since she has been scaling 430px for a number between 481px and 480px wide, triggering neither of my media queries (which had max-width: 480px, the other min-width: 481px). It was almost as confusing as the numbers is not the first place.
Thanks again!
-
On my Mac Book Pro to always stop get question "continue application"? with the boxes option to cancel or continue the request.
Selection of abandonment does not prevent the following message appears when closing next down.
Activity monitor shows all the applications that you have
installed, running in the background? Something can be...
If you open the force quit, are there topics other than the Finder
and maybe a browser?
You repaired the disk from disk utility permissions lately?
We could also see other boot options on the use in
Recovery of OS X to use the "OS X Utilities" in there. Be careful.
Is there more than one user account on your computer? If you
Start in another user account and have auto login for
the fact that it is one that rises at the start, a piece
similar issues or is it just works fine on shut down?
The question may take some trial and error troubleshooting. This
may include some basic startup keyboard shortcuts for
the computer to start in Safe Mode, to do more test, etc.
If you have access to an official Apple store, you can be
able to set up an engineering appointment & have someone closer.
Good luck anyway...
-
With the help of two GPIB-ENET/100 boxes with ibconf - gpib1 selection?
I hope this is the right forum for this post.
I'm trying to use ibconf on Solaris to configure a workstation to use 2 boxes GPIB-ENET/100. I have never tried to configure a computer to use multiple boxes GPIB-ENET/100 at the time, so I don't have a lot of confidence that I'm doing it correctly for two boxes. Especially given what I describe below.
According to the manual page 4-2 of the "Getting started with your GPIB-ENET/100 and NOR-488.» 2 for Solaris. "
To identify your GPIB-ENET/100 in ibconf, perform the following steps:
1. press onto select the option rename.
2. type the alias name of host, host name, or IP address assigned to your
GPIB-ENET/100 and press.
3. pressto exit, chooose to save your changes. I followed these steps for both boxes, but the banner at the top of the menu always says 'Card device for Council gpib0' and he always says "gpib0" just to top the host name that I go. Shouldn't he State gpib0 first Board and gpib1 of the Committee on the second? But I don't see a way to move to gpib1, or the unit of the second box ("Board") map. Instead, it seems that I crushed the entrance of host name for the first box, I've identified using the steps above with the host name of the second box, that I've identified by following the steps above.
I looked through the manual as well as fact a search online, nothing helps. Which brings me to this forum.
How should we do to get the pilot configured to use the GPIB-ENET/100 boxes?
Thanks in advance. Out of my ibconf is below (that's what it actually looks like, either incidentally - the strange on the line with dev2, dev13, and dev24 is not an artifact of copy/paste):
===============================================================================
National Instruments GPIB Software Configuration utility Rev A.3.
Copyright (c) 1991 National Instruments Corp. All rights reserved.
===============================================================================File: / etc/gpibrc = CAPACITY: 8-plank 44 devices =
---------- -----------
Press a key to continue * -.
----------------- -------
---------------- ----
-------
----===============================================================================
National Instruments | Card device for Council SPARCstation gpib0
===============================================================================
-----------
| GPIB0 |
----| nienetD |
| |_________| * Use the cursor keys h, j, k, l & to select a device or a Commission.
| * Use the buttons below to select the desired action.
=====|------------------=======================================================
| - 0 dev1 |-dev12 0 1 dev23 2 dev34
= | - dev2 0 = = |-ev13 = 1 dev24 = 2 = dev35
| - dev3 0 0 |---4 1 dev25 2 dev36
| - dev4 0 1 dev15 1 dev26 2 dev37
| - 0 dev5 1 dev16 1 dev27 2 dev38
| - 0 dev6 1 dev17 1 dev28 2 dev39
| - 0 dev7 1 dev18 2 dev29 2 dev40
|---0 dev8 1 dev19 2 dev30 2 dev41
| - 0 1 dev20 dev31 2 dev42 dev9 2 |-0 1 dev21 2 dev32 dev10
| - 1 dev22 2 dev33 dev4311
3 dev44
|^ Q: help ^ r: Rename ^ T: (de) connect ^ edit I: ^ o: output
I just thought of it. My terminal has been updated with the ansi format. That was streaked the menu and blocks my view of the operating instructions ^ B / ^ F to see maps for more tips. The dockers affecting my vt100 terminal. You can even see how my menu was watered to the top at the bottom of my original message. I didn't know until now that the menu was supposed to look like different (although I knew it).
-
How do you get the invisible/visible or hidden columns with the box?
Hi, I'm doing a column in a table visible or invisible when I click on a check box or a button.
I have a table row with mutiple columns of text objects in, I put the "repeat for each line item data" 4 minutes, so I have four displayed on the page.
I put the box with the following script, but it's only the first line of "Received" visible when I click on the check box. and not the other
3 «received» textobjects.
example:
Form1.PurchaseOrder.ProductHeader.Receivedchkbox::click - (JavaScript, client)
If (this.rawValue == '1') {}
Form1.PurchaseOrder.ProductDetails.detail.received.presence = "visible";
Form1.PurchaseOrder.ProductDetails.detailHeader.StaticReceived.presence = "visible";
}
on the other
{
Form1.PurchaseOrder.ProductDetails.detail.received.presence = "invisible";
Form1.PurchaseOrder.ProductDetails.detailHeader.StaticReceived.presence = 'invisible '.
}So what I try to achieve is to shape make the textobject "Receipts", "invisible or hidden" by default.
Then when filling out form click on the checkbox it become visible, and vice versa.
So how I apply a script like this to hide all instances of "Received" 4 and also new I add by addinstance script?
I have attached the form, if someone could give me a help to develop it?
Thank you!!!
Hello
It does help to see the form!
Basically, you will need to loop through all instances of the detail row and change the presence of the object received individually.
First the script calculates the number of lines:
var vRows = Productdetails._detail.count;
The use of _ before repeating detail is a shortcut for instanceManager.
Then the if statement would change a little, with the insertion of a statement that works across all four lines.
if (Receivedchkbox.rawValue == true) { form1.purchaseOrder.Productdetails.detailHeader.StaticReceived.presence = "visible"; for(var i=0; i
Attached form.Good luckNiall -
I recently decided to spend autour colours in Firefox. I work in a fairly dark environment and have the dark color on white or light background text is quite difficult on my eyes in the dark.
I changed the background to a dark gray, light gray text and visited the two and links not visited in a blue light. With these changes, I unchecked the "allow pages to choose their own colors, instead of my selections above" box.
After unchecking the box, I'm more able to display images on many sites. Turn all grey images - as if Firefox has changed their image in part of the background. When I check the box, I am able to see fine pictures, however, Web sites typically return to their light background with dark text.
Any help and assistance with this is greatly appreciated!
Thank you!You can use the NoSquint extension to define the font size (zoom text/page) and colors of text on web pages.
-
How to manage the selection with the box in a table
Hello
JDev 11.1.2.4
I have a table with an attribute of EO/VO, transitional to manage the selection. This attribute is displayed as a check box. The user makes a selection by clicking on the checkbox. Then, the user clicks on a button that displays a pop-up window. Inside of this pop-up window, that user can create, insert, delete, or update values in a table based on an other EO/VO.
When the user clicks OK, the pop-up window is closed, then the data is committed.
When the user clicks Cancel, the popup is closed and the changed data are ignored. To remove the data, I call a Rollback. It works fine, but all the transitory values are lost which is correct because of the discount after the cancellation.
It's a problem because the user must be able to open the pop-up window several times with the same selection. This means that the restoration is not appropriate in this case.
How to ignore data edited inside the pop-up window and keep the selection?
Thank you
You can try to put the popup in his own taskflow and define a backup point before entering the taskflow. When the user cancel the editing restore you to previous backup. This should dispel the changes.
Or you save the selected rowkeys, call rollback and backward selection later.
Timo
-
I got Adobe Lightroom as a gift about a year ago. I thought that I had it installed on my computer, but when I tried to open it a few days ago it prompted me to license and enter it again. The problem with doing this, it's that I can't find my card with the serial number. I have the boxes and some of the documents that were included, but I can't find the card with the serial number. Is it possible for Adobe to help me get my product up and running without my serial number?
Hi Emily,.
Please see this link:
Quickly find your serial number
Let me know if it helps.
Concerning
Megha Rawat
-
Help! need a form with the box of BC e-mail campain subscription
Need to have an option in the contact form that tell BC to add the presentation of a list of specific email campaign
fingers crossed
YD.
Sorry to be so late... No, I don't do always a form of muse... I did it in a form of BC, placed inside a html content in muse... (of course we need to the BC css style)
YD.
-
PLEADING... I NEED help with the boxes, one for each row in table.
I have a tabular presentation I want to use to process once that will process once for each line that has had its check box selected. I worked on it... It seems... forever. I almost gave up. More than once I thought I had it all to find that I have no work.
It seems always executed once for each row in the set of lines in the displayed table and I care about her contract so that the lines checked.
Here is my select statement...
Select
APEX_ITEM. CHECKBOX (2, ISSUE_KEY, DECODE (issue_closed, 'Yes', 'CLOSED', 'No', 'DISABLED', null)) CHECK_KEY;
TO_CHAR (ISSUE_DATE, ' ' DD-MON-YYYY HH24:MM:SS) FAILURE_DATE,.
ISSUE_COMMENTS
QUESTIONS
I have a submit button that runs the following process
DECLARE
v_org_comments varchar2 (1024): = ";
BEGIN
BECAUSE me in 1... APEX_APPLICATION. G_F02. COUNTING LOOP
SELECT ISSUE_COMMENTS
IN v_org_comments
QUESTIONS
WHERE ISSUE_KEY = APEX_Application.g_f02 (i);
UPDATE PROBLEMS
SET
ISSUE_COMMENTS = v_org_comments | » ' || : P4_X_ODF_NOTES,.
ISSUE_CLOSED = "Yes"
where ISSUE_KEY = APEX_Application.g_f02 (i);
COMMIT;
END LOOP;
END;Hello
I had the same problem. It seems that if you pass your columns to the columns in standard report it will fire for the checked columns. But if you proceed towards editable fields each line is treated as checked.
So if you use line selector instead of manually creating check boxes and have a hidden primary key
field, you can then use something likeBECAUSE me IN 1.APEX_APPLICATION. G_F01. COUNTING LOOP
UPDATE
SET
WHERE=
APEX_APPLICATION. G_F02 (APEX_APPLICATION. G_F01 (i));
END LOOP; -
The mouse pointer does not hide when you type, even with the box checked.
Hello everyone. I turned on the check mark in the properties of the mouse "hide the pointer during the strike". However, the mouse pointer does not hide when typing, but instead remains visible all the time.
No one knows why this happens? In previous versions of Windows, the pointer should simply disappear when keystrokes are typed, and then reappear when the mouse is moved. Is not the case here!
Thanks for any information!
System details:
Windows Vista Ultimate x 64 SP1, 4 GB ram
Intel Core2 3.16 GHz cpu
NVIDIA GeForce 8800GT with two monitors
Aero is enabled.Hello
Welcome to the community of Windows Vista.
1. what application you are working on when you encountered this problem?
Hide the mouse pointer option allows you only to remove the mouse curzor of
the focus in the working window so that the cursor does not cover the text or the pitcure you see.Make sure that the curzor of the mouse is placed inside the app as you type, as it does not hide the mouse, if it is outside of the application.
Change the settings of the mouse
http://windowshelp.Microsoft.com/Windows/en-us/help/efd700f8-bbc0-4F04-9f78-3bdb4bbf47011033.mspx#EKDKind regards
Technical support of Microsoft-yama.
Visit our Microsoft answers feedback Forum and let us know what you think. -
Report with the box and collection
Hi all
I need to manage an interactive filtering report and select rows of boxes and then use a collection to manage the selected records.
I used a first collection to create the record source by a process of front-Header we charge:
DECLARE
v_id NUMBER;
Varchar2 (8) var1;
Varchar2 (10) var2;
var3 VARCHAR2 (50);
var4 VARCHAR2 (10);
VAR5 VARCHAR2 (100);
var6 VARCHAR2 (5);
cursor c_Populate is
SELECT
DEP.chassis_code AS chassis_code,
DEP.model_code AS model_code,
m.model_description AS model_description,
DEP.acc_doc_number AS acc_doc_number,
dest. Description AS destination_descr,
(trunc (sysdate) - dep.entry_date) Anzianita
OF deposit_chassis dep, warehouses w, warehouse_map card, models m, immersion,.
dest, SDS T_SUB_DESTIN_DEALERS destinations
WHERE
DEP. Status = 5 AND
w.ware_code = map.ware_code AND
DEP. DEALER_CODE = DDD. DELIVERY_POINT AND
DEP. DESTINATION_CODE = DDD. DESTINATION_CODE AND
Map.MAP_CODE = dep.map_code AND
m.model_code = dep.model_code AND
DEP. UNLOADING_SITE = S.SITE_CODE AND
DEP.destination_code = dest.destination_code and
DEP.unloading_site = 'S0000074' and w.site_code = 'S0000074 ';
I have SEVERAL;
BEGIN
APEX_COLLECTION. CREATE_OR_TRUNCATE_COLLECTION (p_collection_name = > 'MY_COLLECTION');
OPEN c_Populate.
LOOP
EXTRACT c_Populate in var1, var2, var3, var4, var5, var6;
EXIT WHEN c_Populate % NOTFOUND;
APEX_COLLECTION. ADD_MEMBER)
p_collection_name = > 'MY_COLLECTION ',.
p_c001 = > var1.
p_c002 = > var2,.
p_c003 = > var3.
p_c004 = > var4.
p_c005 = > var5,.
p_c006 = > var6);
END LOOP;
CLOSE C_Populate;
END;
-----
Then, I created a region for a SQL report:
SELECT
APEX_ITEM. Chk CheckBox(1,C001).
apex_item. Text (2, c001) maniglie,.
apex_item. Text (3, c002) ModelCode,.
apex_item. Text (4, c003) model.
apex_item. Text (5, c004) all Doc_Number,.
apex_item. Text (6, c005) Destination.
apex_item. Text (7, c006) age
OF APEX_COLLECTIONS
WHERE COLLECTION_NAME = "MY_COLLECTION";
-----
Then, with a "submit" button and the process (below), I need to load a new collection for more details.
How can I get the unique values for each field of my selected rows (see MY_COLLECTION)?
APEX_COLLECTION. CREATE_OR_TRUNCATE_COLLECTION (p_collection_name = > 'COL_AVAILABLE_CHASSIS');
BECAUSE me IN 1.APEX_APPLICATION. G_F01. County
LOOP
APEX_COLLECTION. ADD_MEMBER)
p_collection_name = > 'COL_AVAILABLE_CHASSIS ',.
p_c001 = > I need the maniglie
p_c002 = > I need to the ModelCode
p_c003 = > I need to model
p_c004 = > I need to the Doc_Number
p_c005 = > I need to the Destination
p_c006 = > I need to age
END LOOP;
Thanks in advance,
MassimoHello
This might help
https://Apex.Oracle.com/pls/OTN/f?p=40323:1Kind regards
Jari -
Possible to interact with the box in a custom menuitem?
Is it possible to allow custom menu items to check (as in the Windows menu menuitems can be)? The 'checked' property is read-only for the menu item and the menu action, so I guess I wonder if there is no known workaround solution or whether it is a case of readonly feel readonly. Thank you!
Menu navigation related stuff in mind DOM me nothing, but Google turned up this blog entry from substances: http://in-tools.com/article/scripts-blog/showing-text-formatting-overrides/
-and then I pourrait found in the DOM, well hidden:
Adobe InDesign CS6 (8,0) object model JS: ScriptMenuAction
So, it seems that you must set the State of a menu action. The action itself can be attached to one or more menus (MenuAction, where checking is read-only, is a parent class of the ScriptMenuAction and here it is read/write), probably to make sure that if a certain menu item appears in more than one menu, they are all "up to date" at the same time.
Example of substances still affects 'checked = false' and change the menu text to indicate its current state, but I guess one can also toggle the enabled state.
-
What is with the box with Red x to always take pictures?
When I receive e-mails with still photos, all I get are boxes red x in the upper left corner. How to receive pictures?
Try to uncheck the option to block related images and other external content under Tools | Options | Security. In addition, if happens to all images, see www.oehelp.com/noimg.aspx
Steve
-
I tried mthe ' internet options, privacy settings, etc., "and parameters to allow the appropriate cookies and this does not help.
You must enable AutoComplete in internet explore...
Maybe you are looking for
-
I can no longer add additional modules. When I click on the download link, I get a little pop-up telling me that I can download the add-on, if I first download firefox. The thing is, I'm on firefox when this happens. I have already downloaded firefox
-
My computer screen guard goes to the Green-videos and movies. Someone at - it answers. Moved from the community involvement Center
-
When you open Explorer 8 or 9 on Vista access blocked by the activity of fake plugin computer attack: 54.69.49.216, 80 attacking URL: bestfindallusa.info /? q = hfZo... attacking URL: chinafirstweb.ru. attacking URL: directoryudtech.ru. attacking URL
-
Not able to uninstall the Free Ride games
Please help me. my daughter has downloaded a few games of 'free ride' that caused pop-ups to appear, I want to uninstall it, but when I do I get a message telling me to reinstall Extender player, please could you help, thank you.
-
could not connect said it was a problem of HP & Microsoft
Sorry for the long explanation, but not found for me to e-mail email & low on minutes & money! Hello! I could not open a session late last week & ATT said it was a problem of HP or Microsoft. I called HP first & they said that Microsoft would requi