Purchase your Section 508 Compliance Support guide now!

Purchase your Section 508 Compliance Support guide now!

Cognos 8 SDK -- output is ready

You can use this function to determine if your Cognos 8 SDK response output has been created.

 

 

public bool outputIsReady(asynchReply response)

            {

                  for (int i = 0; i < response.details.Length; i++)

                  {

                        if ((response.details[i] is asynchDetailReportStatus)

                    && (((asynchDetailReportStatus)response.details[i]).status == asynchDetailReportStatusEnum.responseReady)

                              && (hasSecondaryRequest(response, "getOutput")))

                        {

                              return true;

                        }

                  }

                  return false;

            }