USP_DATAFORMTEMPLATE_EDITLOAD_TRACKLOAD
The load procedure used by the edit dataform template "Track Load Edit Data 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. |
| @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. |
| @TRACKID | uniqueidentifier | INOUT | Track |
| @ITEMSEXIST | bit | INOUT | |
| @IGNORECONFLICTS | bit | INOUT | Ignore itinerary resource conflicts when saving |
| @ARRIVALDATE | datetime | INOUT | Arrival date |
Definition
Copy
CREATE procedure dbo.USP_DATAFORMTEMPLATE_EDITLOAD_TRACKLOAD(
@ID uniqueidentifier,
@DATALOADED bit = 0 output,
@TSLONG bigint = 0 output,
@TRACKID uniqueidentifier = null output,
@ITEMSEXIST bit = null output,
@IGNORECONFLICTS bit = null output,
@ARRIVALDATE datetime = null output
)
as
set nocount on;
set @DATALOADED = 0
set @TSLONG = 0
select
@DATALOADED = 1,
@TSLONG = ITINERARY.TSLONG,
@ARRIVALDATE = RESERVATION.ARRIVALDATE
from dbo.ITINERARY
inner join dbo.RESERVATION
on ITINERARY.RESERVATIONID = RESERVATION.ID
where ITINERARY.ID = @ID
if exists (select 1 from dbo.ITINERARYITEM where ITINERARYID = @ID)
set @ITEMSEXIST = 1
return 0;