GetUploadResultLog Method - SmartPlant Foundation - IM Update 44 - Customization & Programming - Hexagon

SmartPlant Foundation Customization

Language
English
Product
SmartPlant Foundation
Search by Category
Customization & Programming
SmartPlant Foundation / SDx Version
10

Inputs

RequestID – OBID of the Upload request object. This is returned by the upload web method used.

Outputs

UploadResult object

If the Upload result RequestHasBeenProcessed property is True, then there is an XFRItem under XFRUploadLog that contains the OBID of the upload request log file. This is then used to call the ViewFileUsingVirtualFilePath web method.

Dim lobjUploadResult As UploadService.XFRUploadResult = lobjUploadService.GetUploadResultLog(lblSessionId.Text, txtRequestID.Text)

If lobjUploadResult IsNot Nothing Then

lblHasBeenProcessed.Text = lobjUploadResult.RequestHasBeenProcessed.ToString

If lobjUploadResult.RequestHasBeenProcessed Then

'

' Get the log file to see the output

'

For Each lobjItem As UploadService.XFRItem In lobjUploadResult.XFRUploadLog.XFRItems

If lobjItem.C = "RESULTLOG" Then

lblHasBeenProcessed.Text = lobjItem.N

End If

Next

End If

End If