13. Januar 2010 15:51
//Activity scheduledend options
var ActivityOptions =
{
All : "All",
Overdue :"Overdue",
Today :"Today",
Tomorrow :"Tomorrow",
Next7Days :"NextXDays;7",
Next30Days :"NextXDays;30",
Next90Days :"NextXDays;90",
Next6Months :"NextXMonths;6"
}
//Activity History actualend options
var HistoryOptions =
{
All : "All",
Today : "Today",
Yesterday : "Yesterday",
Last7Days : "LastXDays;7",
Last30Days : "LastXDays;30",
Last90Days : "LastXDays;90",
Last6Months : "LastXMonths;6",
Last12Months: "LastXMonths;12"
}
var _loadarea = loadArea;
loadArea = function(sArea, sParams, sUrl, bIsvMode)
{
//load the iframe
_loadarea(sArea, sParams, sUrl, bIsvMode);
if( sArea != "areaActivityHistory" &&
sArea != "areaActivities" ) return;
//create the iframe object
var iframe = document.getElementById(sArea + "Frame");
//wait until the iframe is fully loaded ("complete")
iframe.onreadystatechange = function()
{
if( iframe.readyState == "complete")
{
var picklist,option;
//reference to the iframe document
var iframeDoc = iframe.contentWindow.document;
switch(sArea)
{
case "areaActivityHistory":
picklist = iframeDoc.all.actualend[0];
/* change to suit your needs */
option = HistoryOptions.All;
break;
case "areaActivities":
picklist = iframeDoc.all.scheduledend[0];
/* change to suit your needs */
option = ActivityOptions.All;
break;
default: return;
}
picklist.value = option;
picklist.FireOnChange();
}
}
}
// Script, um den Aktivitäten in Kontakt anzuzeigen
var CRM_FORM_TYPE_CREATE = 1;
if (crmForm.FormType == CRM_FORM_TYPE_CREATE )
{
document.all.IFRAME_Activities.src="about:blank";
}
else
{
var navActivities;
navActivities = document.all.navActivities;
if (navActivities != null)
{
document.all.IFRAME_Activities.src="/sfa/conts/areas.aspx?oId=" +
crmForm.ObjectId +
"&oType=1&security=852023&tabSet=areaActivities";
}
else
{
alert("navActivities nicht gefunden");
}
}
13. Januar 2010 16:53
13. Januar 2010 17:12
13. Januar 2010 17:16
13. Januar 2010 17:40
13. Januar 2010 19:03
14. Januar 2010 09:50
21. Januar 2010 10:55
21. Januar 2010 11:06
22. Januar 2010 14:32
<condition attribute="accountid" operator="eq" uiname="Muster" uitype="account" value="{8C088986-BECA-DE11-9B20-0019B9FA8DEE}"/>
22. Januar 2010 14:44
<condition attribute="accountid" operator="eq" uiname=crmForm.all.name.DataValue uitype="account" value=crmForm.ObjectId />
22. Januar 2010 16:02
<condition attribute="contactid" operator="eq" uitype="contact" value="' + crmForm.ObjectId + '"/>
1. Februar 2010 12:41
<order attribute="actualend" descending="true"/>
1. Februar 2010 14:00
1. Februar 2010 14:53
<fetch version="1.0" output-format="xml-platform" mapping="logical" distinct="false"><entity name="activitypointer"><attribute name="activitytypecode"/><attribute name="subject"/><attribute name="statecode"/><attribute name="prioritycode"/><attribute name="modifiedon"/><attribute name="activityid"/><attribute name="regardingobjectid"/><attribute name="ownerid"/><attribute name="scheduledend"/><attribute name="description"/><attribute name="createdon"/><attribute name="actualend"/><order attribute="actualend" descending="true"/><link-entity name="contact" from="contactid" to="regardingobjectid" alias="aa"><attribute name="parentcustomerid"/><filter type="and"><condition attribute="contactid" operator="eq" uitype="contact" value="' + crmForm.ObjectId + '"/></filter></link-entity></entity></fetch>
1. Februar 2010 18:39
<result>
<activitytypecode name="Task" formattedvalue="4212">4212</activitytypecode>
<subject>dfsygfsdyv</subject>
<statecode name="Completed">1</statecode>
<prioritycode name="Normal" formattedvalue="1">1</prioritycode>
<modifiedon date="2/1/2010" time="5:37 PM">2010-02-01T17:37:05+01:00</modifiedon>
<activityid>{7C1D7407-500F-DF11-B6EE-005056B052C1}</activityid>
<regardingobjectid dsc="0" type="2" yomi="" name="Test, Unit">{F6EA8DA4-5204-DF11-8B60-005056B052C1}</regardingobjectid>
<ownerid dsc="0" type="8" yomi="misu 1de" name="misu 1de">{D64732AE-F3D8-DE11-A9FB-005056B052C1}</ownerid>
<scheduledend date="1/10/2010" time="12:00 AM">2010-01-10T00:00:00+01:00</scheduledend>
<createdon date="2/1/2010" time="5:37 PM">2010-02-01T17:37:05+01:00</createdon>
<actualend date="2/1/2010" time="5:37 PM">2010-02-01T17:37:05+01:00</actualend>
</result>
<result>
<activitytypecode name="Task" formattedvalue="4212">4212</activitytypecode>
<subject>etest</subject>
<statecode name="Completed">1</statecode>
<prioritycode name="Normal" formattedvalue="1">1</prioritycode>
<modifiedon date="2/1/2010" time="5:34 PM">2010-02-01T17:34:12+01:00</modifiedon>
<activityid>{F45CF99D-4F0F-DF11-B6EE-005056B052C1}</activityid>
<regardingobjectid dsc="0" type="2" yomi="" name="Test, Unit">{F6EA8DA4-5204-DF11-8B60-005056B052C1}</regardingobjectid>
<ownerid dsc="0" type="8" yomi="misu 1de" name="misu 1de">{D64732AE-F3D8-DE11-A9FB-005056B052C1}</ownerid>
<scheduledend date="1/31/2010" time="12:00 AM">2010-01-31T00:00:00+01:00</scheduledend>
<createdon date="2/1/2010" time="5:34 PM">2010-02-01T17:34:08+01:00</createdon>
<actualend date="2/1/2010" time="5:34 PM">2010-02-01T17:34:12+01:00</actualend>
</result>
2. Februar 2010 09:50
2. Februar 2010 13:21
4. Februar 2010 11:13