CustomFunction in 4.10 does not work.
search cancel

CustomFunction in 4.10 does not work.

book

Article ID: 243502

calendar_today

Updated On:

Products

CA Test Data Manager (Data Finder / Grid Tools)

Issue/Introduction

An error is reported when accessing a custom function in the data painter of the TDM Portal. The custom function is created following the plugin template given on github.

https://api-broadcom-ca-user.wolkenservicedesk.com/attachment/get_attachment_content?uniqueFileId=/8kC/SvROFbC8c/Q+P445g==

 

Environment

Release : 4.10

Component : TDM Web Portal

Resolution

The current code always converts the function name to lower case which is fixed in the patch TDMWeb-4.9.436.0.zip

As  workaround following option is available:

Edit DataGeneratorCustomFunctions.json file, change function name to all lower case letters

(eg. CustomFunctionSUM -> customfunctionsum)

and restart Portal service.

After the restart use the function name in lower case.

With the patch in place the original function name can be used.

Also calling the custom function as @CustomFunctionSUM(55, 66)@ would throw error and it should be changed to @CustomFunctionSUM(55,66)@ (notice the removed space) because otherwise it'll throw an error that " 66" is not a number in their custom function. Alternatively code can be improved to add some trim calls for the input parameters.