Code Fix: Unable to resize a column in a SmartForms Runtime List View
KB001821
PRODUCTIssue Description
In a SmartForms runtime List View, when dragging a column to resize it, the column will jump to a different size than specified. In some cases, an entirely different column is affected when attempting to resize a specific column.
Error Message
In some scenarios where a hidden column is involved, a JavaScript error occurs stating: “SCRIPT5007: Unable to get property 'replace' of undefined or null reference”.
Repro Steps
- Create a SmartObject with ten text Properties and generate an Editable List View.
- Edit the Editable List View and Hide one of the columns.
- Add a Button control to the toolbar.
- Add the following rule:
When Button is clicked show the hidden column. - Finish and run the view.
- Make the column to the left of the hidden column bigger.
- Click the button.
- The resizing is not applied correctly and in the console a JavaScript Error occurs.
Resolution
- Ensure you have K2 4.7 installed.
- Install the K2 4.7 February 2017 Cumulative Update.
- Get the K2 4.7 February 2017 Cumulative Update FP2 from Regional Support.
- Install the K2 4.7 February 2017 Cumulative Update FP2 to apply the fix.
- Clear the Browser cache.