i'm retrieving the annotations in CV where as i could retrieve as read only for the account type dynamic calc(third row in screenshot) for account type Revenue still i cell is editable(first two rows). how can i make them read-only?
i have already set the can modify data to false in both general setting/common & rows and columns/Data
The easy way is to set the POV of that column that is pulling your annotation to something with #Top in one of the other dims. That should make it read only.
Annotations are different from data, e.g. you can input text also on parent members as you discovered. The easiest way may be to just set the entire column to a dynamic calc member, just as you did for row 3.
you should not change your existing account types when data has been loaded. Not knowing much about your use case, the following is one (of the many) way(s) to go about it. This approach assumes UD8#None is used for all data input and comment collection.
First, you create a DynamicCalc UD8 member:
Then you add this member formula:
If api.View.IsAnnotationType Then
Return api.Data.GetDataCellEx("UD8#None").DataCellAnnotation
Else
Return api.Data.GetDataCell("UD8#None")
End If
You then go to the column2 definition of your Cube View and e.g. add your new UD8 member to the column's member filter:
Please note that this will apply to your entire column 2. Using overrides is more elegant and more pointed. But I am keeping it simple for now to show you the most basic way.
Overrides are those ones:
You should then be able to see the entered annotations and the original data in your CV, with the cells being no input.
In my example, the top half rows are using UD8#None in the point of view (POV) and the bottom half my new UD8 member. Please note that the way the formulas has been written, all data and / or comments will be pulled to be displayed in the CV, as long as those have been entered / loaded against UD8#None.