USP_DATAFORMTEMPLATE_VIEW_SHOPPINGCARTPARTDATA_FROMCONTENTID
The load procedure used by the view dataform template "Shopping Cart Part Data View from Content ID"
Parameters
Parameter | Parameter Type | Mode | Description |
---|---|---|---|
@ID | int | 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. |
@SHOPPINGCARTPARTID | int | INOUT | ID |
Definition
Copy
create procedure dbo.USP_DATAFORMTEMPLATE_VIEW_SHOPPINGCARTPARTDATA_FROMCONTENTID
(
@ID int,
@DATALOADED bit = 0 output,
@SHOPPINGCARTPARTID int = null output
)
as
set nocount on;
-- be sure to set this, in case the select returns no rows
set @DATALOADED = 0;
select @DATALOADED = 1,
@SHOPPINGCARTPARTID = ID
from dbo.ShoppingCartPart
where SITECONTENTID = @ID
return 0;