USP_DATAFORMTEMPLATE_EDITLOAD_ADHOCQUERYHIERARCHY
The load procedure used by the edit dataform template "Ad-Hoc Query Hierarchy Edit Form"
Parameters
Parameter | Parameter Type | Mode | Description |
---|---|---|---|
@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. |
@ADHOCQUERYHIERARCHY | xml | INOUT | Hierarchy |
@CURRENTAPPUSERID | uniqueidentifier | IN | Input parameter indicating the ID of the current user. |
@SMARTQUERYAVAILABLE | bit | INOUT |
Definition
Copy
CREATE procedure dbo.USP_DATAFORMTEMPLATE_EDITLOAD_ADHOCQUERYHIERARCHY
(
@DATALOADED bit = 0 output,
@TSLONG bigint = 0 output,
@ADHOCQUERYHIERARCHY xml = null output,
@CURRENTAPPUSERID uniqueidentifier = null,
@SMARTQUERYAVAILABLE bit = null output
)
as
set nocount on;
select
@ADHOCQUERYHIERARCHY = dbo.UFN_ADHOCQUERY_GETHIERARCHY_TOITEMLISTXML(@CURRENTAPPUSERID),
@TSLONG = (select max(TSLONG) from dbo.ADHOCQUERYFOLDER),
@SMARTQUERYAVAILABLE = dbo.UFN_SMARTQUERY_AVAILABLE(),
@DATALOADED = 1;
return 0;