on 12-23-2014 3:08 PM
Hello,
we got
SAP NetWeaver Identity Management 7.2 SP9
IDENTITY CENTER DESIGNTIME 7.2 SP9 patch 7
IDENTITY CENTER RUNTIME 7.2 SP9 patch 5
VIRTUAL DIRECTORY SERVER 7.2 SP9 patch 3
In the admin UI I use register "Message Templates" I create and maintain message templates e.g. for approvals (Template Category: MX_APPROVALS).
And here I use HTML with stylesheets.
While I put following HTML code in
<tr style="vertical-align: top;">
<td>URL:</td>
<td>http://support.sap.com/swdc</td>
</tr>
the text starting with http:// including the next tag (here </td>) dissappears.
So following insufficient HTML code is left:
<tr style="vertical-align: top;">
<td>URL:</td>
<td>
</tr>
Similar if I try to add a reference to a link like
All other cases <a href="http://company.appl.net/Home?OpenPage">call COMPANY IT Service Desk</a> / open an incident at <a href="https://serviceportal.company.com/Services.aspx">COMPANY IT Service Desk Portal.</a>
all what is left after saving is:
All other cases <a href="">call COMPANY IT Service Desk</a> / open an incident at <a href="">COMPANY IT Service Desk Portal.</a>
Has anybody seen something similar?
Is there a workaround?
Isn't it supported that I put http:// or https:// to the HTML code of the message template?
with kind regards
Michael Schäfer
At least SAP came up with a recommendation to encode specific characters that the template parser does not remove parts of the HTML code.
From my understanding it is a work around which can be applied. The slightest it should be stated in documentation ...
There is a way to insert links with http://
or https://
or mailto:
in the template.
Before saving/updating template you have to encode the ://
or :
characters accordingly.
character(s) | encoded |
---|---|
: | : |
/ | / |
:// | :// |
Examples:
not encoded | encoded |
---|---|
mailto:my.support@mycompany.com | mailto:my.support@mycompany.com |
http://support.sap.com/swdc | http://support.sap.com/swdc |
kind regards
Michael Schäfer
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
resolved by
1984549 - SAP NetWeaver Identity Management 7.2 SP9 Patches
Designtime Components Patch 13 - Released 2015-03-23
Hi Michael,
do you know by chance whether there is SAP standard way to convert from encoded strings to not encoded strings?
I have got a different requirement. I am getting an XML back that contains lots of x003a or x0020 and so on.
I would like to get rid of these and I am looking for a standard way doing this?!
Any idea?
REgards, Thomas
Hi Experts,
Any help on the above? I have a similar requirement to add background image using css stylesheet and image URL is stripped off every time I save the template. I wouldn't pass parameters to css stylesheet like we can for template body. TIA
Kind regards,
Jaisuryan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Michael,
From my notes, we achieved creating links using Global or Local constants. Here it goes,
1) Create a global or local job/task constant and assign the http/https address
2) While editing your template in admin UI, use a template parameter attributes (PAR_*) in <a href> like below,
<a href = "PAR_URL">click here</a>
3) Your notification ordered task should have two tasks, 1 - to set context variables, 2 - to send email using SMTP
In "set context variable" task, assign PAR_URL = (Global or local contant)
Then in notification task, you read the context variable PAR_URL and template text, do a search for PAR_URL in text and replace it with the value of context variable.
let me know if it works. Thanks.
Kind regards,
Jaisuryan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Jai,
yes I know that I could have worked with PARAMETERs.
That is a a possible workaround, right.
But what I was after is to find out whether there is a reason to cut out a string from template source as soon as there is http:// (or the same with mailto:).
At this moment I use following code to avoid the URL is cut out:
<a href="link_without_http">text_to_appear_as_link</a>
User | Count |
---|---|
84 | |
24 | |
12 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.