USP_DATAFORMTEMPLATE_VIEW_RESERVATIONNAME
The load procedure used by the view dataform template "Reservation Name View Form"
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. |
@RESERVATIONNAME | nvarchar(100) | INOUT | Reservation name |
@SEQUENCEID | int | INOUT | Order number |
@CONSTITUENTNAME | nvarchar(154) | INOUT | Constituent name |
Definition
Copy
create procedure dbo.USP_DATAFORMTEMPLATE_VIEW_RESERVATIONNAME
(
@ID uniqueidentifier,
@DATALOADED bit = 0 output,
@RESERVATIONNAME nvarchar(100) = null output,
@SEQUENCEID int = null output,
@CONSTITUENTNAME nvarchar(154) = null output
)
as
set nocount on;
set @DATALOADED = 0;
select
@DATALOADED = 1,
@RESERVATIONNAME = RESERVATION.NAME,
@SEQUENCEID = SALESORDER.SEQUENCEID,
@CONSTITUENTNAME = dbo.UFN_CONSTITUENT_BUILDNAME(SALESORDER.CONSTITUENTID)
from
dbo.RESERVATION
inner join
dbo.SALESORDER on RESERVATION.ID = SALESORDER.ID
where
RESERVATION.ID = @ID;
return 0;