Start a conversation

Unable to use bm.util.setValue() to set a value on a DateTime dataslot

Overview

When you use the bm.util.setValue() method to set a date-time value on a DateTime dataslot in your Aurea Process (formerly known as CX Process, Savvion and SBM) application you are encountering the following error:

datetime_widget_error.jpg

Prerequisites

  • You are running Aurea Process 2015 SP1 with Hotfix 31 or newer or Aurea Process 2020 R1
  • For Aurea Process 2015 SP1 with Hotfix 31 or newer, permissions to copy a file onto the Aurea Process server

  • For Aurea Process 2020 R1, permissions to install a patch onto the Aurea Process Server

Solution

Diagnosis

This issue occurs when the Ext loader path for 'Ext.ux' namespace is overridden in your application with the following line of code:

Ext.Loader.setPath('Ext.ux', '../ux');

In Aurea Process 2020 R1 and Hotfix 31 of Aurea Process 2015 SP1, a new Ext.ux component was created that provides the Ext.ux.DateTimeField and Ext.ux.DateTimePicker classes.  When your application overrides the Ext.Loader path to ../ux, the Aurea Process fails to load the Ext.ux.DateTimeField and Ext.ux.DateTimePicker javascript files resulting in TypeError: Cannot read property 'setValue' of undefined error.

Since Ext Loader is a global instance, making any changes to it will alter the Ext Loader's behavior and could affect Aurea Process' ability to load components correctly.

Solution Steps

If you experiencing this issue on Aurea Process 2020 R1, you will need to do the following:

  1. Request patch 01 for Aurea Process 2020 R1 from the Aurea Process support team as described in the How to download the latest or previous product installers and documentation for Aurea Process article.
  2. Once the patch has been provided, apply patch 01 to your Aurea Process system.

If you are experiencing this error on Aurea Process 2015 SP1 with Hotfix 31 or higher, there are no plans to release a hotfix to correct this issue.  As a workaround you can do the following:

  1. Download the component.js file from this article.
  2. Copy this component.js file into the $WEBSPHERE_Server_HOME\profiles\<sbm_profile>\installedApps\<sbmcell>\sbm_war.ear\sbm.war\resources\form\datetime directory on your Aurea Process server.
Note: After copying the component.js file to the server, you may need to clear your browser cache for the changes to take effect.

Testing

Once you have applied the patch or workaround to Aurea Process, you should be able to use the sbm.util.setValue() method to set the value of a DateTime dataslot.

component.js

  1. 5 KB
  2. View
  3. Download
Choose files or drag and drop files
Was this article helpful?
Yes
No
  1. Priyanka Bhotika

  2. Posted
  3. Updated

Comments