api.currentItem() returns temporary object in “Autosave off” mode
It’s not possible to check empty typedId or uniqueName to know if the do
Single Items view
There’s only a single flexible view in the Items tab. The default view looks similar to Tree View. To achieve the Table View like layout, consider using hideSiderPanel
or defaultPlacement
parameters of the Items tab. More in https://pricefx.atlassian.net/wiki/spaces/KB/pages/3980492805/Detail+Page+Layout+and+Dynamic+Tabs#Widget-Parameters.
...
New endpoints are described in the API documentation:https://api.pricefx.com/openapi/reference/pricefx/tag/Clicmanager/
Persisted vs. temporary data
In “Autosave off” mode (manual save), data is first stored to the temporary objects on the backend first. When the user clicks the Save button, the data is moved from the temporary objects to the persisted objects. Even before the user saves the document for the first time, the data is already stored in the temporary objects. There are different type codes used for the temporary objects compared to the persisted ones (e.g. Q vs. QTMP for quotes). This may affect the Groovy logic in some cases.
api.currentItem() returns temporary object in “Autosave off” mode.
It’s not possible to check empty typedId or uniqueName to know if the document was saved initially. This can be done by checking persistedClicId attribute.
Be careful with api.find(), you may need to compose and use the “real” typedId instead of the typedId of the temporary data.
In “Autosave off” mode, the line items also have a different type code: QLITMP instead of QLI.
Loops and inline configurators
...