Page 1 of 1

iFrame lists all possibilities

Posted: Sun Sep 29, 2019 9:50 pm
by GlenMcCabe
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.

Re: iFrame lists all possibilities

Posted: Mon Sep 30, 2019 7:27 am
by kev1n
Aren't you missing a WHERE clauseto display only the records that belong to the patient?


WHERE patients.patid = '#RECORD_ID#'

Re: iFrame lists all possibilities

Posted: Mon Sep 30, 2019 11:05 am
by GlenMcCabe
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

Re: iFrame lists all possibilities

Posted: Tue Oct 01, 2019 2:33 am
by admin
Glen,

Hopefully, this will help...

https://www.youtube.com/watch?v=j5uvGMCPQRQ


Steven

Re: iFrame lists all possibilities

Posted: Wed Oct 02, 2019 2:43 pm
by GlenMcCabe
thanks folks.

Now sorted.

Re: iFrame lists all possibilities

Posted: Thu Oct 03, 2019 9:00 am
by admin
.