Přeskočit na hlavní obsah

Table functions

dbo.ftApprovers

Position for determining the approvers of a specific approval step.

Parameters

NameTypeDescription

@approvalItemId

int

Return table

ColumnTypeDescription

iPersonId

int

Approver ID (tPerson.iPersonId).

sPerson

nvarchar(1024)

Approver name.

sPersonEmail

nvarchar(1024)

Approver e-mail.

isDelegateApprover

bit

If 1, it is a delegate of an approver. The approver is currently out of office.

dbo.ftAttendanceMonthReport

Function that creates the table for the employee's monthly report

Parameters

NameTypeDescription

@month

int

@year

int

@personId

int

@curPersonId

int

Return table

ColumnTypeDescription

id

int

day

datetime

lastMidnight

datetime

nextMidnight

datetime

isWeekend

bit

workTime

float

holiday

nvarchar(255)

doLink

bit

coverWithWorkLoad

bit

tolerance

int

dbo.ftCanManageKnowledge

List of services and articles that the given user may administer.

Parameters

NameTypeDescription

@userId

int

Return table

ColumnTypeDescription

SectionId

int

ArticleId

int

dbo.ftCommaListToTableIds

Conversion of value list string (ID,ID,...) to value table.

Parameters

NameTypeDescription

@list

nvarchar(max)

Return table

ColumnTypeDescription

id

int

dbo.ftCompanySearch

Search of organizations across all system items.

Parameters

NameTypeDescription

@sample

nvarchar(100)

@accountId

int

Return table

ColumnTypeDescription

AccountId

int

CompanyInfo

nvarchar(300)

Address

nvarchar(max)

Address2

nvarchar(max)

ItemOrder

int

dbo.ftComputerSwManager

People responsible for software installed on the computer

Parameters

NameTypeDescription

@ComputerId

int

Return table

ColumnTypeDescription

ComputerId

int

SwManagerNodeId

int

SwManagerPersonId

int

dbo.ftDeviceSearch

Searching for the object in the tree. Returns a table of objects matching the entered parameters arranged by the path in the tree. The function can be customized. In order to customize the function, create a new function named ftDeviceSearch_Custom2 and assign a permission to run it to the "db_executor" group. For a proper functionality of ALVAO applications, the function must receive the same parameters as the original functions and return the same columns.

Parameters

NameTypeDescription

@sample

nvarchar(300)

Searched string. The search proceeds in the path of the tree, object name, type, serial number, inventory number and asset number. If empty or NULL, the function returns only the assets entrusted to the requester. Otherwise, the function returns also objects that the user is authorized to see.

@nodeId

int

ID of the object currently selected. It will be shown as the first in the result.

@count

int

Number of items in the return table.

@personId

int

Signed-in user ID.

@requesterId

int

ID of the selected ticket requester.

@classIds

nvarchar(max)

ID of object types that limit searching. If the value is NULL, all object types are being searched.

Return table

ColumnTypeDescription

DeviceId

int

Object ID.

DeviceName

nvarchar(300)

Displayed object name.

DeviceInfo

nvarchar(300)

Displayed name in the menu during searching. Form: “object type: object name; inventory number, asset number, serial number".

DeviceIconId

int

Icon ID.

DevicePath

nvarchar(1024)

Path to object in tree.

ItemOrder

int

The value by which the result is sorted.

dbo.ftGetContextInfo

The function will return current data in the context of a database connection.

Return table

NameTypeDescription

PersonId

int

User ID (tPerson.iPersonId). If not set, the ID of the system user will be used instead.

Date

datetime

Date & time. If not set, the current date and time will be used.

dbo.ftLicHistRelations

The function to generate the list of links for the selected license.

Parameters

NameTypeDescription

@licHistId

int

Return table

ColumnTypeDescription

id

int

LicHistRelationTypeId

int

ModifiedDate

datetime

ModifiedByPerson

nvarchar(255)

Straight

bit

BeginLicHistId

int

BeginLicHistRelation

nvarchar(32)

BeginDteDate

datetime

BeginTxtLicName

nvarchar(255)

BeginLicenseCount

int

BeginTxtProductName

nvarchar(255)

BeginTxtResellerCompany

nvarchar(255)

BeginTxtLicType

nvarchar(255)

BeginTxtProductType

nvarchar(255)

BeginIntCurrentCount

int

BeginIntAssignedCount

int

BeginDteDateExpire

datetime

BeginTxtActivationKey

nvarchar(1024)

BeginTxtInventoryNum

nvarchar(255)

BeginTxtInvoice

nvarchar(255)

BeginTxtLang

nvarchar(255)

BeginBolDowngrade

bit

BeginTxtMemo

nvarchar(max)

EndLicHistId

int

EndLicHistRelation

nvarchar(32)

EndDteDate

datetime

EndTxtLicName

nvarchar(255)

EndLicenseCount

int

EndTxtProductName

nvarchar(255)

EndTxtResellerCompany

nvarchar(255)

EndTxtLicType

nvarchar(255)

EndTxtProductType

nvarchar(255)

