compute label name | Community
Skip to main content
New Participant
December 8, 2017
Solved

compute label name

  • December 8, 2017
  • 11 replies
  • 6166 views

HI

I am trying to generate a computed label on the delivery templates so that I can have generic name on the campaign deliveries( under Analysis tab) I have many deliveries so I dont want to have many campaign templates. for somehow when I enter a script i get an error when I include a conditional statement. Any Idea why is not working?

Welcome <% if (<%= recipient.productCode %>== "101") { %> camp1<% } %>

JST-310000 Error while compiling script 'delivery name' line 4: illegal XML character

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by Jean-Serge_Biro

No, you can get values from your specific schema, but it should come from a 1-1 or N-1 relationship  (blue one) not from a 1-N relationship (yellow one) because otherwise how can you select the exact value between many records linked to your delivery ?
If you select a yellow relationship, AC takes randomly one record of the linked dimension.

11 replies

florentlb
New Participant
December 8, 2017

Hi Vendim,

Can you share the whole script so we can take a look at it?

I'm not sure of what the best practices are in this case.

Florent