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
4 replies
Subscribers
7 subscribers
Views
1907 views
Users
0 members are here
Share
More
Cancel
Related Discussions
Home
»
Discussions
»
General
Spacing issue for Event data post using 'labelvalue' array
judym598
Certified Senior Developer
over 8 years ago
I recently updated multiple ‘Post System Event to Feed’ smart services to eliminate the deprecated functions: Tolabelvalue() & Tolabelvaluearray()
An example of the replacement function:
Before: =tolabelvalue(pv!eventDataLabel,pv!eventDataValue)
After: {label: pv!eventDataLabel, value: pv!eventDataValue}
and
Before: =tolabelvaluearray(pv!eventDataLabels_txt,pv!eventDataValues_txt,false())
After: {label: pv!eventDataLabels_txt, value: pv!eventDataValues_txt, false()}
Everything is working as it should now, except the spacing is off (See attached). Is there something I can add to the value I used to get the arrays to align?
OriginalPostID-254298
LabelValue Issue.docx
Discussion posts and replies are publicly visible
Parents
0
Carlos Santander
A Score Level 2
over 8 years ago
I can't find documentation on tolabelvaluearray() even going back a few Appian versions, but this might help.
I think you're just not initializing the LabelValue dictionary correctly. Assuming pv!eventDataLabels_txt and pv!eventDataValues_txt are lists, you should apply over a rule that returns your dictionary. Your expression would then be:
= apply(
rule!XYZ_labelValue(
label: _,
value: _
),
merge(
pv!eventDataLabels_txt,
pv!eventDataValues_txt
)
)
XYZ_labelValue would just return {label: ri!label, value: ri!value}.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
Reply
0
Carlos Santander
A Score Level 2
over 8 years ago
I can't find documentation on tolabelvaluearray() even going back a few Appian versions, but this might help.
I think you're just not initializing the LabelValue dictionary correctly. Assuming pv!eventDataLabels_txt and pv!eventDataValues_txt are lists, you should apply over a rule that returns your dictionary. Your expression would then be:
= apply(
rule!XYZ_labelValue(
label: _,
value: _
),
merge(
pv!eventDataLabels_txt,
pv!eventDataValues_txt
)
)
XYZ_labelValue would just return {label: ri!label, value: ri!value}.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
Children
No Data