Microsoft KB Archive/926883

From BetaArchive Wiki
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.
Knowledge Base


Microsoft Dynamics CRM 3.0 unexpectedly runs an OnLoad client-side script two times for one task when you use Form Assistant for a case form

Article ID: 926883

Article Last Modified on 8/21/2007



APPLIES TO

  • Microsoft Dynamics CRM 3.0



SYMPTOMS

You use Form Assistant for a case form in Microsoft Dynamics CRM 3.0. However, Microsoft Dynamics CRM 3.0 unexpectedly runs an OnLoad client-side script two times for one task. Therefore, the OnLoad client-side script for the case form does not run. This problem occurs if the Follow Up item is the first item in the Form Assistant list in the case form.

WORKAROUND

To work around this problem, make sure that the Follow Up item is not the first item in the Form Assistant list in the case form. To do this, follow these steps:

  1. Click Settings, click Customization, click Customize Entities, and then double-click Case.
  2. In the Entity: Case dialog box, click Forms and Views, double-click Form.
  3. Move the position of the Due By field.
  4. Click Save and Close.
  5. On the Actions menu, click Publish.
  6. Click Save and Close.


STATUS

Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the "Applies to" section.

MORE INFORMATION

Steps to reproduce the problem

  1. Customize the Task entity. To do this, follow these steps:
    1. Click Settings, click Customization, click Customize Entities, and then double-click Task.
    2. In the Entity: Task dialog box, click Forms and Views, double-click Form.
    3. In the Form: Task dialog box, click Form Properties.
    4. In the Form Properties dialog box, click OnLoad, and then click Edit.
    5. In the Event Detail Properties dialog box, click to select the Event is enabled check box, and then type the following code in the box for code.

      alert("This is the task form onLoad!");
    6. Click OK two times.
    7. Click Save and Close.
    8. On the Actions menu, click Publish.
    9. Click Save and Close.
  2. Customize the Case entity. To do this, follow these steps:
    1. Click Settings, click Customization, click Customize Entities, and then double-click Case.
    2. In the Entity: Case dialog box, click Forms and Views, double-click Form.
    3. In the Form: Case dialog box, click Form Properties.
    4. In the Form Properties dialog box, click OnLoad, and then click Edit.
    5. In the Event Detail Properties dialog box, click to select the Event is enabled check box, and then type the following code in the box for code.

      alert("This is the case form onLoad!");
    6. Click OK two times.
    7. Click Save and Close.
    8. On the Actions menu, click Publish.
    9. Click Save and Close.
  3. Create a new case. To do this, follow these steps:
    1. Click Service, click Cases, and then click New.
    2. In the Case: New dialog box, complete fields, and then click Save and Close.
  4. Double-click the case that you created in step 3.


Keywords: kbtshoot kbmbscustomization kbmbsmigrate kbbug KB926883