ExpressionTable::replaceTokens Method
Replaces tokens, if any, in the xpath query with the RefRecIds
Syntax
server public static str replaceTokens(str xpathQuery, ExpressionTable expressionTable)
Run On
Server
Parameters
- xpathQuery
Type: str
The xpath query that represents the condition
- expressionTable
Type: ExpressionTable Table
Expression table buffer that has the condition
Return Value
Type: str
If the condition is on SFK field(s) then an updated xpath query with the tokens replaced with the RefRecIds Otherwise the original xpath query
Remarks
RefRecIDs are not saved within xpaths as the values could change during export/import of data. So when SFK conditions are created we only create placeholders for these RecIDs in the xpath that represents the condition. The actual RefRecIds are saved in the ExpressionPredicate table At condition evaluation time the Expression Engine will replace these placeholders with the RecIds.