UFN_JOURNALENTRYELEMENTS_TOITEMLISTXML

Used to convert the results of UFN_JOURNALENTRYELEMENTS to xml.

Return

Return Type
xml

Parameters

Parameter Parameter Type Mode Description
@JOURNALENTRYID uniqueidentifier IN
@RETURNALLELEMENTS bit IN

Definition

Copy
/*
Generated by Blackbaud AppFx Platform
Date:  4/29/2010 7:34:52 PM
Assembly Version:  Blackbaud.AppFx.Platform.SqlClr, Version=2.6.1444.0, Culture=neutral, PublicKeyToken=null
Based on:  UFN_JOURNALENTRYELEMENTS
Copyright Blackbaud
*/
CREATE FUNCTION dbo.[UFN_JOURNALENTRYELEMENTS_TOITEMLISTXML](
@JOURNALENTRYID uniqueidentifier
, @RETURNALLELEMENTS bit
    )
returns xml
as
BEGIN

RETURN (
SELECT [DATAELEMENTID], [GLACCOUNTSTRUCTUREID], [SEQUENCE]
 FROM dbo.[UFN_JOURNALENTRYELEMENTS](@JOURNALENTRYID, @RETURNALLELEMENTS)
 order by SEQUENCE
 for xml raw('ITEM'),type,elements,root('JOURNALENTRYELEMENTS'),BINARY BASE64

)

END