USP_DATAFORMTEMPLATE_VIEW_RELATIONSHIPMAPINSTANCEEXPRESSION
The load procedure used by the view dataform template "Relationship Map Instance Page Expression View Form"
Parameters
Parameter | Parameter Type | Mode | Description |
---|---|---|---|
@ID | nvarchar(100) | 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. |
@RELATIONSHIPMAPINSTANCEID | uniqueidentifier | INOUT | Relationship map instance ID |
@NAME | nvarchar(100) | INOUT | Name |
Definition
Copy
create procedure dbo.USP_DATAFORMTEMPLATE_VIEW_RELATIONSHIPMAPINSTANCEEXPRESSION
(
@ID nvarchar(100),
@DATALOADED bit = 0 output,
@RELATIONSHIPMAPINSTANCEID uniqueidentifier = null output,
@NAME nvarchar(100) = null output
)
as
set nocount on;
-- be sure to set this, in case the select returns no rows
set @DATALOADED = 0;
select @RELATIONSHIPMAPINSTANCEID = left(@ID, 36),
@NAME = NAME
from dbo.RELATIONSHIPMAPINSTANCE
where ID = left(@ID, 36);
-- Because the page can represent a new relationship map instance, allow for the specified instance to not exist.
set @DATALOADED = 1;
return 0;