Jump to content
  • 0

View for ManyToMany-Relationships


Aranha

Question

Hi there!

Im referring to the Video to the manyToMay-Relationships from Caspio on Youtube:

https://www.youtube.com/watch?v=7D8u6Lb2BKU

 

Let say I want to have Gallery-Report of all Patients, but I want see in the report the names of all Doctocs they visit.

How to build a View for this report?

So far I only get for any Visit a new Item in the Report.

Thank for any hint!

Cheers
Aranha

Link to comment
Share on other sites

2 answers to this question

Recommended Posts

  • 0

Just to see the name of the doctors you can add a Calculated field and use SQL to read the name of the doctors from visit

 

SELECT CAST(Doctor_Name as nvarchar) + N' | '  FROM Visist_Table WHERE Patient_ID = target.[@field:Patient_ID] for xml path(N'')

All the red tests need to be replaced with the actual value in the table.  The only one that should be selected from picker is [@field:Patient_ID]

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...