I am strugling with making my e-mail looking nice… I have created a HTML version of it with the info being into tables and having colors. (not my forte )
Writing directly the color in the HTML code works. (cornsmilk background)
But I want it to be conditionnal to my DD. So I am using callContextBpmData.Character18 to hold the color info, and insert this variable into the DD e-mail.
It does not work.
So I am asking if anyone could help me construct my string properly to place into the varable in order to work.
I am assuming it is bot working because of the doublequotes.
In my DD code:
callContextBpmData.Character18 = "cornsmilk";
In the email code:
<table style="height: 47px; background-color: <callContextBpmData.Character18/>;" border="1" width="792" cellpadding="2">
Not working I think because of the double quotes…
Then I tried:
In my DD code:
callContextBpmData.Character18 = "\"height: 47px; background-color: cornsmilk\";";
In the email code:
<table style= <callContextBpmData.Character18/> border="1" width="792" cellpadding="2">
Thinking placing the double quotes in my string directly… again did not work…
yes a typo… cornsmilk is correclty spelled
and also I noticed a semi column was not placed ok at the end, but placing it correclty did not resolve…
Pierre
This is the email widget in data directive I am using.
but it would be a plan if this way is still not working…
I created my html using a Word to HTML web tool and later replaced text with the callcontext data.
works fine.
But I am trying to dynamically change the background color of the table and it does not work…
I guess I could use your way to generate the HTML before calling the email widget… and just add the resulting string into the body…
tks…
Pierre
You can define CSS styles for classes, then when you dynamically build the table, insert the proper class. The end result of the message body would be like…
On your version you can also use the $@ notation which lets you format your HTML and interpolate variables. Example of one of my templates in a function. Makes troubleshooting life a lot easier