V_QUERY_USERDEFINEDELEMENTNOTE

This query view spec definition provides the ability to query for user-defined element notes.

Fields

Field Field Type Null Description
ID uniqueidentifier System record ID
USERDEFINEDELEMENTID uniqueidentifier User-defined Element ID
DATEENTERED datetime Date entered
TITLE nvarchar(50) Title
AUTHORNAME nvarchar(154) yes Author name
AUTHORID uniqueidentifier yes Author system ID
TEXTNOTE nvarchar(max) Notes
TYPE nvarchar(100) yes Type
DATEADDED datetime Date added
DATECHANGED datetime Date changed
TSLONG bigint yes Timestamp value
ADDEDBY_APPLICATION nvarchar(200) yes Added by application
ADDEDBY_USERNAME nvarchar(128) yes Added by user name
CHANGEDBY_APPLICATION nvarchar(200) yes Changed by application
CHANGEDBY_USERNAME nvarchar(128) yes Changed by user name

Definition

Copy
/*
Generated by Blackbaud AppFx Platform
Date:  11/30/2010 11:28:14 PM
Assembly Version:  Blackbaud.AppFx.Platform.SqlClr, Version=2.8.2022.0, Culture=neutral, PublicKeyToken=null
Copyright Blackbaud
*/
CREATE VIEW dbo.V_QUERY_USERDEFINEDELEMENTNOTE AS



        select
                    USERDEFINEDELEMENTNOTE.ID,
                    USERDEFINEDELEMENTNOTE.USERDEFINEDELEMENTID,
                    USERDEFINEDELEMENTNOTE.DATEENTERED,
                    USERDEFINEDELEMENTNOTE.TITLE,
                    AUTHOR.NAME as AUTHORNAME,
                    USERDEFINEDELEMENTNOTE.AUTHORID,
                    USERDEFINEDELEMENTNOTE.TEXTNOTE,
                    USERDEFINEDNOTETYPECODE.DESCRIPTION as TYPE,
                    USERDEFINEDELEMENTNOTE.DATEADDED,
                    USERDEFINEDELEMENTNOTE.DATECHANGED,
                    USERDEFINEDELEMENTNOTE.TSLONG,
                    ADDEDBY.APPLICATIONNAME as ADDEDBY_APPLICATION,
                    ADDEDBY.USERNAME as ADDEDBY_USERNAME,
                    CHANGEDBY.APPLICATIONNAME as CHANGEDBY_APPLICATION,
                    CHANGEDBY.USERNAME as CHANGEDBY_USERNAME
                    /*#EXTENSION*/ 
                from 
                    dbo.USERDEFINEDELEMENTNOTE                        
                    left join dbo.USERDEFINEDNOTETYPECODE on USERDEFINEDELEMENTNOTE.USERDEFINEDNOTETYPECODEID = USERDEFINEDNOTETYPECODE.ID
                    left join dbo.CONSTITUENT as AUTHOR on AUTHOR.ID = USERDEFINEDELEMENTNOTE.AUTHORID
                    left join dbo.CHANGEAGENT as ADDEDBY on ADDEDBY.ID = USERDEFINEDELEMENTNOTE.ADDEDBYID
                    left join dbo.CHANGEAGENT as CHANGEDBY on CHANGEDBY.ID = USERDEFINEDELEMENTNOTE.CHANGEDBYID