XRef Usage:
( Select,Add and Update)
Xref Table Name : CLR
Name : "InterfaceName" , "LastRunDate"
Select Xref :
Syntax :
xref:lookupXRef("CLR.xref","InterfaceName","CLR022","LastRunDate",true())
Add - xref:populateXRefRow :
xref:populateXRefRow("CLR.xref","InterfaceName","CLR022","LastRunDate",xp20:format-dateTime(xp20:current-dateTime(),'[Y0001]-[M01]-[D01] [H01]:[m01]:[s01].[f001]'),"ADD")
Update :
xref:populateXRefRow("CLR.xref","InterfaceName","CLR022","LastRunDate",xp20:format-dateTime(xp20:current-dateTime(),'[Y0001]-[M01]-[D01] [H01]:[m01]:[s01].[f001]'),"UPDATE")
( Select,Add and Update)
Xref Table Name : CLR
Name : "InterfaceName" , "LastRunDate"
Select Xref :
Syntax :
xref:lookupXRef(xrefLocation as string, xrefReferenceColumnName as string, xrefReferenceValue as string, xrefColumnName as string, needAnException as boolean) as stringExample :
xref:lookupXRef("CLR.xref","InterfaceName","CLR022","LastRunDate",true())
Add - xref:populateXRefRow :
xref:populateXRefRow(xrefLocation as string, xrefReferenceColumnName as string, xrefReferenceValue as string, xrefColumnName as string, xrefValue as string, mode as string) as string
xrefLocation
: The cross reference table URI.xrefReferenceColumnName
: The name of the reference column.xrefReferenceValue
: The value corresponding to the reference column name.xrefColumnName
: The name of the column to be populated.xrefValue
: The value to be populated in the column.mode
: The mode in which thexref:populateXRefRow
function populates the column. You can specify any of the following values:ADD
,LINK
, orUPDATE
.
xref:populateXRefRow("CLR.xref","InterfaceName","CLR022","LastRunDate",xp20:format-dateTime(xp20:current-dateTime(),'[Y0001]-[M01]-[D01] [H01]:[m01]:[s01].[f001]'),"ADD")
Update :
xref:populateXRefRow("CLR.xref","InterfaceName","CLR022","LastRunDate",xp20:format-dateTime(xp20:current-dateTime(),'[Y0001]-[M01]-[D01] [H01]:[m01]:[s01].[f001]'),"UPDATE")
No comments:
Post a Comment