Newbie here
I have built a browse / edit form which lists patients and edits. It appears to be working fine.
I added a run object iFrame to list the referrals for a patient. Problem is that all referrals are being shown in the iFrame. I have tried the iFrame in the same tab as the patient details and also in a seperate referral tab. Same list. Adding a new one seems to be fine.
SQL for the referral form is
SELECT *
FROM referral INNER JOIN patients
ON referral.patientID = patients.patid
Help would be appreciated.
Welcome to the nuBuilder Forums!
Register and log in to access exclusive forums and content available only to registered users.
Register and log in to access exclusive forums and content available only to registered users.
iFrame lists all possibilities
-
- nuBuilder Team
- Posts: 4307
- Joined: Sun Oct 14, 2018 6:43 pm
- Has thanked: 71 times
- Been thanked: 447 times
- Contact:
Re: iFrame lists all possibilities
Aren't you missing a WHERE clauseto display only the records that belong to the patient?
WHERE patients.patid = '#RECORD_ID#'
WHERE patients.patid = '#RECORD_ID#'
-
- Posts: 114
- Joined: Sun Sep 29, 2019 12:40 pm
Re: iFrame lists all possibilities
That line added gives no records in the list.
I assumed that adding #RECORD_ID# in the filter did the actual filtering.
thanks for trying
I assumed that adding #RECORD_ID# in the filter did the actual filtering.
thanks for trying
-
- Posts: 114
- Joined: Sun Sep 29, 2019 12:40 pm