Hi , i have two cdts namely 'A' and 'B' wherein 'A' has

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
  • 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
Reply
  • 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
Children
No Data