Page 1 of 1

Refresh the content of an iframe

Posted: Sat Jan 25, 2025 10:21 am
by yvesf
Hi,

I am stuck to refresh an iframe on change.
Here is a video presenting what I would like to do
refresh_iframe.gif
To do so I have tried those 3 options without any effect. What is wrong ?
All options are implemented on the Custom Code tab "On change" of the cs_patient_id labelled Patient in the video
Option 1: with nuGetBreadcrumb

Code: Select all

const contentWindow = $("#cs_patient_histo_CR")[0].contentWindow;
contentWindow.nuGetBreadcrumb();
Option 2 : with nuFilterRun thinking it could run the sql request behind the iframe where I do the filtering. I don't use any filter on the iframe, doing that at the SQL Request level with a where clause

Code: Select all

nuFilterRun('cs_patient_histo_CR');
Option 3 : with nuRefreshSelectObject

Code: Select all

nuRefreshSelectObject('cs_patient_histo_CR');
Any of those options is working unfortunately.
Many thx for your help,

Yves

Re: Refresh the content of an iframe

Posted: Sat Jan 25, 2025 12:59 pm
by kev1n
Call the code in the After Browse event of the lookup object.

Re: Refresh the content of an iframe

Posted: Sat Jan 25, 2025 3:58 pm
by yvesf
Both nuFilterRun and nuGetBreaddcrumb are working. Very helpfull

Yves