Differenze tra le versioni di "Standard Function"

Da itm wiki.
Riga 1: Riga 1:
 
itmSUITE® propose to a customer a set of Standard function to facilitate the reporting development.
 
itmSUITE® propose to a customer a set of Standard function to facilitate the reporting development.
This functions are define at data base level.
+
These functions are defined at data base level.
  
 
The paragraphs below report the standard function collection.
 
The paragraphs below report the standard function collection.
Riga 6: Riga 6:
 
The information reported are shown in the following table:
 
The information reported are shown in the following table:
 
{| class="wikitable"
 
{| class="wikitable"
! Function Name !! Description
+
! Function Name!! Description
 
|-
 
|-
|getSRCSValue || This function return information about SRCS record
+
|getSRCSValue || This function return information about SRCS record
 
|-
 
|-
|getTCFValue || This function return information about Ticket Custom field record
+
|getTCFValue || This function return information about Ticket Custom field record
 
|}
 
|}
  
 
== getSRCSValue ==
 
== getSRCSValue ==
  
Purpose of this function is give to Customer a simple way to view the information connected to SRCS record.
+
Purpose of this function is given to Customer a simple way to view the information connected to SRCS record.
  
 
=== Defnition ===  
 
=== Defnition ===  
Riga 23: Riga 23:
  
 
{| class="wikitable"
 
{| class="wikitable"
! Parameter Name !!Type !! Description
+
! Parameter Name !!Type!! Description
 
|-
 
|-
 
| ticketFieldId || int || This is the Ticket field id value. The list of id is visible in __STR_TICKET_FIELD View  
 
| ticketFieldId || int || This is the Ticket field id value. The list of id is visible in __STR_TICKET_FIELD View  
 
|-
 
|-
| srcId || int || This is the SRCS record id
+
| srcId || int || This is the SRCS record id
 
|-
 
|-
| type || int || Set 0 if you want to return as result of the funciton the a string value; 1 id we want to return the ID of the result. E.g: if the  ticketFieldId = 18, Solution Group, when the type is set to 0 the function return the Solution Group name, when is set to 1 it return the Solution group ID
+
| type || int || Set 0 if you want to return as result of the function the a string value; 1 id we want to return the ID of the result. E.g: if the  ticketFieldId = 18, Solution Group, when the type is set to 0 the function return the Solution Group name, when is set to 1 it return the Solution group ID
 
|}
 
|}
  
Riga 39: Riga 39:
  
 
== getTCFValue ==
 
== getTCFValue ==
Purpose of this function is give to Customer a simple way to view the information connected to Custom field valorized in a Ticket record.
+
Purpose of this function is given to Customer a simple way to view the information connected to Custom field valorized in a Ticket record.
  
 
=== Defnition ===  
 
=== Defnition ===  
Riga 47: Riga 47:
  
 
{| class="wikitable"
 
{| class="wikitable"
! Parameter Name !!Type !! Description
+
! Parameter Name !!Type!! Description
 
|-
 
|-
 
| custiomFieldId || int || This is the Custom field id value. The list of id is visible in __STR_TICKET_FIELD_VIEW  
 
| custiomFieldId || int || This is the Custom field id value. The list of id is visible in __STR_TICKET_FIELD_VIEW  
 
|-
 
|-
| ticketId || int || This is the id of Ticket. Ticket id is visible using the __STR_TICKET_VIEW View  
+
| ticketId || int || This is the id of Ticket. Ticket id is visible using the __STR_TICKET_VIEW View  
 
|}
 
|}

Versione delle 11:00, 7 mag 2018

itmSUITE® propose to a customer a set of Standard function to facilitate the reporting development. These functions are defined at data base level.

The paragraphs below report the standard function collection.

The information reported are shown in the following table:

Function Name Description
getSRCSValue This function return information about SRCS record
getTCFValue This function return information about Ticket Custom field record

getSRCSValue

Purpose of this function is given to Customer a simple way to view the information connected to SRCS record.

Defnition

[dbo].[getSRCSValue](@ticketFieldId int, @srcId int, @type int = 0) returns nvarchar(max)

The function expects three parameters

Parameter Name Type Description
ticketFieldId int This is the Ticket field id value. The list of id is visible in __STR_TICKET_FIELD View
srcId int This is the SRCS record id
type int Set 0 if you want to return as result of the function the a string value; 1 id we want to return the ID of the result. E.g: if the ticketFieldId = 18, Solution Group, when the type is set to 0 the function return the Solution Group name, when is set to 1 it return the Solution group ID

and return a string value.

If for a specific ticketFieldId the function return blank, call the support to check if the specific field management is implemented


getTCFValue

Purpose of this function is given to Customer a simple way to view the information connected to Custom field valorized in a Ticket record.

Defnition

[dbo].[getTCFValue](@custiomFieldId int, @ticketId int) returns nvarchar(max)

The function expects three parameters:

Parameter Name Type Description
custiomFieldId int This is the Custom field id value. The list of id is visible in __STR_TICKET_FIELD_VIEW
ticketId int This is the id of Ticket. Ticket id is visible using the __STR_TICKET_VIEW View