Bug or Feature ?

Should work in Cards Region.. but..

Info from Oracle:


Currently,  the Template Components cannot be used inside a Cards region. The reason is that Template Components are rendered on the server and Cards on the client.

We hope to lift this restriction in a future release, we’d like to push the Template Components to the client when needed. We must make sure the functionality is equal, currently the templates behave slightly different.

You can use the {with/} and {apply/} syntax in cards but this is undocumented. You first need to call apex.util.defineTemplates:

apex.util.defineTemplates([{

    name: „MY_TEMPLATE „,

    template: „#VAL#“

}]);

apex.util.applyTemplate(`{with/}

    VAL:=Hello World

{apply MY_TEMPLATE /}`);


Nice to know now.. i will try this solution..