USP_DATAFORMTEMPLATE_ADD_SALESORDERNOTE_PRELOAD
The load procedure used by the edit dataform template "Sales Order Note Add Form"
Parameters
| Parameter | Parameter Type | Mode | Description |
|---|---|---|---|
| @CURRENTAPPUSERID | uniqueidentifier | IN | Input parameter indicating the ID of the current user. |
| @AUTHORID | uniqueidentifier | INOUT | Author |
| @SALESORDERID | uniqueidentifier | IN | Input parameter indicating the context ID for the record being added. |
| @CONTEXTTYPE | smallint | INOUT | Context type |
| @ORDERID | uniqueidentifier | INOUT |
Definition
Copy
CREATE procedure dbo.USP_DATAFORMTEMPLATE_ADD_SALESORDERNOTE_PRELOAD
(
@CURRENTAPPUSERID uniqueidentifier,
@AUTHORID uniqueidentifier = null output,
@SALESORDERID uniqueidentifier,
@CONTEXTTYPE smallint = null output,
@ORDERID uniqueidentifier = null output
)
as
set nocount on;
set @CONTEXTTYPE = 0; --constituent
select top 1
@AUTHORID = CONSTITUENTID
from
dbo.APPUSER
where
ID = @CURRENTAPPUSERID;
set @ORDERID = @SALESORDERID;
return 0;