USP_DATAFORMTEMPLATE_EDITLOAD_RE7INTEGRATIONFIELDS
The load procedure used by the edit dataform template "RE7 Integration Fields Edit Form"
Parameters
Parameter | Parameter Type | Mode | Description |
---|---|---|---|
@DATALOADED | bit | INOUT | Output parameter indicating whether or not data was actually loaded. |
@TSLONG | bigint | INOUT | Output parameter indicating the TSLONG value of the record being edited. This is used to manage multi-user concurrency issues when multiple users access the same record. |
@RE7INTEGRATIONCONFIGURED | bit | INOUT | |
@FROMRE7 | bit | INOUT | Add data from The Raiser's Edge |
@FROMRE7SELECTEDFIELDS | xml | INOUT | Fields |
@TORE7 | bit | INOUT | Add data to The Raiser's Edge |
@TORE7SELECTEDFIELDS | xml | INOUT | Fields |
@VIEWRE7SELECTEDFIELDS | xml | INOUT | |
@CURRENTAPPUSERID | uniqueidentifier | IN | |
@RE7WEBCONFIGURED | bit | INOUT |
Definition
Copy
CREATE procedure dbo.USP_DATAFORMTEMPLATE_EDITLOAD_RE7INTEGRATIONFIELDS(
@DATALOADED bit = 0 output,
@TSLONG bigint = 0 output,
@RE7INTEGRATIONCONFIGURED bit = null output,
@FROMRE7 bit = null output,
@FROMRE7SELECTEDFIELDS xml = null output,
@TORE7 bit = null output,
@TORE7SELECTEDFIELDS xml = null output,
@VIEWRE7SELECTEDFIELDS xml = null output,
@CURRENTAPPUSERID uniqueidentifier,
@RE7WEBCONFIGURED bit = null output
) as
set nocount on;
set @DATALOADED = 1
set @TSLONG = 0
select
@RE7INTEGRATIONCONFIGURED = 1,
@FROMRE7 = RE7INTEGRATIONCONFIGURATION.FROMRE7,
@TORE7 = RE7INTEGRATIONCONFIGURATION.TORE7,
@TSLONG = RE7INTEGRATIONCONFIGURATION.TSLONG
from
dbo.RE7INTEGRATIONCONFIGURATION;
set @FROMRE7SELECTEDFIELDS = replace(convert(nvarchar(max),dbo.UFN_RE7INTEGRATION_GETSELECTEDTORE7FIELDS_TOITEMLISTXML(0)),'RE7INTEGRATIONSELECTEDFIELDS','FROMRE7SELECTEDFIELDS');
set @TORE7SELECTEDFIELDS = replace(convert(nvarchar(max),dbo.UFN_RE7INTEGRATION_GETSELECTEDTORE7FIELDS_TOITEMLISTXML(1)),'RE7INTEGRATIONSELECTEDFIELDS','TORE7SELECTEDFIELDS');
set @VIEWRE7SELECTEDFIELDS = replace(convert(nvarchar(max),dbo.UFN_RE7INTEGRATION_GETSELECTEDTORE7FIELDS_TOITEMLISTXML(2)),'RE7INTEGRATIONSELECTEDFIELDS','VIEWRE7SELECTEDFIELDS');
if exists (select top 1 RERPWEBSERVICEURL from dbo.RE7INTEGRATIONCONFIGURATION where RERPWEBSERVICEURL <> '')
begin
set @RE7WEBCONFIGURED = 1
end else begin
set @RE7WEBCONFIGURED = 0
end
return 0;