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
10 replies
Subscribers
11 subscribers
Views
2739 views
Users
0 members are here
Share
More
Cancel
Related Discussions
Home
»
Discussions
»
Data and Records
Hi , i have two cdts namely 'A' and 'B' wherein 'A' has
himanshug
over 10 years ago
Hi , i have two cdts namely 'A' and 'B' wherein 'A' has one to many relation with 'B'.Now while showing the records of 'A' i also want to fetch the details of 'B' . How can i do that. For example if there is a field 'Name' in B and reference variable in 'A' for 'B' is 'Many' , so if i try to show 'B' by using 'Many.Name' it gives me an error saying that [Name] is a type of multiple data type . How do i show the records of B in A then ?
Thanks in advance....
OriginalPostID-83353
OriginalPostID-83353
Discussion posts and replies are publicly visible
Parents
0
Sathya Srinivasan
Appian Employee
over 10 years ago
If you have the relation defined in your CDT, a query rule to fetch A should fetch B automatically as it's child element. Are you saying this is not happening? If so, I suggest you raise a support ticket.
On the other hand, if you are not maintaining the relationship via JPA, an easier (and I personally prefer keeping tables decoupled) is to have one QR that fetches A and using the with() statement and an alias, you can get the corresponding ID and fetch the B's
Lastly, I've seen this issue when fetching nested CDT's. If I remember correctly, the work-around was to have a QR that fetches the B's for a given A
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
Reply
0
Sathya Srinivasan
Appian Employee
over 10 years ago
If you have the relation defined in your CDT, a query rule to fetch A should fetch B automatically as it's child element. Are you saying this is not happening? If so, I suggest you raise a support ticket.
On the other hand, if you are not maintaining the relationship via JPA, an easier (and I personally prefer keeping tables decoupled) is to have one QR that fetches A and using the with() statement and an alias, you can get the corresponding ID and fetch the B's
Lastly, I've seen this issue when fetching nested CDT's. If I remember correctly, the work-around was to have a QR that fetches the B's for a given A
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
Children
No Data