Adf Calendar multiple date range disabled.
Hi,
I have a requirement where I have few date ranges say 1st -5th march, 9th-11th march.. and while opening date calendar these date ranges should be disabled (blacked out ) . MinValue and maxValue attribute is only for single date range. I need for multiple date ranges
No version number, no clear idea of what you mean by "adf Calendar"
If you are talking about [url http://docs.oracle.com/cd/E16162_01/apirefs.1112/e17491/tagdoc/af_inputDate.html]af:inputDate, look at the disabledDays property
John
Similar Messages
-
Calendar Region : Date Range
Hi,
I am trying to add ranges to a calendar report.
Here is exactly what I am trying to acheive...
http://www.sumneva.com/apex/f?p=15000:305:0
Does anyone know how this is acheived??
I have tried messign around with calendar date, calendar end date but I don't seem to get anywhere??
Thanks
RichardHi,
Are you still working on this ? If you have solution please share.
What I have check javascript, one option is something like below to get array mentioned in documentation
http://arshaw.com/fullcalendar/docs/event_data/events_array/
<script type='text/javascript'>
$(function() {
$('#calendar').fullCalendar({
events:function(start,end,callback){
/* user parametter start to pass open calendar starting date to funtion return events */
/* user parametter end to pass open calendar starting date to funtion return events */
$.ajax({
type: "POST",
url: "wwv_flow.show",
dataType: "json",
data:{
p_flow_id:$('#pFlowId').val(),
p_flow_step_id:$('#pFlowStepId').val(),
p_instance:$('#pInstance').val(),
p_request:"APPLICATION_PROCESS=CALENDAR_QUOTE_EVENTS"
x01:start, /* in On Demand process use APEX_APPLICATION.G_X01 to get calendar start */
x02:end /* in On Demand process use APEX_APPLICATION.G_X02 to get calendar start */
success:function(calevents){
/* make event array with objects */
var events=[];
$.each(calevents.row, function(i, ev){
events.push({
title: ev.title,
start: ev.start,
end:ev.end
/* return events to calendar */
callback(events);
</script>In JSON start and end date should be format YYYY-MM-DD HH24:MI:SS.
Regards,
Jari -
Does anyone know where I can find an example of a calendar showing a date range.
I would like to show a start date and an end date of an event on the calendar
Cheers
GusHi Gus,
In that case, you need to create a record for each individual date covered by the period. Obviously, for space/maintenance reasons, you wouldn't want to do this on actual tables, but there are techniques that you can use to construct the required virtual records - some are discussed here: vacation calendar- time consuming query ??
Andy -
Select multiple date ranges?
I am looking to select from a set of date ranges. I know that a UNION will work, but how to I get a valid set of results from multiple dates without a UNION?
example:
select date from test
where date >= '01-MAR-07 0000'
and date <= '02-MAR-07 0000'
and date >= '04-MAR-07 0000'
and date <= '08-MAR-07 0000'
order by date;
This gets zero records.
But if I use UNION:
select date from test
where date >= '01-MAR-07 0000'
and date <= '02-MAR-07 0000'
union
select datre from test
and date >= '04-MAR-07 0000'
and date <= '08-MAR-07 0000'
order by date;
It works, I get the records in no test table.
How can I structure this query to work without UNION?true, date is taken eh?
I am still running into an issue:
Let's say I am using the following context:
select date1, name from test
where name in ('SUNDAR', 'ASUNDAR')
and date1 >= '01-MAR-07 0000'
and date1 <= '03-MAR-07 0000'
or (date1 >= '05-MAR-07 0000'
and date1 <= 07-MAR-07 0000');
My results are wrong, it would not include the select as part of the or clause. -
Hi, we are having a requirement in which the model project has to be configured to more than one data source. The scenario is , the UI has to show the data from 8 different database instances. User can select the data source from UI, and accordingly the BC has to get the data from that datasource.
Could some one point me how to configure more than one data source in adf-bc. Thanks.Hi,
The scenario is , the UI has to show the data from 8 different database instances
If you mean that the application should connect to one of the data sources at a time, then you can use dynamic JDBC credentials. If you want to connect to all of them at once then this can be achieved by creating separate root Application Modules, which then are all exposed as data controls in ADF. If you want one AM to access information from all DB then you should use database links (assuming all databases are Oracle)
Frank -
How to display multiple data range by using variable?
Hi experts,
How do I set a variable at EPM add-in for Excel for dynamic display two year's data? just like as below:
***User will execute this report from BPC web(work list).
user input => 2006
Report display 2006 and 2007 data
user input => 2008
Report display 2008 and 2009 data
I know if we use BPC 7.5 we can config this by Excel formula, How do I set this function on EPM add-in 10.0?
best regards,
Evans.I think you can effectively do that using EPMOlapmember function...Just follow :-
2013.TOTAL <---- EPMContextMember(,"TIME","LEVEL = YEAR")
2012.TOTAL <---- EPMMemberOffset(,C2,-1)
2013.DEC <---- LEFT($C$2,4)&".DEC"
Similarly 2012.DEC <---- LEFT($D$3,4)&".DEC"
Projection & Actual are hard coded in Cell F2 and F3 respectively...
Then you keep the "ACTIVE MEMBER RECOGNITION" as ON...
Use the OLAP Member function ..as shown in the screen shot for all the 12 months.. -
Querying multiple date ranges in one select
Hello guys,
DDL:
CREATE TABLE DBO.SALES (
TYPE VARCHAR(50)
, REVENUE DECIMAL(19,2)
, SALE_DATE_TIME DATETIME)
What I'm trying to figure out is how I can pass two dates to a where clause querying this table, a start date and an end date. From this I can group up the REVENUE for each TYPE (but there's more):
SELECT TYPE, COUNT(*) AS NBR_OF_SALES, SUM(REVENUE) AS TOTAL_REVENUE
FROM REPORTS.DBO.SALES
WHERE SALE_DATE_TIME BETWEEN @STARTPERIOD AND @ENDPERIOD
GROUP BY TYPE
I'd now like to add a couple of extra columns in the select that calculates the TOTAL_REVENUE equal to the time period of the two dates, but offset by 1 week, 1 month and 1 year, so that would be three columns. I'm guessing this would be possible with a
CROSS APPLY, but I just can't get my head around it at this time. Just for clarity, the expected output would contain these columns:
TYPE, NBR_OF_SALES, TOTAL_REVENUE, TOTAL_REVENUE_LAST_WEEK, TOTAL_REVENUE_LAST_MONTH, TOTAL_REVENUE_LAST_YEAR
Any help is greatly appreciated.SELECT TYPE,
SUM(CASE WHEN SALE_DATE_TIME BETWEEN @STARTPERIOD AND @ENDPERIOD THEN 1 ELSE 0 END) AS NBR_OF_SALES,
SUM(CASE WHEN SALE_DATE_TIME BETWEEN DATEADD(WEEK,1,@STARTPERIOD) AND DATEADD(WEEK,1,@ENDPERIOD) THEN 1 ELSE 0 END) AS NBR_OF_SALES_WeekOffset,
SUM(CASE WHEN SALE_DATE_TIME BETWEEN DATEADD(MONTH,1,@STARTPERIOD) AND DATEADD(MONTH,1,@ENDPERIOD) THEN 1 ELSE 0 END) AS NBR_OF_SALES_MonthOffset,
SUM(CASE WHEN SALE_DATE_TIME BETWEEN @STARTPERIOD AND @ENDPERIOD THEN REVENUE ELSE 0 END) AS TOTAL_REVENUE,
SUM(CASE WHEN SALE_DATE_TIME BETWEEN DATEADD(WEEK,1,@STARTPERIOD) AND DATEADD(WEEK,1,@ENDPERIOD) THEN REVENUE ELSE 0 END) AS TOTAL_REVENUE_WeekOffset,
SUM(CASE WHEN SALE_DATE_TIME BETWEEN DATEADD(MONTH,1,@STARTPERIOD) AND DATEADD(MONTH,1,@ENDPERIOD) THEN REVENUE ELSE 0 END) AS TOTAL_REVENUE_MonthOffset
FROM REPORTS.DBO.SALES
WHERE SALE_DATE_TIME BETWEEN @STARTPERIOD AND DATEADD(MONTH,1,@ENDPERIOD)
GROUP BY TYPE
Is this what you want?
We have three total columns per metric, one for the period, one for the period offset by a week, and one for the period offset by a month.
We've also adjusted the where so all the data for the offset period is included. -
Query with multiple date ranges
I want the suggesstions to rewrite the below query. Is there any better way to rewrite the query by avoiding union all. This table has over 500 million records and the indexes are already created.
select * from emp
where job='MANAGER' and hiredate between '10-MAR-2007' TO '11-APR-2008'
UNION ALL
select * from emp
where job='ANALYST' and hiredate between '20-MAR-2008' TO '16-FEB-2009';Hello Boochi,
try this,
SELECT EMPNO, ENAME, JOB, MGR, HIREDATE, SAL, DEPTNO
FROM emp
WHERE (job = 'MANAGER' AND hiredate Between '10-MAR-2007' And '11-APR-2008') OR
(job = 'ANALYST' AND hiredate Between '20-MAR-2008' And '16-FEB-2009');please, dont use '*'
Regards,
Christian Balz
Edited by: Christian Balz on 01/04/2009 08:35 - Add Sugestion -
Multiple Date selection in ADF
Hi Friends,
I am using jdeveloper 10.1.3.3 for development of application.
I have requirement of Multiple Date selection in ADF using in built Date Components.
I have looked at af:selectinputdate and af:choosedate components for this requirement.. I found that we can choose only single date from these components. Is it possible to select more than one date from any of these two components. ??
Please help me in solving this..
thanks in advance..
Thanks,
Ravi.Hi Vervecken,
Please find my requriements below:
Do you want to select multiple individual dates? Is there a maximum number of dates to select?
Yes multiple Individual dates... No max number of dates selection.Do you want to select a "date range"? Do you want to select multiple "date ranges"?
date range i.e from and to is also fine.. but not multiple date range...Do you want to select multiple "data ranges" combined with multiple individual dates?
No.. Not required...Regards
Ravi -
How to configure the date format in toolbar of ADF Calendar
Hi,
In the weekly view of the ADF Calendar, the date on the toolbar of the calendar component is something like this "May 1,2011 - May 7,2011".
Is there a way to configure this. What changes need to be done to show this as "1 May 2011 - 7 May 2011".
Thanks,
DeepakSee Bug 13825615 - backport to 11.1.1.7.0 bug 13045234 - date format not supported in toolbar by ca
-
SQL Calendar using multiple date columns
Is there any way to have a Calendar look at more than one date column? I know that it is possible to have the calendar based on a range/interval, but I need to display multiple date columns e.g. Marketing Start Date and Sales Start Date. In the Calendar component it seems possible to only choose one 'Date Column'. Has anyone come across this or know of any workaround?
Is there any way to have a Calendar look at more than one date column? I know that it is possible to have the calendar based on a range/interval, but I need to display multiple date columns e.g. Marketing Start Date and Sales Start Date. In the Calendar component it seems possible to only choose one 'Date Column'. Has anyone come across this or know of any workaround?
-
Unable to view data in ADF calendar.
Hi,
I am working on an adf application that uses the ADF calendar component. I have created view object(with Entity Object) and have dragged and dropped the associated component from the data controls as an adf calendar on a jsf page. But 'm unable to run this application. The following exceptions occurs :
java.lang.NullPointerException
at oracle.adfinternal.view.faces.model.binding.FacesCtrlCalendarBinding$AdfmCalendarActivity.getStartDate(FacesCtrlCalendarBinding.java:1041)
at oracle.adf.view.rich.model.CalendarModel.isActivityInRange(CalendarModel.java:189)
at oracle.adfinternal.view.faces.model.binding.FacesCtrlCalendarBinding$AdfmCalendarModel._createCalendarActivities(FacesCtrlCalendarBinding.java:793)
at oracle.adfinternal.view.faces.model.binding.FacesCtrlCalendarBinding$AdfmCalendarModel._getActvitiesListMap(FacesCtrlCalendarBinding.java:750)
at oracle.adfinternal.view.faces.model.binding.FacesCtrlCalendarBinding$AdfmCalendarModel.getTimeActivities(FacesCtrlCalendarBinding.java:500)
at oracle.adfinternal.view.faces.renderkit.rich.CalendarListRenderer.encodeAll(CalendarListRenderer.java:152)
at oracle.adf.view.rich.render.RichRenderer.delegateRenderer(RichRenderer.java:1731)
at oracle.adfinternal.view.faces.renderkit.rich.CalendarRenderer.encodeAll(CalendarRenderer.java:439)
at oracle.adf.view.rich.render.RichRenderer.encodeAll(RichRenderer.java:1452)
at org.apache.myfaces.trinidad.render.CoreRenderer.encodeEnd(CoreRenderer.java:493)
at org.apache.myfaces.trinidad.component.UIXComponentBase.encodeEnd(UIXComponentBase.java:913)
at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1659)
at org.apache.myfaces.trinidad.render.CoreRenderer.encodeChild(CoreRenderer.java:606)
at oracle.adf.view.rich.render.RichRenderer.encodeChild(RichRenderer.java:3201)
at oracle.adfinternal.view.faces.renderkit.rich.PanelGroupLayoutRenderer._encodeChild(PanelGroupLayoutRenderer.java:447)
at oracle.adfinternal.view.faces.renderkit.rich.PanelGroupLayoutRenderer.access$1500(PanelGroupLayoutRenderer.java:30)
at oracle.adfinternal.view.faces.renderkit.rich.PanelGroupLayoutRenderer$EncoderCallback.processComponent(PanelGroupLayoutRenderer.java:734)
at oracle.adfinternal.view.faces.renderkit.rich.PanelGroupLayoutRenderer$EncoderCallback.processComponent(PanelGroupLayoutRenderer.java:637)
at org.apache.myfaces.trinidad.component.UIXComponent.processFlattenedChildren(UIXComponent.java:187)
at org.apache.myfaces.trinidad.component.UIXComponent.processFlattenedChildren(UIXComponent.java:318)
at org.apache.myfaces.trinidad.component.UIXComponent.encodeFlattenedChildren(UIXComponent.java:283)
at oracle.adfinternal.view.faces.renderkit.rich.PanelGroupLayoutRenderer.encodeAll(PanelGroupLayoutRenderer.java:360)
at oracle.adf.view.rich.render.RichRenderer.encodeAll(RichRenderer.java:1452)
at org.apache.myfaces.trinidad.render.CoreRenderer.encodeEnd(CoreRenderer.java:493)
at org.apache.myfaces.trinidad.component.UIXComponentBase.encodeEnd(UIXComponentBase.java:913)
at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1659)
at org.apache.myfaces.trinidad.render.CoreRenderer.encodeChild(CoreRenderer.java:606)
What I understand is that the activity or timezone is not setting properly. However, I'm not able to figure out which is incorrect?
Earlier it worked fine when an other view is used. Based on our requirements, I changed the view definition and few mappings. Now it is throwing this error.
Please help me.Arun,
Thanks for the response.
The Jdev version is 11.1.2.0.0.
Regarding the VO's, both are different VO's. The first VO(which worked fine) is a simple query and is based on EO.
My Second VO (Based on a database view) is not based on EO. is it mandatory that the VO should be Enity based?
However, in my pageDefinition file, I had all bindings as:
<action IterBinding="JtfTasksCal1Iterator" id="ExecuteWithParams" RequiresUpdateModel="true"
Action="executeWithParams">
<NamedData NDName="startDate" NDValue="#{bindings.JtfTasksCal1.startDate}" NDType="java.sql.Timestamp"/>
<NamedData NDName="endDate" NDValue="#{bindings.JtfTasksCal1.endDate}" NDType="java.sql.Timestamp"/>
<NamedData NDName="tz" NDValue="#{bindings.JtfTasksCal1.timeZoneId}" NDType="java.lang.String"/>
</action>
<calendar IterBinding="JtfTasksCal1Iterator" id="JtfTasksCal1" xmlns="http://xmlns.oracle.com/adf/faces/binding"
ActionBindingName="ExecuteWithParams">
<nodeDefinition DefName="oper.model.uiview.JtfTasksCalVO">
<AttrNames>
<Item Type="id" Value="TaskNumber"/>
<Item Type="providerId" Value="TaskStatus"/>
<Item Type="title" Value="TaskName"/>
<Item Type="startTime" Value="ScheduledStartDate"/>
<Item Type="endTime" Value="ScheduledEndDate"/>
<Item Type="tags" Value="TaskStatus"/>
<Item Type="custom" Value="ScheduledEndDate"/>
<Item Type="custom" Value="ScheduledStartDate"/>
<Item Type="custom" Value="TaskId"/>
<Item Type="custom" Value="TaskName"/>
<Item Type="custom" Value="TaskNumber"/>
<Item Type="custom" Value="TaskStatus"/>
<Item Type="custom" Value="TaskType"/>
</AttrNames>
</nodeDefinition>
<providerDefinition IterBindingName="JtfTasksCal1Iterator">
<AttrNames>
<Item Type="id" Value="TaskStatus"/>
<Item Type="displayName" Value="TaskName"/>
</AttrNames>
</providerDefinition>
</calendar>
Is there anything missed here?
And there is no Timezone specified in trinidad-config.xml. If the timezone is not specified here, then how it picksup the timezone? -
I want to print a calendar by specifying the date range
I want to be able to print from ICal in a 4 week block but not by month. Our calendar is updated regularly and I want to be able to print out the forward 4 weeks, not this month which gives me dates already past.
And I do not want to print out 4 individual weeks.
I know how to print Month and Week but these don't do it for me.
How can I specify a date range?
Cheers
RustyHello @jgolf ,
I would like to direct your attention to the following post by PrintApper .
HP Apps Service Retired on several printers
Aardvark1
I work on behalf of HP
Please click “Accept as Solution ” if you feel my post solved your issue, it will help others find the solution.
Click the “Kudos Thumbs Up" on the right to say “Thanks” for helping! -
Possible to do limited date range changes in Calendar?
If I set up a filter, say, for days since my last sync AND I'm doing a two-way sync, will only those changes sincy my last sync be synced or will I lose everything not in that date range? Since I make changes to the calendar in Outlook and on the device this is especially important to me. This could save me a lot of time, but I don't want to lose any other calendar data
Also, I assume that I set the filter to use 'start date' and uncheck the box that says ' Delete from device any data that does not match the filter'. I am using DM 4.6 and OS 4.3
IrwinII
Please remember to "Accept as Solution" the post which solved your thread. If I or someone else have helped you, please tell us you "Like" what we had to say at the bottom right of the post.Hi Mark,
Yes, you can pass a date range value to the SUbreport!
Here's how its done:
1) Create a formula in the Main report; call it Start_date:
Minimum({?Date_parameter})
2) Create a second formula in the Main report and call it End_date:
Maximum({?Date_parameter})
3) Insert the sub-report and then Right-click the sub-report > Select Change Subreport links > Move the Start_date and End_date formulas to 'Fields to Link to' area and make sure you uncheck the 'Select data in subreport based on field' option.
4) Edit the sub-report (Right-click > Edit) and insert a Record Selection formula to include the parameters from the Main Report.
Go to Report > Selection Formulas > Record:
{date_field} >= {?Pm-@Start_date} and {date_field} <= {?Pm-@End_date}
Hope this helps!
-Abhilash -
Help with PowerShell to delete a date range of Calendar meetings
I'm trying to delete all Calendar items within a date range, from a mailbox. But first I'd like to just make sure my date filter is actually working.
Here is what i HAVE working:
Search-Mailbox ME -SearchQuery "Received:01/01/2010..03/18/2010" -EstimateResultOnly
This works, it gives me a count of all things in my mailbox
Search-Mailbox ME -SearchQuery kind:meetings -EstimateResultOnly
This works, it gives me a count of all Meetings in my Calendar.
I reallly need now to get the date range to work in conjunction with the kind:meetings.
How can I do that?Hi,
The results include the deleted meetings. I test it in my lab.
So the command to delete Calendar meetings with a date range is this:
Search-Mailbox "username" -SearchQuery "Received:01/01/2010..3/18/2015 kind:meetings" –EstimateResultOnly -DeleteContent
Best Regards.
Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact [email protected]
Lynn-Li
TechNet Community Support
Maybe you are looking for
-
HP solution center will not recognize my printer
I have a all in one 7410. I have an HP laptop with vista and another with windows 7. I have uninstalled reinstalled and updated all the software, patches etc. I took off the firewall. I cannot get either of these computers to work anymore to scan. I
-
Help! My Nokia N8 battery drains to 0% in 8 hours
Hello everyone, First of all, I'd like to state that I have read a lot and please do not advise things like "turn off GPS, bluetooth, etc, etc, etc,". It's not that. There is NOTHING running in my cellphone. I charged it completely to 100% (until hea
-
Whatsapp last seen timestamp problem
I turned off the "last seen timestamp" and I can't turn it back on(I've waited more than 24 hours and still it says that I need to wait 24 hours) I've tried changing the calendar a few days further and it telling me cannot connect to whatsapp service
-
No audio output device is installed(code 10 error), in compaq presario v6000
Hi, I have compaq presario v6608AU laptop with vista OS installed I got a small red cross mark near the sound icon in the taskbar. I read the forum and tried all possible ways to get back the sound but nothing worked. when i switched on the bluetooth
-
I don't know what is going on. I entered the code 3 times and still get the same message.