问题标签 [responsys]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
1 回答
173 浏览

oracle - Rendering HTML from string in email using Oracle Responsys

I'm looking to render html by passing a string to Responsys.

DynamicVariable.TEXT would be a string that looks like:

I've tried using ?html

Also tried <#escape x as x?html>:

As well as <#noescape>

but none of these work. Any help would be greatly appreciated!

0 投票
0 回答
28 浏览

html - Check if variable, function, method is available/set to avoid error

According to Responsys documentation, "you can avoid such failures with the use of the exclamation point operator (!), the double question mark operator (??), or <#attempt> and <#recover>."

However, I believe the first two methods (! and ??) would require an if-statement, and Oracle does not support nested if-statements. I would like to avoid using <#attempt> and <#recover> if I can, so I am looking for an alternative, essentially a straight forward way of doing this:

0 投票
1 回答
63 浏览

freemarker - Freemarker(Responsys RPL 变体)解释和执行表中的键/值对

我正在从表中读取一个键/值对,如下所示:

水果:${my_fruit} 在 FOOD 列中。

在我的 Freemarker 代码中,我说:

<#assign my_fruit = "香蕉">

我想以相当于

<#assign fruit = ${my_fruit}> 已执行。

我尝试了很多变体

<#fruit_list = "${FOOD}"!?split(":")>

<#assign fruit_raw = r"<#assign " + "${fruit_list[0]}" + r"='" + "${fruit_list[1]}" + r"'>">

<#assign fruit_int = fruit_raw?interpret>

<@fruit_int?exec/>

谁能告诉我哪里出错了?非常感谢。