Activity End Date To Be Predeault To Null In CRM Desktop (Doc ID 2086093.1)

Last updated on SEPTEMBER 04, 2017

Applies to:

Siebel CRM Desktop - Version 8.1.1.11 [IP2013] and later
Information in this document applies to any platform.

Goal

We have followed the steps given in the CRM Desktop bookshelf to default a value to the field. In our case to make Activity End Date to null.

Following Code written in business_logic.js file
scheme.objects.get_object("Action").get_field("Planned Completion")["initial_value_fn"] = function() { return null; };

Later identified in forms.js there is a logic which makes End Date to predefault to current date

if (read_from["Planned"] != null)
{
if (read_from["Planned Completion"] == null)
{
var duration = 0 + read_from["Duration Minutes"];
write_to["Duration Minutes"] = duration;
var date = new Date(util.utc_to_local(read_from["Planned"]));
date.setMinutes(date.getMinutes() + duration);
write_to["Planned Completion"] = util.local_to_utc(date.getVarDate());
}
Please suggest how to resolve this issue
 

Solution

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms