Sets the report's record selection formula.
SetSelectionFormula( ISELECTIONFORMULA_HANDLE i_hISelectionFormula, ConstChar* i_selectionFormula)
The handle to the ISelectionInfoFormula interface. See hISelectionFormula Variable.
The filter string that will be appended to the current selection formula. The server will concatenate the old selection formula with the new filter string that is passed through i_selectionFormula. It will then send this modified selection formula to the report.
Each function returns a RET_VALUE that is an error code of type Long. The return value is greater than zero if the call was successful, and zero or less if not. Use RET_OK(x) and RET_ERROR(x) to check for failure.
If the function call fails, check the value of the buffer size parameter. After a successful function call, this parameter contains the size of the buffer that you passed in. However, if the buffer size is too small, then the function returns PROCESSEXTERR_BUFFERSIZETOOSMALL, and the buffer size that is needed is specified in the parameter.
You may want the record selection to be applied to all requests, or you may want it to be applied only when a report is being scheduled or viewed. Use the GetRequestType Function to determine the type of request that is being made.
To ensure row
Crystal Decisions, Inc. http://www.crystaldecisions.com Support services: http://support.crystaldecisions.com |