IBM Support

Javascript error "Expected )" or "Unterminated String Constant" on a lookup table attribute

Troubleshooting


Problem

On the Single Edit or Item Data Entry screen, when an attribute is attached to a lookup table, click the button on the right side of the attribute and a javascript error “Unterminated String Constant” or "Expected )" is displayed. After clicking "yes", the full lookup table popup becomes visible. A similar error occurs if “Select All” is selected in the popup.

Cause

This error is caused by the use of unsupported characters (i.e. using the symbol to designate feet, 10') in any of the lookup table key values.

Resolving The Problem

For example, if any of the records in a lookup table has key=10’, a javscript error is thrown.
To prevent the javascript error, modify the key value to "10 feet".

[{"Product":{"code":"SSNJBH","label":"WebSphere Product Center"},"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Component":"General Application Functionality","Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"4;5.0","Edition":"","Line of Business":{"code":"LOB10","label":"Data and AI"}}]

Product Synonym

TPC;Trigo Product Center;WPC;WebSphere Product Center

Document Information

Modified date:
16 June 2018

UID

swg21192074