Hi..
I have Three questions related to GetDocumentInformation method.
Note: I am using this method to get only promptsinfo from the Document.
1-> When I use the GetDocumentInformation Method, sometime it works and sometime it fails. Most of the time when it fails it fails with TimeOut error and I get an Exception Messages some what like this "GetDocumentInformation Error(WBP:9999)"
Can anyone tell me what must be going wrong? here is the code snippet that I use to get the doc info.
Public Function GetReportPrompts(ByVal [_InfoObject] As ysiBOInfoObject) As PromptInfo()
Try
Dim ReportId As String = _InfoObject.CUID
Dim boRepEng As BusinessObjects.DSWS.ReportEngine.ReportEngine
Dim oAction(2) As Action
Dim _RetrieveData As New RetrieveData
Dim _RetrieveMustFillInfo As New RetrieveMustFillInfo
Dim _DocumentInformation As DocumentInformation
Dim _ViewSupport As New ViewSupport
oAction(0) = New Refresh
oAction(1) = New FillPrompts
_Connection.URL = bo_ws_base_url + "reportengine"
boRepEng = New BusinessObjects.DSWS.ReportEngine.ReportEngine(_Connection, _Session.ConnectionState)
boRepEng.Connection.TimeOut = 600
_ViewSupport.OutputFormat = OutputFormatType.HTML
_ViewSupport.ViewMode = ViewModeType.REPORT_PAGE
_ViewSupport.ViewType = ViewType.CHARACTER
_RetrieveMustFillInfo.RetrievePromptsInfo = New RetrievePromptsInfo
_DocumentInformation = boRepEng.GetDocumentInformation(ReportId, _RetrieveMustFillInfo, oAction, Nothing, Nothing)
Dim _PromptInfo() As PromptInfo = _DocumentInformation.PromptInfo
Return _PromptInfo
Catch ex As DSWSException
Throw ex
End Try
End Function
2-> GetDocumentInformation takes lot of time when I use it for a CrystalReport. For WEBI And DESKI it doesnt take more that 2 seconds. IS there anything that could be done about Crystal REPorts?
3-> When I get the documentinformation and Look at the promptsInfo, none of the prompts retrieve LOVs. When I see the same report from InfoView or CMC I do see LOV. How do we get the LOV data?
Am I doing something Wrong. I have used the same code that I got from the devlibrary samples.
Thanks,
Nilesh