on 2022 May 10 3:07 PM
Hello Experts,
I need to create a button in an Analytic App that will read Version and Year from Text fields that will be previously populated by dynamic filter. This values will be set as parameters for a Data Action execution.
In my data action I am able to set Year or Year+month in the parameter. In the Analytic App, if I set only Year (not YYYYMM), system returns an error that the paramater is not valid.
The script is like this:
var empregado = Txt_Nome_Empregado.getPlainText();
var mes = Txt_MesAno.getPlainText();
var versao = Txt_Versao.getPlainText();
DA_Elimina_Func.setParameterValue("Empregado","[RH_Empregado].[Empregados].&["+empregado+"]");
DA_Elimina_Func.setParameterValue("Mes_Ano","[Mes_Ano].[YM].&["+mes+"]");
DA_Elimina_Func.setParameterValue("TargetVersion",versao);
if variable "mes" have value 202201, it works. If it is 2022, an error is returned.
Need help to know how can I set the parameter in an Analytic App to accept Year, even if the field for date has "Year/Month" hierarchy.
kind regards
Mayumi
Request clarification before answering.
Found out the solution.
Had to add [Mes_Ano.YEAR] on the setparameter script:
DA_Elimina_Func.setParameterValue("Mes_Ano","[Mes_Ano].[YM].[Mes_Ano.YEAR].&["+mes+"]");
kind regards,
Mayumi
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Suzanne,
Unfortunately its not working in Analytic App "setparameter" script, even if the parameter has "any" on level.
Thanks
Mayumi
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
24 | |
22 | |
8 | |
7 | |
6 | |
5 | |
4 | |
4 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.