-
Bug
-
Resolution: Cannot Reproduce
-
Not Evaluated
-
None
-
QDS 4.4.1
-
None
Issue found:
- If JSON data has been manually changed to have a colorCode and it is read into the Model Editor, the user can't use the color popup for editing the information. Changing the datatype of the column clears cells.
- See the video: ColorCodeIsNotRecognizedAsColorDataType.mp4
- Snapshot: 35
- OS: Mac OS/ M1
How to reproduce
- Create a project
- Open models.json
- Add in the following code:
"ListModel_1": [ { "colorCode": "#ff0000", "name": "Red" }, { "colorCode": "#00ff00", "name": "Green" }, { "colorCode": "#0000ff", "name": "Blue" }, { "colorCode": "#ffffff", "name": "White" } ]
- Open Model editor
- Try changing color values, you notice that it handles values as strings, not as color codes. The same happens if you export a model which has been created using color wheel, and then import it again into the list of models - the colorCode is not recognized as a data type.
How it is expected to work
- The user can change values in JSON code. If the datatype is correct, it should register the column to use color dialog when clicking on cells.