VistA Analysis » VistA Reference » RPCs » XWB REMOTE GETDATA

XWB REMOTE GETDATA

This RPC will return an ARRAY with what ever data has been sent back fromthe remote site.

Properties

Property Value
Label RTNDATA
MUMPS Implementation XWBDRPC
Return Type ARRAY

Input Parameters

Name Type Maximum Data Length Required Description
HANDLE LITERAL 30 true The HANDLE from the XWB REMOTE RPC call. It is used to link the call tothe data.

MUMPS Method Description

Property Value
Method RTNDATA^XWBDRPC
Method Comment Return the data under a handle
Input Parameters HDL
Code
 N I,N,RD,WRAP S RET="" K ^TMP($J,"XWB")
I $G(HDL)="" S RET(0)="-1^Bad Handle" Q
S N=$$CHKHDL^XWBDRPC(HDL) I N<1 S RET(0)=N Q
I N'["Done" S RET(0)="-1^Not DONE" Q
S N=(^XTMP(HDL,"CNT")>100)
S I=0,RD=$S(N:$NA(^TMP($J,"XWB")),1:"RET")
I N S RET=$NA(^TMP($J,"XWB")),I=$$RTRNFMT^XWBLIB(4) ;Make return a global
I N M ^TMP($J,"XWB")=^XTMP(HDL,"D")
I 'N F S RET(I)=$G(^XTMP(HDL,"D",I)),I=$O(^XTMP(HDL,"D",I)) Q:I'>0

CPRS

File Type Description
Pascal File rReports.pas


Document generated on August 31st 2022, 2:55:43 pm