USP_DATAFORMTEMPLATE_EDITLOAD_ORGANIZATION_2
The load procedure used by the edit dataform template "Organization Data Edit Form 2"
Parameters
Parameter | Parameter Type | Mode | Description |
---|---|---|---|
@ID | uniqueidentifier | IN | The input ID parameter used to load the fields defined on the form. |
@DATALOADED | bit | INOUT | Output parameter indicating whether or not data was actually loaded. |
@ORGANIZATIONNAME | nvarchar(100) | INOUT | Name |
@INDUSTRYCODEID | uniqueidentifier | INOUT | Industry |
@NUMEMPLOYEES | int | INOUT | No. of employees |
@NUMSUBSIDIARIES | int | INOUT | No. of subsidiaries |
@PARENTCORPID | uniqueidentifier | INOUT | Parent org |
@PICTURE | varbinary | INOUT | Image |
@PICTURETHUMBNAIL | varbinary | INOUT | Image thumbnail |
@PICTURECHANGED | bit | INOUT | Picture changed? |
@WEBADDRESS | UDT_WEBADDRESS | INOUT | Website |
@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. |
@ISPRIMARY | bit | INOUT | This is a primary organization |
Definition
Copy
CREATE procedure dbo.USP_DATAFORMTEMPLATE_EDITLOAD_ORGANIZATION_2
(
@ID uniqueidentifier,
@DATALOADED bit = 0 output,
@ORGANIZATIONNAME nvarchar(100) = null output,
@INDUSTRYCODEID uniqueidentifier = null output,
@NUMEMPLOYEES int = null output,
@NUMSUBSIDIARIES int = null output,
@PARENTCORPID uniqueidentifier = null output,
@PICTURE varbinary(max) = null output,
@PICTURETHUMBNAIL varbinary(max) = null output,
@PICTURECHANGED bit = null output,
@WEBADDRESS dbo.UDT_WEBADDRESS = null output,
@TSLONG bigint = 0 output,
@ISPRIMARY bit = null output
) as
set nocount on;
-- moved original code in the USP bellow, which is shared with other areas other then organization edit (duplicate search resolution screen)
exec dbo.USP_ORGANIZATION_EDITLOAD @ID, @DATALOADED output, @ORGANIZATIONNAME output, @INDUSTRYCODEID output, @NUMEMPLOYEES output, @NUMSUBSIDIARIES output,
@PARENTCORPID output, @PICTURE output, @PICTURETHUMBNAIL output, @PICTURECHANGED output, @WEBADDRESS output, @TSLONG output, @ISPRIMARY output;
return 0;