Appian Community
Site
Search
Sign In/Register
Site
Search
User
DISCUSS
LEARN
SUCCESS
SUPPORT
Documentation
AppMarket
More
Cancel
I'm looking for ...
State
Not Answered
Replies
7 replies
Subscribers
11 subscribers
Views
2376 views
Users
0 members are here
Share
More
Cancel
Related Discussions
Home
»
Discussions
»
Data and Records
Hello! I am generating Tempo Record. It doesn't render HTML tags
tapans
over 9 years ago
Hello!
I am generating Tempo Record. It doesn't render HTML tags in Tempo Records. I have same data coming in portal with proper rendering. My data contains multiple HTML tags like : <br>,<table>,<a>,<script>,<head> and so on.
Can any one please suggest me the way which I can use in my SAIL code, so that data coming to the Tempo, renders the HTML tag. Example includes, for <br/> - there should be line break, for<a/>, there should be hyperlink.
Many Thanks!...
OriginalPostID-131781
OriginalPostID-131781
Discussion posts and replies are publicly visible
0
Jason Ruvinsky
Certified Senior Developer
over 9 years ago
You can use rich text in SAIL code in Appian 7.7:
forum.appian.com/.../SAIL_Components.html
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
Jason Ruvinsky
Certified Senior Developer
over 9 years ago
Also, for tables, use paging grids:
forum.appian.com/.../SAIL_Components.html
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
tapans
over 9 years ago
Thanks Jason!
But rich text will not be useful in my case. I have to just display the data in Tempo records coming from DB containing HTML tags. I want that all tags should be rendered properly and display in my tempo record.
Attaching one text containing the HTML tags for reference.
Any further inputs for the same,Jaosn?
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
Stefan Helzle
A Score Level 3
over 9 years ago
AFAIK it is not possible to display HTML in SAIL. You could replace <br /> and <p> with char(13) to get some sort of formatting and strip the rest of the HTML.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
tapans
over 9 years ago
Thanks Stefan for your response!
As far as, we don't have any solution, ending this discussion. I will get back if any further queries.
Thanks again.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
tapans
over 9 years ago
Stefan,
I think I can strip rest HTML tags except <br/> and <p>. But I want to convert the hyperlinks to SAIL safelinks. How I can do that?
Attached screenshot (as reference) for hyperlink input coming from DB which needs to be displayed on records.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
Jason Ruvinsky
Certified Senior Developer
over 9 years ago
If you wanted to get fancy, you could try parsing the text and using applyComponents to generate rich text fields for the different components you want to handle, like links, but this would be a very challenging expression to write and debug. You might be better served by finding another way (other than HTML) to represent your rich text, but I don't know whether this is an option in your use case.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel