Appian Community
Site
Search
Sign In/Register
Site
Search
User
DISCUSS
LEARN
SUCCESS
SUPPORT
Documentation
AppMarket
More
Cancel
I'm looking for ...
State
Suggested Answer
+1
person also asked this
people also asked this
Replies
4 replies
Answers
1 answer
Subscribers
11 subscribers
Views
2571 views
Users
0 members are here
Share
More
Cancel
Related Discussions
Home
»
Discussions
»
Data and Records
I am trying to display read only cdt data (multiple) on a grid within a record.
zulfiqarp
over 8 years ago
I am trying to display read only cdt data (multiple) on a grid within a record. Attached is the my code in which I am trying to display a process variable cusipsFee (multiple) of a cdt. I am getting below error
Cannot query [cusipsFee.totalCount] because [totalCount] is a child of a multiple data type. (APNX-1-4203-002)
Can someone please tell me how to display cdt with multiple values on a grid in a record?
Thanks!
SAILCode.txt
OriginalPostID-159050
OriginalPostID-159050
Discussion posts and replies are publicly visible
0
sonalk
over 8 years ago
HI Zulfiqarp,
Many similar post are available on the forum :
forum.appian.com/.../e-136451
forum.appian.com/.../e-98886
forum.appian.com/.../e-130523
forum.appian.com/.../e-109309
Hope it helps.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
zulfiqarp
over 8 years ago
Thanks!
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
+1
sikhivahans
over 8 years ago
@zulfiqarp To the best of my knowledge and as per the information you provided in the post, the problem could be with accessing the 'totalCount' attribute in cusipsFee cdt variable.
As said by you, if the rf!cusipsFee is a custom data type variable and of type multiple, you should be converting the same variable to a datasubset prior to making use of it in the grid component.
Here is a simple example:
load(
\tlocal!pagingInfo: topagingInfo(1,10),
\twith(
\ tlocal!cusipsFee: todatasubset(rf!cusipsFee,local!pagingInfo),
\ ta!gridField(
\ ttotalCount: local!cusipsFee.totalCount,
\ tcolumns: {
\ ta!gridTextColumn(
\t label: "CUSIP",
\ tdata: index(local!cusipsFee,"cusip",null)
\ t)
\ t},
\ tvalue: local!pagingInfo,
\ tsaveInto: local!pagingInfo
\ t)
\t)
)
Cancel
Vote Up
-1
Vote Down
Sign in to reply
Verify Answer
Reject Answer
Cancel
0
zulfiqarp
over 8 years ago
Thanks! @sikhivahans It worked :)
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel