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
11 subscribers
Views
2551 views
Users
0 members are here
Share
More
Cancel
Related Discussions
Home
»
Discussions
»
Data and Records
Hi everyone, I'm creating a Record Type using as Source Type a Process
marcoc200
over 9 years ago
Hi everyone,
I'm creating a Record Type using as Source Type a Process Model. I've a problem with the expression of the List View Template.
My goal is to display in the details a specific field of pv of type cdt and for doing so i think the expression is:
=a!listViewItem(
title: user(touser(rf!pp.initiator), "firstName") & " " & user(touser(rf!pp.initiator), "lastName"),
details: "Leave Type: "&with(local!ApacRequestMobile.LeaveCode[local!5])
where the number 5 is referred to the index of the CDT corresponding to the field "Leave Code".
But in tempo when i click on this record appear this error message "Could not display record".
Thank you to everyone that will help me to solve this problem
)
...
OriginalPostID-133718
OriginalPostID-133718
Discussion posts and replies are publicly visible
0
Sathya Srinivasan
Appian Employee
over 9 years ago
Could it be that you are using local! instead of rf! ??
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
marcoc200
over 9 years ago
No I've tried with rf! and the error message is the same. If I don't specify the index the error doesn't appear but already the data doesen't appear
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
Sathya Srinivasan
Appian Employee
over 9 years ago
Firstly, you need to replace it with rf!
Secondly, you need to use a variable that corresponds to the index that's available as a pv! OR hard code the index.
Is the 5 always going to be the same for all the records? In that case, you can just do 5.
Does replacing local!5 with LeaveCode[5] work?
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
marcoc200
over 9 years ago
Yes the index is the same for all the records. I've tried to replace the expression with(local!ApacRequestMobile.LeaveCode) but it doesn't work
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
Sathya Srinivasan
Appian Employee
over 9 years ago
As I said earlier, your with statement is incorrect.
If all you need is the Index of the CDT variable at Index 5, you should use the INDEX function
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
marcoc200
over 9 years ago
No nothing to do it does'nt works. The strange thing is that with another field of the same CDT and using the expression =a!listViewItem(
title: user(touser(rf!pp.initiator), "firstName") & " " & user(touser(rf!pp.initiator), "lastName"),
details: "Apply Date: " & rf!ApacRequestMobile.ApplyDate)
it works. the only difference of this two field is that ApplyDate is a date variable and LeaveCode is a text variable. I've checked the cdt using a query rule and the field Leave Code is populated
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel