Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 9236

SI_PATH with .NET webservice

$
0
0

Using the DSWS.BIPlatform I can get a WebI report's FRS filename (equivalent to SELECT SI_FILES FROM CI_INFOOBJECTS ) via FileProperties.Files(0).Name

 

What I can't get is the Path. It really should be in FileProperties.Files(0).Path

 

This was asked once before, and the answer given was that it's not a good idea to go playing in the FRS.

 

I agree, but I'm not trying to alter anything, just trying to document where reports live in the FRS in case of disaster. The SAN unit backups are separate to the SQL backups and something may happen.

 

Besides, if the information is available in the enterprise SDK, shouldn't it be available in the WebServices SDK too ?

 

Here is a snippet of code I'm using, forgive me if I've missed something obvious.

 

 

               Dim query As String = "query://{SELECT TOP 1000000 SI_CUID,SI_NAME,SI_PARENT,SI_FILES FROM CI_INFOOBJECTS WHERE SI_KIND = 'WEBI' }"
                 Dim boResponseHolder As BusinessObjects.DSWS.BIPlatform.ResponseHolder = _wsBIPlatformService.Get(query, Nothing)
                 If boResponseHolder.InfoObjects IsNot Nothing Then
                     Dim pd As PagingDetails = boResponseHolder.PagingDetails
                     For Each pg As PageInfo In pd.PageInfo
                         Dim pageHolder As BusinessObjects.DSWS.BIPlatform.ResponseHolder = _wsBIPlatformService.Get(pg.PageURI, Nothing)
                         If (pageHolder.InfoObjects.InfoObject.Length > 0) Then
                             For Each obj As InfoObject In pageHolder.InfoObjects.InfoObject
                                 _DocumentList.Add(obj.CUID, obj.Name)
                                 Dim DocDetails As New DocumentSummaryDetails
                                 DocDetails.CUID = obj.CUID
                                 DocDetails.Name = obj.Name
                                 DocDetails.FolderCUID = obj.ParentCUID ' FolderName = Folders(obj.ParentCUID)
                                 DocDetails.SIFile = DirectCast(obj, BusinessObjects.DSWS.BIPlatform.Desktop.Webi).FileProperties.Files(0).Name
                                 DocDetails.SIPath = "" ' Need Code Here


Viewing all articles
Browse latest Browse all 9236

Trending Articles