on 02-13-2022 9:58 AM
Hi,
My question is simple, or at least I think so. Is there any way to set the properties of a version in a model using script in an analytic application?
*Screenshot of the dimension "Version" with two members and some properties.
I want to ask to the user for some info by input text widgets, and then input this data as version properties in the model. I am currently copying an existing version and publishing it.
Table_1.getPlanning().getPublicVersion("Actual").copy(versionName, PlanningCopyOption.NoData, PlanningCategory.Planning);
Table_1.getPlanning().getPrivateVersion(versionName).publishAs(versionName, PlanningCategory.Planning);
Then using the function modelName.updateMembers("Version", {id: versionName, properties: {CloseDate: "202102"}};
The message shown if i consol.log the result of this function is: "Dimension type VersionDim is not supported".
I don't know what to do. Any help?
Thank you so much in beforehand 🙂
Hi Marc,
So far the member update APIs only support generic dimension, which means you can't update the Version dimension right now. You may find the details from the below help document:
Please check it.
best regards, Roy
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Roy,
Thank you for you help. Is there any way to change the version properties through script?
Thanks
User | Count |
---|---|
90 | |
10 | |
10 | |
10 | |
7 | |
7 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.