Using the Planning Enabled Property and the setEnabled API
When you work with planning applications and use a planning model for the table, the table property Planning enabled is active in the Builder panel.
If you use BPC live data connections you can switch between read-only and input mode for tables at runtime by using the table's quick actions menu (Switch to Read-Only Mode and Switch to Input Mode)..
-
If you use the script (for example for a button) Table.getPlanning().setEnabled(false), the table is switched to read-only mode when the application user clicks the button..
-
If you use the script Table.getPlanning().setEnabled(true), the table is switched to input mode.
-
If no data cells have been changed, the table will be set to read-only and the according locks in BPC will be released.
-
If data cells have been changed, no publish dialog will be shown. The table will be set to read-only mode and the locks and the changed data are kept in the BPC System. If the data is published or reverted with the help of APIs, the kept data is removed, and the BPC locks are deleted.