SAP Knowledge Base Article - Public

3585554 - SAC - function Table_1.getPlanning().getDataLocking().setState(sel, DataLockingState.Open) does not work any longer

Symptom

The function `Table_1.getPlanning().getDataLocking().setState(sel, DataLockingState.Open)` in SAP Analytics Cloud Planning is not working as expected and it displays below error message: 

"the object type ('sap.ui.unified.Menu') via its string name is deprecated, since it leads to accesses to the global namespace. 
The object type either stems from an explicitly given 'Type' value or was inferred from the default aggregation type. 
Please require the respective object type module beforehand. For control development, please also refer to the runtime metadata property 'defaultClass', which allows you to specify a default aggregation class type via constructor reference. "

Environment

SAP ANALYTICS CLOUD

Cause

This is a product limitation

Resolution

The problem is caused by calling `TABLE.getDataLocking().setState(SELECTED_CELL)` before making a `TABLE.getDataLocking().getState(SELECTED_CELL)` call.

To ensure proper initialization of the underlying components and their dependencies, you must first make at least one call to `getState` before calling `setState`

Please note that we are aware that this is a limitation of our application and addressing it would require a feature enhancement. This feature enhancement is currently in our backlog, and we plan to work on it - however, we cannot provide a timeline for it at this moment. Please follow this Knowledge Base Article to create/upvote an enhancement request: https://launchpad.support.sap.com/#/notes/2424376 - this would greatly help us to better prioritize our work.

See Also

Keywords

SAP Cloud for Planning, sc4p, c4p, cforp, cloudforplanning, Cloud for Analytics, Cloud4Analytics, CloudforAnalytics, Cloud 4 Planning, BOC, SAPBusinessObjectsCloud, BusinessObjectsCloud, BOBJcloud, BOCloud., SAC, Javascript function, TABLE.getDataLocking().getState(SELECTED_CELL),getDataLocking().setState(SELECTED_CELL), getState(), setState(), data locking, product limitation
 
, KBA , LOD-ANA-PL-DLK , Data Locking , Problem

Product

SAP Analytics Cloud 1.0