2 Replies Latest reply on Jun 11, 2013 5:43 PM by Patrick Spedding

    Automatic update of Parameter

    Ajit Kumar

      When a parameter is created from a field, The parameter is not picking up new values from the data when refreshed. Is there any way to make this dynamic or is there any other option to achieve this?

       

      Ajit

        • 1. Re: Automatic update of Parameter
          Russell Christopher

          Hi Ajit -

           

          Currently, there is no way to do this. I suggest you go over here and vote for this feature request.

          • 2. Re: Automatic update of Parameter
            Patrick Spedding

            As a workaround, could the javascript API be used? I see there are several methods associated with parameters:

             

            Parameter Class

            Contains information about a workbook parameter. To actually set a parameter’s value, call              workbook.changeParameterValueAsync().

            Properties

            Name

            Type

            Description

            getName()

            string

            A unique identifier for the parameter, as specified by the user.

            getCurrentValue()

            DataValue

            The current value of the parameter.

            getDataType()

            ParameterDataType

            The data type of the parameter can be one of the following: FLOAT, INTEGER, STRING, BOOLEAN, DATE, DATETIME.

            getAllowableValuesType()

            ParameterAllowableValuesType

            The type of allowable values that the parameter can accept. It can be one of the following enumeration items: ALL, LIST, RANGE.

            getAllowableValues()

            DataValue[]

            If the parameter is restricted to a list of allowable values, this property contains the array of those values. Note that this is not a standard collection, but a JavaScript array.

            getMinValue()

            DataValue

            If getAllowableValuesType  is RANGE, this defines the minimum allowable value, inclusive. Otherwise it’s undefined/null.

            getMaxValue()

            DataValue

            If getAllowableValuesType  is RANGE, this defines the maximum allowable value, inclusive. Otherwise it’s undefined/null.

            getStepSize()

            Number

            If getAllowableValuesType  is RANGE, this defines the step size used in the parameter UI control slider. Otherwise it’s undefined/null.

            getDateStepPeriod()

            PeriodType

            If getAllowableValuesType  is RANGE and getDataType  is DATE or DATETIME, this defines the step date period used in the Parameter UI control slider. Otherwise it’s undefined/null.