iParagons

IBM FileNet P8 | Case Manager | Content Navigator

Auto Populate Date and Time on Case Page

IBM Case Manager (ICM)

Auto Populate Date and Time on Case Page

By Junaid Azam / Sep 30, 2021

Auto populate date and time on a Case page is sometimes required. It is helpfulf to reduce time constraints  for end users and make the system more effiecent.

Environment:

  • Case Manager 5.2.x / 5.3.x
  • Content Navigator 2.0.3.x / 3.0.x
  • Content Platform Engine 5.2.x / 5.5.x
  • WebSphere Application Server 8.5.x / 9.0.x

Solution:

Performing the following steps:
  1. First of all, You must have Datetime property in Case Manager solution.
  2. Place a script adapter on the add case or work details page.
  3. Wire the Send New Case Info incoming event to script adapter as described below. auto populate date and time on case page
  4. Use the sample script code to load the default date in the property control.

    require(["icm/model/properties/controller/ControllerManager"], function(ControllerManager) {

    var collectionController = ControllerManager.bind(payload.caseEditable); var invDateController= collectionController.getPropertyController("ICMFieldDate"); currentDate = new Date();

    invDateController.set("value",currentDate); pstate.set("value",pstatevalue); }); return payload;

  5. Save and close the page.
  6. Commit and deploy the solution.
  7. Test the case by adding a new case type where you implement changes for auto populate date and time. After the page load, you will see datetime field is populated with current date/time.
auto populate date and time More details: https://www.ibm.com/support/pages/case-manager-how-auto-populate-datetime-field-case-page

0 Comments

Leave a Reply

Your email address will not be published. Required fields are marked *