Oracle Responsys - RPL 从补充表中提取数据(也像 FreeMarker)
Oracle Responsys - RPL to pull in data from supplemental tables (like FreeMarker as well)
我敢肯定,在这里查看是否有人知道这个问题的答案有点困难,但我正在尝试提出一个 RPL 以从补充 table 中引入另一个 RPL。 RPL 是 Responsys 的编程语言,与 FreeMarker 非常相似,所以如果您知道 FreeMarker 中的答案,请分享。
例如,我们有一个名为"firstname"的动态变量。我们正在将动态变量 "firstname" 添加到许多活动中,因此我们不想将其设置为等于 RPL 以获取名字,而是希望使用补充 table 来存储 RPL 并引用它们在动态变量中。这样我们就可以根据需要更新一个 table 来更新所有广告系列。
我试过使用
<#data table as table>
<#filter variablename = firstname>
<#fields code>
${code}
</#data>
非常感谢任何帮助!
你试过内置的 exec 吗?
像这样:
<#data table as table>
<#filter variablename = firstname>
<#fields code>
${code?exec}
</#data>
这是内置描述
expr?exec
Uses the script specified in the expression and executes it like a template. This built-in is similar to the eval built-in, except that it allows directives. Expressions must be enclosed in ${}. The result of this built-in is always a string
希望对你有所帮助
这可能晚了,但 ?exec
是方法,但需要 ${table.code?exec}
。
我敢肯定,在这里查看是否有人知道这个问题的答案有点困难,但我正在尝试提出一个 RPL 以从补充 table 中引入另一个 RPL。 RPL 是 Responsys 的编程语言,与 FreeMarker 非常相似,所以如果您知道 FreeMarker 中的答案,请分享。
例如,我们有一个名为"firstname"的动态变量。我们正在将动态变量 "firstname" 添加到许多活动中,因此我们不想将其设置为等于 RPL 以获取名字,而是希望使用补充 table 来存储 RPL 并引用它们在动态变量中。这样我们就可以根据需要更新一个 table 来更新所有广告系列。
我试过使用
<#data table as table>
<#filter variablename = firstname>
<#fields code>
${code}
</#data>
非常感谢任何帮助!
你试过内置的 exec 吗?
像这样:
<#data table as table>
<#filter variablename = firstname>
<#fields code>
${code?exec}
</#data>
这是内置描述
expr?exec
Uses the script specified in the expression and executes it like a template. This built-in is similar to the eval built-in, except that it allows directives. Expressions must be enclosed in ${}. The result of this built-in is always a string
希望对你有所帮助
这可能晚了,但 ?exec
是方法,但需要 ${table.code?exec}
。