Overview
You may want to change the calendar format of a calendar cell by changing the calendar format of its cell-value, from the default MM-DD-YYYY to, e.g., DD-MM-YYYY.
When you try to edit it using g2-ui-grid-view-modify/replace-cell, you may get the following error:
#32207 1:31:35 p.m. ERROR-ITEM: G2-UI-GRID-VIEW-REPLACE-CELL
ERROR-LINE: -1
Error:
The CELLSPEC argument is invalid - the value structure (cell-value: structure (selected-year: 1999,
selected-month: 2,
selected-date: 1,
calendar-format: the symbol yyyy-mm-dd),
background-color: the symbol yellow,
text-color: the symbol black)
is not of the correct type,
because the structure slot calendar-format was not allowed, because it was not one of text-value, current-value, text-sequence, colors, selected-year, selected-month, selected-date, selected-hour, selected-minute, selected-second, low-value, high-value, increment, precision, icon, list-box-style, or selected
The problem occurred inside cell-value
Operation: system procedure internals
Activity: system call statement
Within: G2-UI-GRID-VIEW-REPLACE-CELL(190, GRID, 0, 5, structure (...), TW-XXX-63)
Solution
This was a known issue in G2 versions earlier than G2 2021.1.
To fix it, upgrade to G2 2021.1 or newer.
<supportagent>
The release note regarding this ticket's issue is under GENSYMCID-12861.
</supportagent>
Testing
After the release of G2 2021.1, the error was resolved and calendar format syntax in cell-spec for grid view was able to be updated.
Priyanka Bhotika
Comments