Forum Discussion
Thanks, Chris Loran Appreciate your quick response.
1. Thanks for the feedback on Scenario & Time. I will follow the same in my code.
2. The NoCOnditional Input is working when I attach to the cube.
I am trying to make a cell read only after I copy the data to another scenario. If I attach to the cube it is triggering instantly. How do I overcome? or am I missing anything?
So you want data to become read-only on the *source*/originating scenario after you've copied data to another scenario? Or you want the data to be read-only on the other scenario.
If you want the data to be read-only for forecast-type scenarios then you can do something like this:
Select Case api.FunctionType
Case Is = FinanceFunctionType.ConditionalInput
If api.Time.IsFirstPeriodInYear() _
AndAlso api.Scenario.GetScenarioType = ScenarioType.Forecast _
AndAlso api.Account.Text(api.Pov.Account.MemberId, 1).XFEqualsIgnoreCase("FC_Readonly") Then
Return ConditionalInputResultType.NoInput
End If
But if you want to lock certain intersections in the *originating*/source scenario after the data has been copied then you could have a system account (could be in a separate cube) which tracks whether a data copy has been performed or not, which would be updated using the DM job, for the originating time/scenario. Then the ConditionalInput rule could read that system account,
e.g. A#[DataCopyCompleted] , and if it contains a non-zero amount then consider certain intersections blocked on that scenario. Then some administrator could reset it on request in exceptional cases.
- ChrisLoran3 years agoValued Contributor
After-thought: If going down the route of using system accounts to flag whether data has been copied or not, and you end up with more than a couple of system accounts, then I would put these into a separate accounts dimension and assign that "System Accounts" dimension to a separate cube. This prevents polluting your financial account dimension, and also creates an extra boundary from the typical end-user (non-power user) who should not see these system accounts.
- Krishna3 years agoValued Contributor
Thanks, Chris, for the feedback. I also found another way to lock the Cell using the Scenario Properties "No of No Input Periods" it will lock the period from inputting the data, but it is kind of maintenance for administrator.
- Krishna3 years agoValued Contributor
The below I am trying to achieve.
The data to become read-only on the *source*/originating scenario after you've copied data to another scenario?
Related Content
- 4 months ago
- 8 months ago