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
6 replies
Subscribers
8 subscribers
Views
2547 views
Users
0 members are here
Share
More
Cancel
Related Discussions
Home
»
Discussions
»
AI and Rules
I am using the Generate Word Document Smart Service and I need to pass an array,
scottl189
over 9 years ago
I am using the Generate Word Document Smart Service and I need to pass an array, and display each item in the array on a new line. How can I do this? Using joinarray(pv!MyMultipleProcessVariable,char(13)&char(10)) does not work as it does for text docs.
OriginalPostID-177311
OriginalPostID-177311
Discussion posts and replies are publicly visible
0
Bob
over 9 years ago
Try using Word XML notation - I believe <w:br/> is what you need for the line break.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
scottl189
over 9 years ago
that worked. Thanks!!!
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
Mike Schmitt
Certified Lead Developer
over 9 years ago
@scott: I suggest you create a global rule to "sanitize", let's say, general text that you pass into a word document. Among other things, you would want to replace char(10) characters with
, strip out (and otherwise ignore) char(13) characters, and do something about "&", "<" and ">" characters.
Then you can use the code snippet you wrote originally, and pass it through this new rule, and I would suggest you pass anything else that could be user-entered through this rule as well.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
scottl189
over 9 years ago
great suggestion. Thanks!!
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
sayalii
over 9 years ago
@scott: I am trying to do the same thing. But its not working for me. Can u please explain in detail how it worked for you.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
Mike Schmitt
Certified Lead Developer
over 9 years ago
@sayalii: can you post an example of what you're currently trying?
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel