Exemple #1
0
        /// <summary>
        /// Set values in the data area.
        /// </summary>
        /// <param name="value">Value which is to be set.</param>
        public void SetValues(string value)
        {
            MdsSetValueProlog();

            if (!NativeOlapApi.DataAreaSetValues(_cube.Server.Store.ClientSlot, _cube.Server.ServerHandle, _parameters, value, _cube.Server.LastErrorInternal))
            {
                System.Text.StringBuilder sb = new System.Text.StringBuilder();
                sb.Append("The data area values could not be set!");
                sb.Append(", Error: ");
                sb.Append(System.Convert.ToString(_cube.Server.LastErrorInternal.Value));
                sb.Append(", ");
                sb.Append(ToString());
                throw new OlapException(sb.ToString(), _cube.Server.LastErrorInternal.Value);
            }

            MdsSetValueEpilog();
        }