Missing Calendar Function for PRIVAT Events
Hi,
can't set an event as privat. How can this be done. Don't like to make this visible in our company.
I'm syncing to exchange via Air.
Thx
HW
I just bought and synced my iPhone yesterday - same issue. I noticed that all the exceptions in my recurring appointments dropped the notes. If I changed the note itself, or the date of one of the recurrences, it deleted the note entirely. I tried deleting the series and recreating and then syncing and editing, but still the same issue. I can't find anything on the web or in the forums.
Similar Messages
-
Calendar Functionality for a date field in HTML of a ITS service
Hi
I am working with SRM EBP module we want to add date help(with calendar function) to existign date fields in Shopping cart and PO screens . I found some HTML and Javascripts in SYSTEM and BBPGLOBAL services (named as calendar)but not sure which ones to use if anyone used date functionality or even have access to Standard SAP ITS screens that already have date field with calendar fuctionality can you help???????????????
Thanks in AdvanceHi
Let me first thank you for the quick response and timely help you provided calendar popup works great but one minor issue i am not able to click on the date entry and bring the field back into the field not sure if this funcitonality is in show_calendar.
I would really appreciate if you get time to look at below i am almost there with your help......thanks again
Here are the steps I did
I have a HTML page SAPLBBP_SC_UI_ITS screen 300 in SRM module , I created a new HTML page (zcalendar.html) in the same internet service BBPSC01 as suggested and I included in my HTML page SAPLBBP_SC_UI_ITS screen 300 and also I added below code to add a icon and a href call to the show_calendar function.
Code works great I get the popup but when I double click on the date it is not selecting the date into the field back .
Any thoughts??????
<!-- Start ghantavine -->
`include (~service="bbpsc01", ~name="zcalendar.html")`
<!-- End ghantavine -->
<!-- 10/24/05 ghantavine--delivary date -->
`TR()`
`if (GS_SCR_BASIC_I-DELIV_DATE.visible)`
`TR()`
`if (gs_scr_basic_i-deliv_date.disabled)`
`TD(class="label", nowrap="x",
active="")``TXT_BASIC_I-DELIV_DATE.label`
`TD(class="label", nowrap="x", active="")``gs_scr_basic_i-deliv_date.value`
`else`
`TD(class="label", nowrap="x", active="")`<label
for="`GS_SCR_BASIC_I-DELIV_DATE.name`">`TXT_BASIC_I-DELIV_DATE.label`</label>
`TD(class="data", nowrap="x")`
<input type="text" id="GS_SCR_BASIC_I-DELIV_DATE"
name="GS_SCR_BASIC_I-DELIV_DATE" value="`GS_SCR_BASIC_I-DELIV_DATE.value`"
maxlength="010" size="008">
<a href=http://mail.yahoo.com/config/login?/"_javascript:show_calendar();">
<img id="anchor1" src="`mimeurl(~service="bbpglobal",
~name="images/button/f4.gif", ~language="", ~theme="99")`" />
</a>
`end`
`TR()` `Lines()`
`end`
<!-- 10/24/05 ghantavine--delivary date -->
below is the showcalendar code
Hi , u save this as a html file and call this show_calendar fn from Onclick button of your Calendar image .
// For generating the calendar
var weekend = [0,6];
var weekendColor = "#e0e0e0";
var fontface = "Verdana";
var fontsize = 2;
var gNow = new Date();
var ggWinCal;
isNav = (navigator.appName.indexOf("Netscape") != -1) ? true : false;
isIE = (navigator.appName.indexOf("Microsoft") != -1) ? true : false;
Calendar.Months = ["January", "February", "March", "April", "May", "June",
"July", "August", "September", "October", "November", "December"];
// Non-Leap year Month days..
Calendar.DOMonth = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31];
// Leap year Month days..
Calendar.lDOMonth = [31, 29, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31];
function Calendar(p_item, p_WinCal, p_month, p_year, p_format) {
if ((p_month == null) && (p_year == null)) return;
if (p_WinCal == null)
this.gWinCal = ggWinCal;
else
this.gWinCal = p_WinCal;
if (p_month == null) {
this.gMonthName = null;
this.gMonth = null;
this.gYearly = true;
} else {
this.gMonthName = Calendar.get_month(p_month);
this.gMonth = new Number(p_month);
this.gYearly = false;
this.gYear = p_year;
this.gFormat = p_format;
this.gBGColor = "white";
this.gFGColor = "black";
this.gTextColor = "black";
this.gHeaderColor = "black";
this.gReturnItem = p_item;
Calendar.get_month = Calendar_get_month;
Calendar.get_daysofmonth = Calendar_get_daysofmonth;
Calendar.calc_month_year = Calendar_calc_month_year;
Calendar.print = Calendar_print;
function Calendar_get_month(monthNo) {
return Calendar.Months[monthNo];
function Calendar_get_daysofmonth(monthNo, p_year) {
Check for leap year ..
1.Years evenly divisible by four are normally leap years, except for...
2.Years also evenly divisible by 100 are not leap years, except for...
3.Years also evenly divisible by 400 are leap years.
if ((p_year % 4) == 0) {
if ((p_year % 100) == 0 && (p_year % 400) != 0)
return Calendar.DOMonth[monthNo];
return Calendar.lDOMonth[monthNo];
} else
return Calendar.DOMonth[monthNo];
function Calendar_calc_month_year(p_Month, p_Year, incr) {
Will return an 1-D array with 1st element being the calculated month
and second being the calculated year
after applying the month increment/decrement as specified by 'incr' parameter.
'incr' will normally have 1/-1 to navigate thru the months.
var ret_arr = new Array();
if (incr == -1) {
// B A C K W A R D
if (p_Month == 0) {
ret_arr[0] = 11;
ret_arr[1] = parseInt(p_Year) - 1;
else {
ret_arr[0] = parseInt(p_Month) - 1;
ret_arr[1] = parseInt(p_Year);
} else if (incr == 1) {
// F O R W A R D
if (p_Month == 11) {
ret_arr[0] = 0;
ret_arr[1] = parseInt(p_Year) + 1;
else {
ret_arr[0] = parseInt(p_Month) + 1;
ret_arr[1] = parseInt(p_Year);
return ret_arr;
function Calendar_print() {
ggWinCal.print();
function Calendar_calc_month_year(p_Month, p_Year, incr) {
Will return an 1-D array with 1st element being the calculated month
and second being the calculated year
after applying the month increment/decrement as specified by 'incr' parameter.
'incr' will normally have 1/-1 to navigate thru the months.
var ret_arr = new Array();
if (incr == -1) {
// B A C K W A R D
if (p_Month == 0) {
ret_arr[0] = 11;
ret_arr[1] = parseInt(p_Year) - 1;
else {
ret_arr[0] = parseInt(p_Month) - 1;
ret_arr[1] = parseInt(p_Year);
} else if (incr == 1) {
// F O R W A R D
if (p_Month == 11) {
ret_arr[0] = 0;
ret_arr[1] = parseInt(p_Year) + 1;
else {
ret_arr[0] = parseInt(p_Month) + 1;
ret_arr[1] = parseInt(p_Year);
return ret_arr;
// This is for compatibility with Navigator 3, we have to create and discard one object before the prototype object exists.
new Calendar();
Calendar.prototype.getMonthlyCalendarCode = function() {
var vCode = "";
var vHeader_Code = "";
var vData_Code = "";
// Begin Table Drawing code here..
vCode = vCode + "<TABLE BORDER=1 BGCOLOR=\"" + this.gBGColor + "\">";
vHeader_Code = this.cal_header();
vData_Code = this.cal_data();
vCode = vCode + vHeader_Code + vData_Code;
vCode = vCode + "</TABLE>";
return vCode;
Calendar.prototype.show = function() {
var vCode = "";
this.gWinCal.document.open();
// Setup the page...
this.wwrite("<html>");
this.wwrite("<head><title>Calendar</title>");
this.wwrite("</head>");
this.wwrite("<body " +
"link=\"" + this.gLinkColor + "\" " +
"vlink=\"" + this.gLinkColor + "\" " +
"alink=\"" + this.gLinkColor + "\" " +
"text=\"" + this.gTextColor + "\">");
this.wwriteA("<FONT FACE='" + fontface + "' SIZE=2><B>");
this.wwriteA(this.gMonthName + " " + this.gYear);
this.wwriteA("</B><BR>");
// Show navigation buttons
var prevMMYYYY = Calendar.calc_month_year(this.gMonth, this.gYear, -1);
var prevMM = prevMMYYYY[0];
var prevYYYY = prevMMYYYY[1];
var nextMMYYYY = Calendar.calc_month_year(this.gMonth, this.gYear, 1);
var nextMM = nextMMYYYY[0];
var nextYYYY = nextMMYYYY[1];
this.wwrite("<TABLE WIDTH='100%' BORDER=1 CELLSPACING=0 CELLPADDING=0 BGCOLOR='#e0e0e0'><TR><TD ALIGN=center>");
this.wwrite("[<A HREF=\"" +
"javascript:window.opener.Build(" +
"'" + this.gReturnItem + "', '" + this.gMonth + "', '" + (parseInt(this.gYear)-1) + "', '" + this.gFormat + "'" +
");" +
"\"><<<\/A>]</TD><TD ALIGN=center>");
this.wwrite("[<A HREF=\"" +
"javascript:window.opener.Build(" +
"'" + this.gReturnItem + "', '" + prevMM + "', '" + prevYYYY + "', '" + this.gFormat + "'" +
");" +
"\"><<\/A>]</TD><TD ALIGN=center>");
this.wwrite("[<A HREF=\"javascript:window.print();\">Print</A>]</TD><TD ALIGN=center>");
this.wwrite("[<A HREF=\"" +
"javascript:window.opener.Build(" +
"'" + this.gReturnItem + "', '" + nextMM + "', '" + nextYYYY + "', '" + this.gFormat + "'" +
");" +
"\">><\/A>]</TD><TD ALIGN=center>");
this.wwrite("[<A HREF=\"" +
"javascript:window.opener.Build(" +
"'" + this.gReturnItem + "', '" + this.gMonth + "', '" + (parseInt(this.gYear)+1) + "', '" + this.gFormat + "'" +
");" +
"\">>><\/A>]</TD></TR></TABLE><BR>");
// Get the complete calendar code for the month..
vCode = this.getMonthlyCalendarCode();
this.wwrite(vCode);
this.wwrite("</font></body></html>");
this.gWinCal.document.close();
Calendar.prototype.showY = function() {
var vCode = "";
var i;
var vr, vc, vx, vy; // Row, Column, X-coord, Y-coord
var vxf = 285; // X-Factor
var vyf = 200; // Y-Factor
var vxm = 10; // X-margin
var vym; // Y-margin
if (isIE) vym = 75;
else if (isNav) vym = 25;
this.gWinCal.document.open();
this.wwrite("<html>");
this.wwrite("<head><title>Calendar</title>");
this.wwrite("<style type='text/css'>\n<!--");
for (i=0; i<12; i++) {
vc = i % 3;
if (i>=0 && i<= 2) vr = 0;
if (i>=3 && i<= 5) vr = 1;
if (i>=6 && i<= 8) vr = 2;
if (i>=9 && i<= 11) vr = 3;
vx = parseInt(vxf * vc) + vxm;
vy = parseInt(vyf * vr) + vym;
this.wwrite(".lclass" + i + " {position:absolute;top:" + vy + ";left:" + vx + ";}");
this.wwrite("-->\n</style>");
this.wwrite("</head>");
this.wwrite("<body " +
"link=\"" + this.gLinkColor + "\" " +
"vlink=\"" + this.gLinkColor + "\" " +
"alink=\"" + this.gLinkColor + "\" " +
"text=\"" + this.gTextColor + "\">");
this.wwrite("<FONT FACE='" + fontface + "' SIZE=2><B>");
this.wwrite("Year : " + this.gYear);
this.wwrite("</B><BR>");
// Show navigation buttons
var prevYYYY = parseInt(this.gYear) - 1;
var nextYYYY = parseInt(this.gYear) + 1;
this.wwrite("<TABLE WIDTH='100%' BORDER=1 CELLSPACING=0 CELLPADDING=0 BGCOLOR='#e0e0e0'><TR><TD ALIGN=center>");
this.wwrite("[<A HREF=\"" +
"javascript:window.opener.Build(" +
"'" + this.gReturnItem + "', null, '" + prevYYYY + "', '" + this.gFormat + "'" +
");" +
"\" alt='Prev Year'><<<\/A>]</TD><TD ALIGN=center>");
this.wwrite("[<A HREF=\"javascript:window.print();\">Print</A>]</TD><TD ALIGN=center>");
this.wwrite("[<A HREF=\"" +
"javascript:window.opener.Build(" +
"'" + this.gReturnItem + "', null, '" + nextYYYY + "', '" + this.gFormat + "'" +
");" +
"\">>><\/A>]</TD></TR></TABLE><BR>");
// Get the complete calendar code for each month..
var j;
for (i=11; i>=0; i--) {
if (isIE)
this.wwrite("<DIV ID=\"layer" + i + "\" CLASS=\"lclass" + i + "\">");
else if (isNav)
this.wwrite("<LAYER ID=\"layer" + i + "\" CLASS=\"lclass" + i + "\">");
this.gMonth = i;
this.gMonthName = Calendar.get_month(this.gMonth);
vCode = this.getMonthlyCalendarCode();
this.wwrite(this.gMonthName + "/" + this.gYear + "<BR>");
this.wwrite(vCode);
if (isIE)
this.wwrite("</DIV>");
else if (isNav)
this.wwrite("</LAYER>");
this.wwrite("</font><BR></body></html>");
this.gWinCal.document.close();
Calendar.prototype.wwrite = function(wtext) {
this.gWinCal.document.writeln(wtext);
Calendar.prototype.wwriteA = function(wtext) {
this.gWinCal.document.write(wtext);
Calendar.prototype.cal_header = function() {
var vCode = "";
vCode = vCode + "<TR>";
vCode = vCode + "<TD WIDTH='14%'><FONT SIZE='2' FACE='" + fontface + "' COLOR='" + this.gHeaderColor + "'><B>Sun</B></FONT></TD>";
vCode = vCode + "<TD WIDTH='14%'><FONT SIZE='2' FACE='" + fontface + "' COLOR='" + this.gHeaderColor + "'><B>Mon</B></FONT></TD>";
vCode = vCode + "<TD WIDTH='14%'><FONT SIZE='2' FACE='" + fontface + "' COLOR='" + this.gHeaderColor + "'><B>Tue</B></FONT></TD>";
vCode = vCode + "<TD WIDTH='14%'><FONT SIZE='2' FACE='" + fontface + "' COLOR='" + this.gHeaderColor + "'><B>Wed</B></FONT></TD>";
vCode = vCode + "<TD WIDTH='14%'><FONT SIZE='2' FACE='" + fontface + "' COLOR='" + this.gHeaderColor + "'><B>Thu</B></FONT></TD>";
vCode = vCode + "<TD WIDTH='14%'><FONT SIZE='2' FACE='" + fontface + "' COLOR='" + this.gHeaderColor + "'><B>Fri</B></FONT></TD>";
vCode = vCode + "<TD WIDTH='16%'><FONT SIZE='2' FACE='" + fontface + "' COLOR='" + this.gHeaderColor + "'><B>Sat</B></FONT></TD>";
vCode = vCode + "</TR>";
return vCode;
Calendar.prototype.cal_data = function() {
var vDate = new Date();
vDate.setDate(1);
vDate.setMonth(this.gMonth);
vDate.setFullYear(this.gYear);
var vFirstDay=vDate.getDay();
var vDay=1;
var vLastDay=Calendar.get_daysofmonth(this.gMonth, this.gYear);
var vOnLastDay=0;
var vCode = "";
Get day for the 1st of the requested month/year..
Place as many blank cells before the 1st day of the month as necessary.
vCode = vCode + "<TR>";
for (i=0; i<vFirstDay; i++) {
vCode = vCode + "<TD WIDTH='14%'" + this.write_weekend_string(i) + "><FONT SIZE='2' FACE='" + fontface + "'> </FONT></TD>";
// Write rest of the 1st week
for (j=vFirstDay; j<7; j++) {
vCode = vCode + "<TD WIDTH='14%'" + this.write_weekend_string(j) + "><FONT SIZE='2' FACE='" + fontface + "'>" +
"<A HREF='#' " +
"onClick=\"self.opener.document." + this.gReturnItem + ".value='" +
this.format_data(vDay) +
"';window.close();\">" +
this.format_day(vDay) +
"</A>" +
"</FONT></TD>";
vDay=vDay + 1;
vCode = vCode + "</TR>";
// Write the rest of the weeks
for (k=2; k<7; k++) {
vCode = vCode + "<TR>";
for (j=0; j<7; j++) {
vCode = vCode + "<TD WIDTH='14%'" + this.write_weekend_string(j) + "><FONT SIZE='2' FACE='" + fontface + "'>" +
"<A HREF='#' " +
"onClick=\"self.opener.document." + this.gReturnItem + ".value='" +
this.format_data(vDay) +
"';window.close();\">" +
this.format_day(vDay) +
"</A>" +
"</FONT></TD>";
vDay=vDay + 1;
if (vDay > vLastDay) {
vOnLastDay = 1;
break;
if (j == 6)
vCode = vCode + "</TR>";
if (vOnLastDay == 1)
break;
// Fill up the rest of last week with proper blanks, so that we get proper square blocks
for (m=1; m<(7-j); m++) {
if (this.gYearly)
vCode = vCode + "<TD WIDTH='14%'" + this.write_weekend_string(j+m) +
"><FONT SIZE='2' FACE='" + fontface + "' COLOR='gray'> </FONT></TD>";
else
vCode = vCode + "<TD WIDTH='14%'" + this.write_weekend_string(j+m) +
"><FONT SIZE='2' FACE='" + fontface + "' COLOR='gray'>" + m + "</FONT></TD>";
return vCode;
Calendar.prototype.format_day = function(vday) {
var vNowDay = gNow.getDate();
var vNowMonth = gNow.getMonth();
var vNowYear = gNow.getFullYear();
if (vday == vNowDay && this.gMonth == vNowMonth && this.gYear == vNowYear)
return ("<FONT COLOR=\"RED\"><B>" + vday + "</B></FONT>");
else
return (vday);
Calendar.prototype.write_weekend_string = function(vday) {
var i;
// Return special formatting for the weekend day.
for (i=0; i<weekend.length; i++) {
if (vday == weekend<i>)
return (" BGCOLOR=\"" + weekendColor + "\"");
return "";
Calendar.prototype.format_data = function(p_day) {
var vData;
var vMonth = 1 + this.gMonth;
vMonth = (vMonth.toString().length < 2) ? "0" + vMonth : vMonth;
var vMon = Calendar.get_month(this.gMonth).substr(0,3).toUpperCase();
var vFMon = Calendar.get_month(this.gMonth).toUpperCase();
var vY4 = new String(this.gYear);
var vY2 = new String(this.gYear.substr(2,2));
var vDD = (p_day.toString().length < 2) ? "0" + p_day : p_day;
/* switch (this.gFormat) {
case "MM\/DD\/YYYY" :
vData = vMonth + "\/" + vDD + "\/" + vY4;
break;
case "MM\/DD\/YY" :
vData = vMonth + "\/" + vDD + "\/" + vY2;
break;
case "MM-DD-YYYY" :
vData = vMonth + "-" + vDD + "-" + vY4;
break;
case "MM-DD-YY" :
vData = vMonth + "-" + vDD + "-" + vY2;
break;
case "DD\/MON\/YYYY" :
vData = vDD + "\/" + vMon + "\/" + vY4;
break;
case "DD\/MON\/YY" :
vData = vDD + "\/" + vMon + "\/" + vY2;
break;
case "DD-MON-YYYY" :
vData = vDD + "-" + vMon + "-" + vY4;
break;
case "DD-MON-YY" :
vData = vDD + "-" + vMon + "-" + vY2;
break;
case "DD\/MONTH\/YYYY" :
vData = vDD + "\/" + vFMon + "\/" + vY4;
break;
case "DD\/MONTH\/YY" :
vData = vDD + "\/" + vFMon + "\/" + vY2;
break;
case "DD-MONTH-YYYY" :
vData = vDD + "-" + vFMon + "-" + vY4;
break;
case "DD-MONTH-YY" :
vData = vDD + "-" + vFMon + "-" + vY2;
break;
case "DD\/MM\/YYYY" :
vData = vDD + "\/" + vMonth + "\/" + vY4;
break;
case "DD\/MM\/YY" :
vData = vDD + "\/" + vMonth + "\/" + vY2;
break;
case "DD-MM-YYYY" :
vData = vDD + "-" + vMonth + "-" + vY4;
break;
case "DD-MM-YY" :
vData = vDD + "-" + vMonth + "-" + vY2;
break;
default :
vData = vMonth + "\/" + vDD + "\/" + vY4;
vData = vY4vMonthvDD ;
//vData = vDD"."vMonth"."vY4;
return vData;
function Build(p_item, p_month, p_year, p_format) {
var p_WinCal = ggWinCal;
gCal = new Calendar(p_item, p_WinCal, p_month, p_year, p_format);
// Customize your Calendar here..
gCal.gBGColor="white";
gCal.gLinkColor="black";
gCal.gTextColor="black";
gCal.gHeaderColor="darkgreen";
// Choose appropriate show function
if (gCal.gYearly) gCal.showY();
else gCal.show();
function show_calendar() {
p_month : 0-11 for Jan-Dec; 12 for All Months.
p_year : 4-digit year
p_format: Date format (mm/dd/yyyy, dd/mm/yy, ...)
p_item : Return Item.
p_item = arguments[0];
if (arguments[1] == null)
p_month = new String(gNow.getMonth());
else
p_month = arguments[1];
if (arguments[2] == "" || arguments[2] == null)
p_year = new String(gNow.getFullYear().toString());
else
p_year = arguments[2];
if (arguments[3] == null)
p_format = "MM/DD/YYYY";
else
p_format = arguments[3];
vWinCal = window.open("", "Calendar",
"width=300,height=250,status=no,resizable=no,top=100,left=100");
vWinCal.opener = self;
ggWinCal = vWinCal;
Build(p_item, p_month, p_year, p_format);
Yearly Calendar Code Starts here
function show_yearly_calendar(p_item, p_year, p_format) {
// Load the defaults..
if (p_year == null || p_year == "")
p_year = new String(gNow.getFullYear().toString());
if (p_format == null || p_format == "")
p_format = "MM/DD/YYYY";
var vWinCal = window.open("", "Calendar", "scrollbars=yes");
vWinCal.opener = self;
ggWinCal = vWinCal;
Build(p_item, null, p_year, p_format); -
IOS 7 Calendar alerting for past events
Has anyone else experienced this ...
At 9:30 this morning (03-Oct) I got an alert for an event from last week (26-Sep).
Then at 10:00 I got an alert for another event from last week (26-Sep).
Upon examining the events, I saw the alerts set as:
9:30 event – alert 1 = one week before
10:00 event – alert 1 = 1 day before, alert 2 = 1 week before
After upgrading to iOS7 I set the default calendar alert to "1 week before" – that might explain why the second event's alert 2 is set earlier than alert 1.
But it doesn't explain the "you were supposed to be doing this last week" alert popping up.
Any thoughts (other than some date arithmetic gone awry)?iPilot1 - after I upgraded to iOS 7.0.3 I got an even bigger surprise - the default alert time for any new event I created was "7 days after". I kid you not. At the top of the list of options, before "None".
However I just went back to the Calendar settings to check the default alert time, and nothing was ticked.
I chose "1 week before", and Hey Presto, new events default to "1 week before".
Of course, I won't know this has worked for sure until I get an alert. -
[SOLVED] Missing package () function for PyTyle2
Hi, I was trying to install this tarball from the AUR: https://aur.archlinux.org/packages.php?ID=42541
But it prompts the following error:
==> ERROR: Missing package() function in /home/kolt/AUR/pytyle2-hg/PKGBUILD
I've read the PKGBUILD and have no idea why this is happening. I already installed the dependencies needed.
Any clue?
Last edited by Kolt Penny (2015-02-06 08:31:45)Kolt Penny wrote:I've read the PKGBUILD and have no idea why this is happening. I already installed the dependencies needed.
Read the pacman output, it refers to the package() function and makepkg doesn't find it in the PKGBUILD as said. Ask the maintainer to update or orphan it, if he doesn't respond file an AUR request. -
How to change calendar setting for one event in a repeating series?
Is there any way to change the calendar setting (color) for a single event in a repeating series without changing the color of all events in that series? It seems one event in a repeating series is linked to all other events in that series even if you change the time and/or date first.
The only workaround I've found is to create a new event Identical to the event in question except with the different calendar, then delete the original event. This would be a lot easier if the OS would ask the user if s/he wants to apply the calendar change to all future events or just this one. Or if there was a way to more easily duplicate a single event, that would also save me a lot of time.
Thanks for any responses.The assignment of colors to calendars on your iPad is pretty simplistic. You can set a color for each calendar and all events (repeating or single instance) placed in a calendar use the calendar's color; however, you cannot set a color for one instance of a calendar event. The workaround you came up with is similar to the method I use. I have a calendar labeled "Priority Events" (Red) that I use for important instances of standing meetings. Oftentimes I leave the event in question in the calendar and simply place a priority event in the same time slot; it clutters up the calendar a bit but helps me visually.
-
Callback function for network events
Hi all,
I'm working on a project, and I need to be able to respond to network events. I receive the data through a BufferedInputStream from a socket. What I want is a callback-type thing, i.e. When new data is sent to the socket, a function is called to receive that data. I've looked through the documentation, I can't find anything that could be used for that. The only thing I can think of is linking it to a JTextArea/JTextField, and attaching a change listener to that, but I'd prefer not to have to do that. My current method involves a loop, which I don't like at all:
while (true) {
if (server.Available()) {
do stuff here
I don't like it because it wastes processor cycles that really should go elsewhere. So what can I do?
-ReKleSSWhen you read from a socket and there is no data available, it just blocks until something does become available. While the thread is blocked waiting for I/O it won't take up any processor time.
-
Use event function for multiple events
I've got several movieclip buttons on stage. For one of those buttons I've started of with:
button1.buttonMode = true;
button1.useHandCursor = true;
button1.addEventListener(MouseEvent.MOUSE_DOWN, fl_ClickToDrag);
function fl_ClickToDrag(event:MouseEvent):void
button1.startDrag();
stage.addEventListener(MouseEvent.MOUSE_UP, fl_ReleaseToDrop);
function fl_ReleaseToDrop(event:MouseEvent):void
button1.stopDrag();
Which works. But I would like to have that fl_ClickToDrag function excuted for all my other buttons too, so I don't have to duplicate that several times for each button. So I thought I use something like:
button1.buttonMode = true;
button1.useHandCursor = true;
button2.buttonMode = true;
button2.useHandCursor = true;
button1.addEventListener(MouseEvent.MOUSE_DOWN, fl_ClickToDrag);
button2.addEventListener(MouseEvent.MOUSE_DOWN, fl_ClickToDrag);
function fl_ClickToDrag(event:MouseEvent):void
event.target.startDrag();
stage.addEventListener(MouseEvent.MOUSE_UP, fl_ReleaseToDrop);
function fl_ReleaseToDrop(event:MouseEvent):void
event.target.stopDrag();
But that gives an error. What's the correct way?Actually I got it working by using:
button1.buttonMode = true;
button1.useHandCursor = true;
button2.buttonMode = true;
button2.useHandCursor = true;
button1.addEventListener(MouseEvent.MOUSE_DOWN, fl_ClickToDrag);
button2.addEventListener(MouseEvent.MOUSE_DOWN, fl_ClickToDrag);
function fl_ClickToDrag(event:MouseEvent):void
event.currentTarget.startDrag();
stage.addEventListener(MouseEvent.MOUSE_UP, fl_ReleaseToDrop);
function fl_ReleaseToDrop(event:MouseEvent):void
stopDrag(); -
Standard ABAP functions for creating events?
Hi,
I'm a little bit confused which ABAP functions to use for creating academic events with schedules (e.g. lecture takes places each Friday at 4 pm), rooms and instructors attached.
Data transfer documentation SAP team recently released ("SLCM Data Transfer" archive, "Intro" document, page 18) suggests <b>HRIQ_CREATE_EVENT</b> as a solution. However, after experimenting for a while, I noticed a note attached to this function that "DO NOT USE ANYMORE, USE <b>HRIQ_EVENT_CREATE</b>".
So which one is the correct/recommended one? Also, if possible, I would prefer an RFC-enabled one.
Thanks
JanekHi Janek,
We've created a custom RFC enabled function module to wrap the SAP function module HRIQ_CREATE_EVENT in. We are on a 4.7 system. Here is our code. Hope it helps.
FUNCTION zcep_event_create .
*"*"Local interface:
*" IMPORTING
*" VALUE(VTASK) TYPE HRRHAP-VTASK DEFAULT 'V'
*" VALUE(EVENTPACKAGEID) TYPE HROBJID
*" VALUE(ACAD_YEAR) TYPE PIQPERYR
*" VALUE(ACAD_SESSION) TYPE PIQPERID
*" TABLES
*" MEETING_PATTERN STRUCTURE ZCEP_MEETINGPATTERN
*" EVENT STRUCTURE ZCEP_EVENT
*" RETURN STRUCTURE BAPIRET2
DATA: is_schedule TYPE bapisched,
schedule TYPE bapisched OCCURS 0 WITH HEADER LINE,
capacity LIKE hri1024,
wa_capacity LIKE hri1024 OCCURS 0 WITH HEADER LINE,
location LIKE bapilocdat-locid OCCURS 0,
new_event_package LIKE p1000 OCCURS 0 WITH HEADER LINE,
objid LIKE hrrootob OCCURS 0 WITH HEADER LINE,
parent LIKE hrhctobjc OCCURS 0 WITH HEADER LINE,
eventid TYPE hrobjid,
event_id_out LIKE bapievdat-eveid,
lt_1739 TYPE TABLE OF p1739,
ls_1739 TYPE p1739,
ls_error_record TYPE bapiret2,
ls_nnnn TYPE wplog,
open_resources_exits TYPE xfeld.
DATA: it_1035 TYPE piq_p1035_t,
it_pt_1035t TYPE piq_hrt1035_t,
it_daysoff TYPE piq_pt1035_t,
it_daysfree TYPE piq_pt1035_t,
ls_daysfree TYPE pt1035,
ls_1035t TYPE hrt1035.
DATA: it_bapiresou TYPE TABLE OF bapiresou,
is_bapiresou TYPE bapiresou,
resources TYPE bapiresou OCCURS 0.
DATA: it_pa0002 TYPE TABLE OF pa0002,
is_pa0002 TYPE pa0002,
it_hrp1000 TYPE TABLE OF hrp1000,
is_hrp1000 TYPE hrp1000,
lv_dayoff(1),
bp(12),
im_begda LIKE sy-datum,
im_endda LIKE sy-datum,
sobid LIKE hrp1001-sobid,
event_counted_dates TYPE dayct,
event_counted_hours TYPE hrsct,
ndays TYPE p1035-ndays,
nhours TYPE p1035-nhours.
FIELD-SYMBOLS: <ls_1035t> LIKE LINE OF it_pt_1035t.
CLEAR gt_error_record[].
SORT event BY short.
SORT meeting_pattern BY eventname.
************************* Get Calender Date *************************
SELECT SINGLE begda endda FROM hrt1750 INTO (im_begda,im_endda)
WHERE peryr = acad_year
AND perid = acad_session
AND timelimit = '0100'.
*************************** Create Event ****************************
LOOP AT event.
CLEAR resources.
LOOP AT meeting_pattern WHERE eventname = event-short.
********************* Create Schedule for Event *********************
CALL FUNCTION 'HRIQ_EVENT_SCHEDULE_BUILD'
EXPORTING
plvar = '01'
istat = '1'
event_begda = event-begda
event_endda = event-endda
monday = meeting_pattern-monday
tuesday = meeting_pattern-tuesday
wednesday = meeting_pattern-wednesday
thursday = meeting_pattern-thursday
friday = meeting_pattern-friday
saturday = meeting_pattern-saturday
sunday = meeting_pattern-sunday
event_beguz = meeting_pattern-start_time
event_enduz = meeting_pattern-end_time
frequency = '1'
event_location = meeting_pattern-location
IMPORTING
pt_1035 = it_1035
pt_1035t = it_pt_1035t
pt_daysoff = it_daysoff
pt_daysfree = it_daysfree
EXCEPTIONS
no_date_number = 1
frequency_is_initial = 2
OTHERS = 3.
LOOP AT it_daysfree INTO ls_daysfree.
CALL FUNCTION 'HRIQ_CHECK_MODULOFFER_DAYSOFF'
EXPORTING
iv_date = ls_daysfree-evdat
IMPORTING
ev_dayoff = lv_dayoff
EXCEPTIONS
otype_not_supported = 0
OTHERS = 0.
IF lv_dayoff = space.
MOVE-CORRESPONDING ls_daysfree TO ls_1035t.
APPEND ls_1035t TO it_pt_1035t.
ENDIF.
ENDLOOP.
* no double entries
SORT it_pt_1035t.
DELETE ADJACENT DUPLICATES FROM it_pt_1035t.
DESCRIBE TABLE it_pt_1035t LINES event_counted_dates.
CLEAR event_counted_hours.
LOOP AT it_pt_1035t INTO ls_1035t.
nhours = ( ls_1035t-enduz - ls_1035t-beguz ) / 3600.
event_counted_hours = event_counted_hours + nhours.
ADD 1 TO ndays.
ENDLOOP.
LOOP AT it_pt_1035t ASSIGNING <ls_1035t>.
MOVE-CORRESPONDING <ls_1035t> TO schedule.
APPEND schedule.
ENDLOOP.
*Room
IF NOT meeting_pattern-room IS INITIAL.
SELECT SINGLE short stext FROM hrp1000
INTO (is_hrp1000-short,is_hrp1000-stext)
WHERE plvar = '01'
AND istat = '1'
AND otype = 'G'
AND objid = meeting_pattern-room
AND begda LE sy-datum
AND endda GE sy-datum.
SELECT SINGLE sobid FROM hrp1001 INTO sobid
WHERE otype = 'G'
AND plvar = '01'
AND istat = '1'
AND relat = '020'
AND rsign = 'A'
AND sclas = 'R'
AND objid = meeting_pattern-room
AND begda LE im_endda
AND endda GE im_begda.
IF sy-subrc = 0.
is_bapiresou-retid = sobid(8).
ENDIF.
LOOP AT it_pt_1035t ASSIGNING <ls_1035t>.
is_bapiresou-resht = is_hrp1000-short.
is_bapiresou-resxt = is_hrp1000-stext.
is_bapiresou-resbg = <ls_1035t>-evdat.
is_bapiresou-resed = <ls_1035t>-evdat.
is_bapiresou-beguz = meeting_pattern-start_time.
is_bapiresou-enduz = meeting_pattern-end_time.
is_bapiresou-resid = meeting_pattern-room.
is_bapiresou-restp = 'G'.
APPEND is_bapiresou TO resources.
ENDLOOP.
ENDIF.
* Instructor
IF NOT meeting_pattern-instructor IS INITIAL.
SELECT SINGLE nachn vorna FROM pa0002
INTO (is_pa0002-nachn, is_pa0002-vorna)
WHERE pernr = meeting_pattern-instructor
AND begda LE im_endda
AND endda GE im_begda.
************************** Meeting Pattern **************************
SELECT SINGLE objid INTO is_bapiresou-retid FROM hrp1000
WHERE plvar = '01'
AND langu = 'E'
AND otype = 'R'
AND mc_short = 'INST-CM'
AND begda LE im_endda
AND endda GE im_begda.
LOOP AT it_pt_1035t ASSIGNING <ls_1035t>.
is_bapiresou-resht = is_pa0002-nachn.
CONCATENATE is_pa0002-vorna is_pa0002-nachn
INTO is_bapiresou-resxt
SEPARATED BY space.
is_bapiresou-resbg = <ls_1035t>-evdat.
is_bapiresou-resed = <ls_1035t>-evdat.
is_bapiresou-beguz = meeting_pattern-start_time.
is_bapiresou-enduz = meeting_pattern-end_time.
is_bapiresou-resid = meeting_pattern-instructor.
is_bapiresou-restp = 'P'.
APPEND is_bapiresou TO resources.
ENDLOOP.
ENDIF.
ENDLOOP.
wa_capacity-kapz1 = event-mincapty.
wa_capacity-kapz2 = event-optcapty.
wa_capacity-kapz3 = event-maxcapty.
capacity = wa_capacity.
CALL FUNCTION 'HRIQ_CREATE_EVENT'
EXPORTING
planversion = '01'
event_id_in = '00000000'
event_short = event-short
event_stext = event-stext
status = '1'
begin_date = event-begda
end_date = event-endda
language = sy-langu
eventtype = event-betype
capacity = capacity
location = meeting_pattern-location
check_resources = ' ' "'X'
vtask = 'B'
IMPORTING
event_id_out = event_id_out
TABLES
schedule = schedule
resources = resources
return = return.
IF sy-subrc NE 0.
CALL FUNCTION 'HRIQ_CLEAR_BUFFER'.
CALL FUNCTION 'HRIQ_CLEAR_PLOG_TAB'.
return-type = 'E'.
return-message = 'Error during save'.
APPEND return.
ENDIF.
LOOP AT return WHERE id = 'HRPIQ000'
AND number = '846'.
return-type = 'E'.
return-message = 'Resources already in use'.
APPEND return.
EXIT.
ENDLOOP.
********************** Create Session offering **********************
MOVE-CORRESPONDING ls_nnnn TO ls_1739.
ls_1739-mandt = sy-mandt.
ls_1739-plvar = '01'.
ls_1739-otype = 'E'.
ls_1739-objid = event_id_out.
ls_1739-istat = '1'.
ls_1739-begda = event-begda.
ls_1739-endda = event-endda.
ls_1739-aedtm = sy-datum.
ls_1739-uname = sy-uname.
ls_1739-infty = '1739'.
ls_1739-peryr = acad_year.
ls_1739-perid = acad_session.
APPEND ls_1739 TO lt_1739.
PERFORM create_infotype USING lt_1739
CHANGING ls_error_record .
APPEND ls_error_record TO return.
READ TABLE return WITH KEY type = 'E'.
IF sy-subrc <> 0 AND vtask = 'V'.
CALL FUNCTION 'HRIQ_UPDATE_DATABASE'
EXPORTING
vtask = 'D'
commit_flg = 'X'
EXCEPTIONS
corr_exit = 1
internal_error = 2
OTHERS = 3.
IF sy-subrc NE 0.
CALL FUNCTION 'HRIQ_CLEAR_BUFFER'.
CALL FUNCTION 'HRIQ_CLEAR_PLOG_TAB'.
return-message = 'Error during save'.
APPEND return.
ENDIF.
ELSE.
CALL FUNCTION 'HRIQ_CLEAR_BUFFER'.
CALL FUNCTION 'HRIQ_CLEAR_PLOG_TAB'.
EXIT.
ENDIF.
********************* Create Relationship(E-SE) *********************
parent-objid = event_id_out.
parent-otype = 'E'.
APPEND parent.
PERFORM create_relation TABLES parent
USING 'B512'
'SE'
event-begda
event-endda
eventpackageid
CHANGING ls_error_record.
ENDLOOP.
IF vtask = 'V' AND ls_error_record IS INITIAL.
PERFORM update_database CHANGING ls_error_record.
ELSE.
APPEND ls_error_record TO return.
CALL FUNCTION 'HRIQ_CLEAR_BUFFER'.
CALL FUNCTION 'HRIQ_CLEAR_PLOG_TAB'.
ENDIF.
DELETE return WHERE type IS INITIAL.
ENDFUNCTION. -
Calendar reminder for deleted events
i see many other people have posted this same issue, is there a fix? i continue to get reminders on my 5s for calendar events that have been deleted. any ideas?
hi, did you figure this out? i am having the same issue.
thanks -
Looking for Calendar functionality for a Date Variable
Hi Experts,
Currently iam creating a WEBI Report where the source system is SAP BI System. I have a BEx Query with some characteristics at the row level and keyfigures at the column level. I have a Date Interval Variable (Based on 0DATE and optional), where the user will input the From and To date to execute the query. I have created the universe on top of this query, but date inteval variable appears as a character in the form of LOV. When i use this universe and buid the report in WEBI, the User Prompt for date is appearing as List of date values for this date interval variable, where as my requirement is to have date calendar for this date interval variable.
I did some r&d on top of this, when the date varibale as single value and optional, iam able to get the date calendar, but when i use the Date interval Varibale it takes as a character. I searched the forum, but i didn't find any solution.
Is it possible to have a date calendar for a date interval variable in BEx?? or its is only for single value date varibale.
Kindly suggest
Regards
SantoshHi,
you stated it correctly that the calendar shows up in case of a keydate and in case of a single value but not in case of a range.
in addition the underlying characteristic needs to be type DATS
Ingo
Edited by: Ingo Hilgefort on Dec 8, 2009 1:35 PM -
Dear Everyone, When I just add the events, I type the name and location, adjusting the time start and end, when I sliding up it looks like for spelled incorrectly: Invitees (Invites), and need bug fixes. I already feedback iPod Touch Team from my computer. I know Apple will fix it. Thanks, 1004blueAppleSupportCommunties (1004blueAppleSupportCommunities)
"Invitee" means an invited Person. This is the section where you list your "Invitees." It's not a bug, nor a spelling error. It's 100% correct as it is.
-
Set default or control calendar order for overlapping events
I use my calendar extensively and have many events scheduled at the same time; however, ical does not display these in a consistent way, which would be very helpful. Here's what I mean
I would like to have each calendar stacked on top of the others (e.g. blue is leftmost, black is second, brown is third). Any thoughts?any thoughts?
-
Office calendar on outlook, private one in ical on Mac both on iphone 3G
My iphone 3G finally arrived and now i want to use my ical (Mac book pro, latest OS) for private events and the office Outlook 2003 (XP pro). Both calendars should appear on my iphone (and on the Mac book) and of course no private events should appear on my office account, which is open to the team. Is this possible?
Thanks, OliverThank you so much for your help! Your suggestion resolved my issue.
I also made sure to set my iCal preferences to use iCloud Home for my default calendar as well as reminders.
Thanks again!
Mike -
SQLDeveloper-64bits Missing Migration-Functionality
Hi all, after years of absence from Oracle, I am back
I've installed Oracle11gR2 64bits (11.2.0) , jdk1.7.0_40 64bits and SQLDeveloper 64 bits on WIndows7, all seemingly successful. Then, I tested the installation by creating a test schema and some views.
Following that I tried to migrate the MS SQLServer database Northwind to Oracle, using these instructions:
http://www.oracle.com/webfolder/technetwork/tutorials/obe/db/hol08/sqldev_migration/mssqlserver/migrate_microsoft_sqlserver_otn.htm#t2
At the point where the instructions say to "Capture the Microsoft SQL Server Exported Files", I noticed SQLDeveloper missing the functions for Migrations.
Since my return to Oracle is mainly to study the 64bit version of 11gR2 and to migrate SQL Server databases to Oracle, it would be most helpful to know how to use the missing migration
function, else it is a show-stopper.
Where can I get the add-in for the Migration function in SQLDeveloper?
Some help please?Some doc links:
3.2.2 help doc: SQL Developer: Migrating Third-Party Databases
3rd party migrations: Database Migration Technology</title><meta name="Title" content="Database Migration Technology&q…
Of course, searching the forums can be useful if you have questions after reading through the help documentation:
Forum dedicated to migration: Database and Application Migrations
Message was edited by: GaryGraham -
Calendar function not working in report launch form
We are currently using Headstart 6.5.3.1 for 9i. When we invoke the calendar function for a date parameter in the report launch form (qms0012f), we get the error-message ORA-6508: could not find program unit being called in PL/SQL Program Unit qms$calendar.show.
After closing the report launch form and re-opening it again this error message does not appear again and the calendar is shown without any problems.
Does anyone have experience with this error or know the reason why it is occurring?
Regards,
Gert de BoerHi dear
I am Santosh in New Delhi. Hope you will help me.
I M working with report 10G. My problem is that , I am not able to get normal character printing on Dot matrics printer and character mode report of report 3
Thanks
Maybe you are looking for
-
I purchased a brand new MSI 865PE Neo2-FISR along with a P4 2.4C(OEM), a Thermaltake Spark 5c cooler and a Corsair XMS Twinpack(TWINX512-3200C2PT) of DDR400 memory. The install went fine, the system booted and ran very well right out of the box. I i
-
Question related to the mini display port adapters
So I just bought my new macbook pro and soon I'll need to buy an adapter so I'm able to connect it to a projector or monitor using the more commonly used ports. I'll need VGA and DVI, but I don't think I'll spend 50£+ on two adapters, instead I thoug
-
Cannot open .swf files what so ever
Hi, I downloaded a few swf files and can't open it after trying everything. I've installed multiple versions of Flash on my computer and tried opening it in all latest versions of Firefox, Chrome and IE. I've downloaded multiple standalone versions o
-
Share disks over wan option missing
I have a Time Capsule (firmware 7.6.1) I am setting up with the Airport Utility (version 6.1). I am trying to share the internal drive (or even a drive connected through the USB port) externally on the internet so that I can access files remotely.
-
The operation couldn't be completed. (OSStatus error -54.)
I have been having trouble with transferring iPhoto to my new iMac from my Mac Pro. I copied the iPhoto Library over the new drive. When i opened iPhoto it was blank. The file was 650GB but no photos in iPhoto. On my original machine I opened iPhot