Skip to content
Snippets Groups Projects
Commit dc1f5ff1 authored by Johannes Goderbauer's avatar Johannes Goderbauer
Browse files

Merge branch '1055500_FixCalendarDeleteNewSilentToDo' into '2020.1.0'

[Projekt: Entwicklung - Neon][TicketNr.: 1055500][Function newSilentToDo]

See merge request xrm/basic!210
parents 94c300e3 46aafab9
No related branches found
No related tags found
No related merge requests found
......@@ -117,52 +117,6 @@ CalendarUtil.getEffectiveCalendarIdFromUser = function(pUser)
return "";
}
/*
* Creates an new task (with link).
*
* @param {String} pSummary (optional) <p>
* The summary.
* @param {String} pDescription (optional) <p>
* The description.
* @param {Boolean} pWithLink (optional) <p>
* True sets an linking to $image.frametable.<br>
* @param {String[][]} pWithLink (optional) <p>
* Description:<br>
* <ul>
* <li>pWithLink[0]: Name of the record</li>
* <li>pWithLink[1]: Id of the shown record</li>
* <li>pWithLink[2]: linking title</li>
* </ul>
* @param {String} pUser (optional) <p>
* The user (login).
* @param {[]} pAffectedUsers (optional) <p>
* The afftected users (login).
* @param {date} pStart (optional) <p>
* Start of the appointment.<br>
* @param {integer} pGroupType (optional) <p>
* calendars.GROUP_SINGLE , calendars.GROUP_MULTI
* @param {date} pDuration (optional) <p>
* Duration of the appointment.<br>
* @param {integer} pCategory (optional) <p>
* calendars.CATEGORIES , encoded(String) (e.g.: text.encodeMS(["Service"])).<br>
* @param {String} pStatus (optional) <p>
* Status of the task (calendars.STATUS_TENTATIVE, calendars.STATUS_CONFIRMED, <br>
* calendars.STATUS_CANCELLED).<br>
* @param {String} pPriority (optional) <p>
* Priority of the task.<br>
* @param {String} pReminder (optional) <p>
* Reminder for the task.<br>
*
* @return {void}
*/
CalendarUtil.newSilentTodo = function(pSummary, pDescription, pWithLink, pUser, pAffectedUsers, pStart, pDuration, pGroupType, pCategory, pStatus, pPriority, pReminder)
{
if ( pGroupType == undefined ) pGroupType = calendars.GROUP_SINGLE;
var todo = CalendarUtil.createEntry( calendars.VTODO, pSummary, pDescription, pWithLink, pUser, pAffectedUsers, pStart, pDuration, pCategory, pStatus, pPriority, pReminder );
return calendars.insert([todo],calendars.GROUP_SINGLE);
}
/*
* Creates and opens an new appointment object (with link).
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment