USP_DATAFORMTEMPLATE_VIEW_KPIINSTANCESUMMARY
The load procedure used by the view dataform template "KPI Instance Summary 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. |
@DECIMALPLACES | tinyint | INOUT | DECIMALPLACES |
@CURRENCYFIELDID | nvarchar(100) | INOUT | CURRENCYFIELDID |
Definition
Copy
CREATE procedure dbo.USP_DATAFORMTEMPLATE_VIEW_KPIINSTANCESUMMARY
(
@ID uniqueidentifier,
@DATALOADED bit = 0 output,
@DECIMALPLACES tinyint = null output,
@CURRENCYFIELDID nvarchar(100) = null output
)
as
set nocount on;
set @DATALOADED = 0;
with xmlnamespaces ('bb_appfx_kpi' as tns, 'bb_appfx_commontypes' as common)
select
@DATALOADED = 1,
@DECIMALPLACES = K.DECIMALPLACES,
@CURRENCYFIELDID = K.SPECXML.value('(tns:KpiSpec/tns:KpiFormDefinition/@CurrencyFieldID)[1]', 'nvarchar(100)')
from dbo.KPIINSTANCE as INSTANCE
inner join dbo.KPICATALOG as K on INSTANCE.KPICATALOGID = K.ID
where INSTANCE.ID = @ID;
return 0;