List of All dates.
Hi,
In Select options i am passing date range, in the output i want all the dates which are in the range.
Thanks in Advance,
Santosh
Hi,
Check the code
tables vbak.
select-options s_erdat for vbak-erdat.
data: creation_date type d occurs 0 with header line,
date_count type i.
start-of-selection.
loop at s_erdat.
if s_erdat-high is initial.
append s_erdat-low to creation_date.
else.
clear date_count.
date_count = s_erdat-high - s_erdat-low .
add 1 to date_count.
creation_date = s_erdat-low.
append creation_date.
do date_count times.
add 1 to creation_date.
append creation_date.
enddo.
endif.
endloop.
sort creation_date.
loop at creation_date.
write : / creation_date.
endloop.
[/code]
Regards,
Raj.
Similar Messages
-
I chose new installation instead of update from 613 to 616. The new installation is missing all the data, and app data, notes, etc. The previous backup is nolonger listed, only new one for 616, anyway to restore 613 with data?
A backup was listed for earlier today, I did a backup before new installation. Once new installation, it did an auto backup of new installation, and only this one is listed.
This matches documentation, it says cannot restore to earlier version from itunes. Do I have to do a restore factory settings to see previous version backup, and restore this earlier version? -
Getting all dates of a particular month and year
I want to get list of all dates of a particular month and year .
How to get using Calendar List?Create a Calendar object. Set it's month and year. Then call getActualMaximum(Calendar.DAY_OF_MONTH); on the Calendar object. That will tell you how many days are in the month of that year.
-
How can i view a list of all upcoming dates in my calendar?
i love my iphone 5 and use the calendar function allot to record upcoming meetings etc. Is there any way I can view a list of all of my events in my calendar? i dont have a pc or a mac and just use my iphone exclusively but the way the calendar is structured it seems to me quite limited in the way i can see whats coming up, can anyone help?
When observing the calendar in the date mode, you can tap on the 3 lines to the left of the search glass and that will put the device into the list mode. This will display the list that you can scroll through.
-
Ical not storing all data & cant initialize lists
okay so im trying to store all ical data in seperate lists for hours months years and the actual event ect....it worked fine for a while but now its not storing all the events....and then when it did it would carry over from one run to another. I figured out that was probably because they were properties but when i make the lists global i get a "this variable is not initialized" problem. and even if i somehow managed to fix that its still not reading in all the data. ive been at this for 2 hours and cant see the problem. please help:
variable defs:
(*System Variables*)
global running_processes
global _weekday
global _date
global _month
global _year
global _hours
global _minutes
global _seconds
global time_ofday
(*iCal Variables*)
global iCal_Open
global iCal_Run
global iCal_Calendars
global iCal_Events
global icaleventsstore
global icaleventslast
global iCalEvents_StartMonth
global iCalEvents_StartDate
global iCalEvents_Startyear
global iCalEvents_Starthours
global iCalEvents_StartMinutes
global iCalEvents_EndMonth
global iCalEvents_EndDate
global iCalEvents_Endyear
global iCalEvents_Endhours
global iCalEvents_EndMinutes
global iCalEventsStart
global iCalEventsEnd
code to split up dates and date:
on Ref_Events()
proc()
if running_processes contains "iCal" then
(*if iCal is open do the code as normal*)
set iCal_Run to 1
set iCal_Open to 1
tell application "iCal"
set iCalEventsStart to the start date of every event in every calendar
set iCalEventsEnd to the end date of every event in every calendar
set iCal_Events to the summary of every event in every calendar
set x to 1 --holds calendar to be used
set y to 1 --holds event to be used
repeat while x is less than or equal to the number of items in iCal_Events
repeat while y is less than or equal to the number of items in item x of iCal_Events
get item y in item x in iCalEventsStart as string
set temp_date to the result
--start dates
set iCalEvents_StartMonth to iCalEvents_StartMonth & the second word of temp_date
set iCalEvents_StartDate to iCalEvents_StartDate & the third word of temp_date
set iCalEvents_Startyear to iCalEvents_Startyear & the fourth word of temp_date
set iCalEvents_Starthours to iCalEvents_Starthours & the fifth word of temp_date
set iCalEvents_StartMinutes to iCalEvents_StartMinutes & the sixth word of temp_date
--end dates
get item y in item x in iCalEventsEnd as string
set temp_date to the result
set iCalEvents_EndMonth to iCalEvents_EndMonth & the second word of temp_date
set iCalEvents_EndDate to iCalEvents_EndDate & the third word of temp_date
set iCalEvents_Endyear to iCalEvents_Endyear & the fourth word of temp_date
set iCalEvents_Endhours to iCalEvents_Endhours & the fifth word of temp_date
set iCalEvents_EndMinutes to iCalEvents_EndMinutes & the sixth word of temp_date
--event description
get item y in item x in iCal_Events as string
set temp_event to the result as string
set icaleventsstore to icaleventsstore & temp_event
set y to y + 1
end repeat
set x to x + 1
end repeat
end tell
else
(*if iCal is not open do the code then close it*)
if iCal_Run is 0 then
set iCal_Run to 1
tell application "iCal"
set iCalEventsStart to the start date of every event in every calendar
set iCalEventsEnd to the end date of every event in every calendar
set x to 1 --holds calendar to be used
set y to 1 --holds event to be used
repeat while x is less than or equal to the number of items in iCalEventsStart
repeat while y is less than or equal to the number of items in item x of iCalEventsStart
get item y in item x in iCalEventsStart as string
set temp_date to the result
--start dates
set iCalEvents_StartMonth to iCalEvents_StartMonth & the second word of temp_date
set iCalEvents_StartDate to iCalEvents_StartDate & the third word of temp_date
set iCalEvents_Startyear to iCalEvents_Startyear & the fourth word of temp_date
set iCalEvents_Starthours to iCalEvents_Starthours & the fifth word of temp_date
set iCalEvents_StartMinutes to iCalEvents_StartMinutes & the sixth word of temp_date
--end dates
get item y in item x in iCalEventsEnd as string
set temp_date to the result
set iCalEvents_EndMonth to iCalEvents_EndMonth & the second word of temp_date
set iCalEvents_EndDate to iCalEvents_EndDate & the third word of temp_date
set iCalEvents_Endyear to iCalEvents_Endyear & the fourth word of temp_date
set iCalEvents_Endhours to iCalEvents_Endhours & the fifth word of temp_date
set iCalEvents_EndMinutes to iCalEvents_EndMinutes & the sixth word of temp_date
--event description
get item y in item x in iCal_Events as string
set temp_event to the result as string
set icaleventsstore to icaleventsstore & temp_event
set y to y + 1
end repeat
set x to x + 1
end repeat
end tell
quit application "iCal"
end if
end if
if icaleventsstore is not icaleventslast then
say "new events stored in I Cal. Would you Like to View a List of all events?"
display dialog "View List of Events?" buttons {"Yes", "No"} default button 2
if the button returned of the result is "Yes" then
choose from list icaleventsstore with prompt "All the Current Events"
else
-- action for 2nd button goes here
end if
set icaleventslast to icaleventsstore
end if
end Ref_EventsYou need to be careful when using conditional statements to set global variables (the global declaration does not set any values). I can't tell from the just the one handler you posted, but an example would be the iCal_Run variable - unless it is declared somewhere else, it won't have a value if there isn't an iCal process.
-
Listing order and dates of my photos have all changed and now it is a mess in my photo library! I tried to list them again by date, but it didn't fix the problem. What to do?
If your preferences keep getting messed up try this: make a temporary, backup copy (if you don't already have a backup copy) of the library and try the following:
1 - delete the iPhoto preference file, com.apple.iPhoto.plist, that resides in your
User/Home()/Library/ Preferences folder.
2 - delete iPhoto's cache file, Cache.db, that is located in your
User/Home()/Library/Caches/com.apple.iPhoto folder.
Click to view full size
3 - launch iPhoto and try again.
NOTE: If you're moved your library from its default location in your Home/Pictures folder you will have to point iPhoto to its new location when you next open iPhoto by holding down the Option key when launching iPhoto. You'll also have to reset the iPhoto's various preferences.
Happy Holidays -
List of all objects in the data dictionary
How to capture the list of all objects in the data dictionary named like PSDFDI and verify they are granted to the FDIREADR role
See the database security guide http://docs.oracle.com/cd/B28359_01/network.111/b28531/authorization.htm#BABFHBFH
Finding Information About User Privileges and Roles
This section discusses the system views that have the grant information.
The tricky part of this is that because roles can be granted to other roles the data is hierarchical.
So start with the grants made to the FDIREADR role. So referring to the doc above;
select * from role_role_privs where role = 'FDIREADR'will list the roles granted to your role.
You will want to look at ROLE_ROLE_PRIVS, ROLE_TAB_PRIVS and ROLE_SYS_PRIVS.
I suggest you walk thru the views manually to see how the information is related. Then write a test script that queries the views for you. -
List all dates in date range even if there is no record for that day
Hi,
I have a really simple report but am having a problem with dates.
I want to list sales per day over a date range (start date and end date parameters).
The data i am working with may not have sales on every day which is causing grief with my average calculations.
I need to capture days in current month which i have with DateDiff ("d", {?Start Date}, {?End Date}+1)
Then days elapsed in the month. This is where my problem is. I have grouped my data by day to get day totals, and have then attempted to use a summary on DISTINCT COUNT to get the result i need. The problem is it only counts the lines that are there, so if a day has no sales it is skipped and the count is incorrect and then the average calculations i have are not correct.
Help will be much appreciated.YOu can not create data that does not exist.
You will need to add in a table which has all dates and make that you first table with all other data joined with a left out from this date table.
Ian -
How to generate a list of pick dates for all scheduled deliveries?
Hi!
How to generate a list of pick dates for all scheduled deliveries?
What all the tables involved?
Thanks
Imran.Thanks for the suggestion concerning the file path. And certainly it would have been nice to have done this before beginning. However this is a project that has been around for quite a while, and the files have been moved into different bins. And now the project sequence is being revised.
So the problem is, worded slightly differently, how can I search all of the bins for the files that are used just by this sequence, ignoring the files which are used by other sequences? Or, how can I get a list of the file paths of the files that are used in the sequence? -
Calendar List not displaying all dates after iOS 5.0.1 OTA update
Following the recent iOS 5.0.1 OTA update, in list mode my calendar now only displays days on which I have entries. Previously it showed a list of all days. Can this be changed by a setting somewhere or is this a bug in the iOS?
All was good, My battery and SIRI were working fine, then my bad luck that i updated my phone to iOS 5.0.1 (which is promissing better battery life and Siri funcionality). After updating all went crazy, SIRI is not working any more (it says cant do any thing right now and try later, and i am now trying from 2 days), Battery is not lasting longer then 12 hrs as it was better before. I am seriously thinking to go back to my iPhone 4 and distroy iPhone 4S
APPLE????? i need answers???? -
All contact birthdays are now listed as the date before
Weird problem that affects my iCal and Address Book. I've recently noticed that every single one of my contacts' birthdays are now listed as the date prior to the actual birthday (the date that was entered in the first place). Not sure when this happened, but it has been since upgrading to Snow Leopard (but I'm not really sure that it occurred because of the upgrade). Has anyone had this problem? I'd love a quick fix, one that doesn't require me manually changing every single contact's birthday. But more than that, I'd like to know why this happened in order to hopefully prevent it in the future. Thanks.
I just discovered the same thing.Had to got through and manually change every birthday. Interestingly, the change was in Addressbook, which is where iCal gets its info.
-
I have a multi-select parameter that can have a list of thousands of entries. In general, the user will pick a few entries from the list or "Select All". If they check "Select All", I would much prefer that I get a NULL or an empty string
instead of a list of all values. Is there any way to do that?
In experimenting with a work-around, I tried putting an "All" label with a null value in the list, but it is ignored (does not display in the drop-down). If I use an empty string for the value, my "All" entry does get displayed, but so
does "Select All", which is confusing. Is there a way to suppress "Select All"?
- MarkI adapted the following from a workaround posted by JNeo on 4/16/2010 at 11:14 AM at
http://connect.microsoft.com/SQLServer/feedback/details/249227/multi-value-select-all-parameter-in-reporting-services
To get a null value instead of the full list of all values when "Select All" is chosen:
1) Add a multi-value parameter "MyParam" that lists the values to choose.
2) Add a DataSet "ParamCount" identical to the one used by "MyParam", except that it returns a single column named [Count] that is a COUNT(*) of the same data
3) Add a parameter "MyParamCount", set it to hidden and internal, then set the default value to 'Get values from a query', choosing "ParamCount" for the Dataset and the one [Count] column for the Value field.
4) Change the parameter for the main report DataSet so that instead of using [@MyParam], it uses this expression:
=IIF(Parameters!MyParam.Count =
Parameters!ParamCount.Value, Nothing, Join(Parameters!MyParam.Value, ",")) -
How to find out the list of all user's whose passwords are expired
Hi
i had tried to find out the list of all user's whose passwords are expired.
i had written some jndi code by finding the max age and then find out the current time and subtracted this current time from max age using the following code
"Attributes attbts=ctx.getAttributes("cn=pwdpolicy");
String maxAge=(String)attbts.get("pwdMaxAge").get();
Date Today = new Date();
System.out.println("maxAge"+maxAge);
long curTime=(Today.getTime())-Long.parseLong(maxAge)*1000;"
and then parse it and create a string time as follows
String time=year+month+day+hour+minute+second+"Z";
where "year" "month" etc were parsed from curTime
now i can get the list by using following code
"String filterCriteria="(&(objectclass=person)(pwdChangedTime>="+time+")";
NamingEnumeration results = ctx.search(baseDN,filterCriteria, sc); "
but the current time which i am getting is the time of my system not the time of ldap server
so my questions are following;
1.Can there is any way by which i can get the tivole sever's system time.
2.If there is no way then can you suggest any other way to find out the list of user's whose passwords are expired.
please help me.
Thanks.
Krishan Rathi.Hi,
Thanx for ur reply..
I got the list from the table...
thanks,
sivagami -
After a couple of years of trouble free operation, one of the lists in our SharePoint Foundation site suddenly (overnight) started presenting the error against Datasheet views on lists.
The view returns a large number of items when working correctly c.6K - however Throttling Settings have been adjusted accordingly some time ago without detrimental affect on SharePoint users and network in general. As admin and therefore throttling at 20k
items the error message still presents.
The view was working fine at 4:30pm Wednesday 27/3, but was returning the error at 8:30am the next morning. To my knowledge very few items (if any) had been added to the list between those times and no system level changes had been made (SharePoint,
SQL Express, or virtual Windows 2008R2 server).
The problem is most apparent on 2 lists in SharePoint. I've checked that the settings within SharePoint admin are set to deal with queries that should accommodate the
number of rows that are returned by the views associated with that list. It is still possible to create new items to the list and access data via 'standard views' that are presented with groups that are collapsed.
Items in Documents Libraries on other parts of SharePoint and within the same subsite can be accessed at what feels like pretty normal speed -though small query size
may mean the problem is masked to a large extent.
More Specific
The lists still open in Standard View -though much more slowly than was the case before the above error started to present.
List Details
Referrals Tracker (10,442 items) -the list was 10,420 something items on Wednesday when all was working fine.
LD Tracker (4,390 items)
Both lists have grown incrementally over the period of a couple of years rather than by adding a block of data to the list. Items are added/ updated one at a time using the associated
form or directly into cells within a datasheet view.
That it is also experienced against the smaller list suggests to me that the number of items in the Referrals Tracker is not the main factor here.
In attempting to resolve the issue I have managed to get datasheet views working that deliver 100 items and c2k items. Both views present much more slowly than we would normally expect.
Throttling Settings
List view limit - 12K items - has been this high for some time without damaging SharePoint performance across the company.
Actions Taken So Far (no improved performance seen)
The SharePoint Foundation WSS Content DB did was closer to the 10GB SQL Express limit earlier this month, however a clear down and rationalisation of versioning settings
was undertaken to ensure that did not become a problem going forward.
We did a Shrink on Thursday (the day the issue started presenting) to rationalise whitespace as all indicators were that this was where the problem may lie, but this has
not resolved the problem.
The WSS Content DB now sits at c5.5GB.
What I Need to Know
1) I'd like to understand what is causing the problem?
2) What the fix is? or,
3) How I might go about diagnosing the problem further to arrive at a fix.
With all the above, I'm part wondering if the problem is related to the virtual server or poss SQL Express related rather than being a 100% SharePoint issue?Hi
afearn,
More often this is related to columns which are not editable by user, some columns are not editable in datasheet view. Please check if there is any new column addition and then you started getting this issue.
Also datasheet view displays all items on same page so definitely it takes little long time then load in standard view.
Let us know your results, thanks
Regards,
Pratik Vyas | SharePoint Consultant |
http://sharepointpratik.blogspot.com
Posting is provided AS IS with no warranties, and confers no rights
Please remember to click Mark As Answer if a post solves your problem or
Vote As Helpful if it was useful. -
I have a List which is having around 14000 items in it.while opening that list in datasheet view it is giving error .
Below is a summary of the issue:
After selecting datasheet view beow error occurs:
"Cannot connect to the server at this time. You can continue working with this list, but some data may not be available."
"Unable to retrieve all data."
The item counts displays say 100 out of 14000 items.
Exporting List to excel is giving only 2000 records out of 14000 records.
Other Observations -
This is happening to only one list on the site .There are other lists in the site whose no. of records is equal to 8000 to 9000.They are working absolutely fine without any error.
Also, If I am saving this list as a template and creating another list with it ,then it is working absolutely fine with 14000 records,so the issue does not seem to be related with no. of records as the template list is working fine.
I have checked the Alternate access mapping setting ,its fine.
It should not be related to lookup,datefield or any other column as the list created from it template is working fine with all these columns.
I checked below links also ,but doesn't seem to work in my case.
http://social.technet.microsoft.com/forums/en-US/sharepointadminprevious/thread/974b9168-f548-409b-a7f9-a79b9fdd4c50/
http://social.technet.microsoft.com/Forums/en-US/smallbusinessserver/thread/87077dd8-a329-48e8-b42d-d0a8bf87b082
http://social.msdn.microsoft.com/Forums/en-US/sharepointgeneral/thread/dc757598-f670-4229-9f8a-07656346b9b0I have spent two days to resolve this issue. Microsoft has released two KBs with reference to this issue...but are not appearing in search results at the top.
I am sharing my finding.
1. First install the
KB2552989 (Hopefully you might have already installed it. The KB detetcts it and informs the user.)
2. Then update registry by adding new key for data fetch timeout as mentioned inKB2553007
These two steps resolved the issue in our environment. Hope it might help others as well.
Pradip T. ------------- MCTS(SharePoint 2010/Web)|MCPD(Web Development) https://www.mcpvirtualbusinesscard.com/VBCServer/paddytakate/profile
Maybe you are looking for
-
30g iPod connection problem to my TV
Hello I have a 30G iPod and I am working with windows. I am trying to connect my iPod to my TV with an AV cable. I do get sound but no video. My TV has a white and a yellow plug for the AV but no red. However, for my Gamecube and DVD player this has
-
Contribute Losing Connection to Server
I have Contribute 6.5 running on a MAC OS 10.6.8. Everytime Contribute closes it loses the connection to the server and has to be reset. The error returned is it cannot find the files on the server. Any ideas? Thanks.
-
How to run a java class from its package directory
Hi, I hope someone can help me on the following .... Let say I have a Test.java class with the package definition: "package com.ams.eai.mq.fileAdapter;". I compiled the class into the directory c:\myJava\client\com\ams\eai\mq\fileAdapter. I have c:\m
-
Can't view single file in organizer. Photoshop Elements 13 Mac
When I double click on a photo the screen is gray with a question mark. How do I view a single file?
-
Problem with updating adobe ilustrator CS6
Hi I have problem with updating adobe ilustrator CS6. Error code: U43M1D204