EndIntCurrentCount

int

EndIntAssignedCount

int

EndDteDateExpire

datetime

EndTxtActivationKey

nvarchar(1024)

EndTxtInventoryNum

nvarchar(255)

EndTxtInvoice

nvarchar(255)

EndTxtLang

nvarchar(255)

EndBolDowngrade

bit

EndTxtMemo

nvarchar(max)

dbo.ftLicHistSearch

The function to search for the license.

Parameters

NameTypeDescription

@sample

nvarchar(300)

@licHistId

int

@count

int

Return table

ColumnTypeDescription

LicHistId

int

LicHistInfo

nvarchar(300)

ItemOrder

int

dbo.ftNodeRelations

Function that generates a list of links for the selected object with disabled tree rights.

Parameters

NameTypeDescription

@nodeId

int

@showHidden

bit

Return table

ColumnTypeDescription

id

int

NodeRelationTypeId

int

BeginNodeId

int

BeginNodeRelation

nvarchar(32)

BeginNodeKind

nvarchar(255)

BeginNodeName

nvarchar(255)

BeginNodePath

nvarchar(1024)

EndNodeId

int

EndNodeRelation

nvarchar(32)

EndNodeKind

nvarchar(255)

EndNodeName

nvarchar(255)

EndNodePath

nvarchar(1024)

ThroughNodeId

int

ThroughRelationName

nvarchar(255)

Affects

bit

IsAffected

bit

CreatedDate

datetime

CreatedByPerson

nvarchar(255)

RemovedDate

datetime

RemovedByPerson

nvarchar(255)

Straight

bit

Level

int

dbo.ftPersonFromLogin

Search person according to login name

Parameters

NameTypeDescription

@login

nvarchar(255)

Return table

ColumnTypeDescription

id

int

Person

nvarchar(255)

Login

nvarchar(255)

Email

nvarchar(255)

Pswd

nvarchar(255)

System

bit

AccountDisabled

bit

Hidden

bit

Guest

bit

SID

nvarchar(255)

AdGuid

nvarchar(255)

dbo.ftPersonSearchExtended

Extended search of persons across all system items.

Parameters

NameTypeDescription

@sample

nvarchar(100)

@accountId

int

@guest

bit

@personId

int

Return table

ColumnTypeDescription

PersonId

int

PersonInfo

nvarchar(300)

ItemOrder

int

dbo.ftRelation

Linked ticket. The function is used to populate the fields in the dialog for updating selected links (@trId) on the Ticket links tab @ticketId.

Parameters

NameTypeDescription

@trId

int

@ticketId

int

Return table

ColumnTypeDescription

BeginHdTicketId

int

EndHdTicketId

int

TicketRelationTypeId

int

dbo.ftRelationsTypes

Types of links between tickets. The function is used to populate the link menu.

Parameters

NameTypeDescription

@localeId

int

Return table

ColumnTypeDescription

relIdDir

int

BeginName

nvarchar(200)

EndName

nvarchar(200)

MenuOrderStr

nvarchar(200)

LocalizedBeginName

nvarchar(200)

LocalizedEndName

nvarchar(200)

dbo.ftTicketsStateIntersectList

The intersection of statuses for @TicketIds tickets, which you can transition to from ticket statuses, with the exception to Resolved.

Parameters

NameTypeDescription

@TicketIds

nvarchar(200)

Return table

ColumnTypeDescription

id

int

TicketState

nvarchar(64)

Order

int

TicketStateBehaviorId

int

dbo.ftTicketStateList

The list of statuses for the @TicketIds ticket, which you can transition to from the current status, with the exception to Resolved.

Parameters

NameTypeDescription

@TicketId

int

Return table

ColumnTypeDescription

id

int

TicketState

nvarchar(64)

Order

int

TicketStateBehaviorId

int

dbo.ftTicketStateListIncResolved

The list of statuses for the @TicketIds ticket, which you can transition to from the current status.

Parameters

NameTypeDescription

@TicketId

int

Return table

ColumnTypeDescription

id

int

TicketState

nvarchar(64)

Order

int

TicketStateBehaviorId

int

dbo.ftTicketStateMultiList

Function for the return of the intersection of possible states (including Solved/Closed) for multiple tickets.

Parameters

NameTypeDescription

@TicketIds

nvarchar(max)

Return table

ColumnTypeDescription

id

int

TicketState

nvarchar(64)

Order

int

TicketStateBehaviorId

int

dbo.tfDay

Calendar of days starting with @Begin to @End (excluding).

Parameters

NameTypeDescription

@Begin

datetime

@End

datetime

Return table

ColumnTypeDescription

dDay

datetime

dbo.tfPersonManager

Direct managers.

Return table

NameTypeDescription

liPersonManagerSubordinatePersonId

int

liPersonManagerManagerPersonId

int

dbo.tfSplitString

The function divides the value based on a preset separator.

Parameters

NameTypeDescription

@string

nvarchar(max)

@splitChar

nvarchar(1)

Return table

ColumnTypeDescription

word

nvarchar(1024)