Page 1 of 1

Add record via run iFrame -> overlaid outputs

Posted: Sun Jul 23, 2023 12:18 pm
by yvesf
Hello,


When you create a new record in a filtered iFrame, the layouts of the browse form and edit form are overlaid on each other.
You can replicate this issue on https://test.nubuilder.cloud/, select "Subform Filter" button and follow the scenario below :
- click on "Subform Filter" button
- click on Add action menu
--> it works because the browse list hasn't been filtered.
Do the same after having filtered by date.
- select a date
- a filter is running on the change event
- click on Add action menu
--> the output is weird. The layouts browse and edit are overlaid on each other.
See video below
Video_2023-07-23_121428.gif
How can we solve that issue ?
Many thx for your help,

Yves

Re: Add record via run iFrame -> overlaid outputs

Posted: Fri Sep 01, 2023 9:05 am
by kev1n
This behavior of the `nuFilterRun()` function is quite odd and flawed. You may consider resolving it using the following code snippet (demo updated):

Code: Select all

const iframe = $("#address_iframe")[0].contentWindow;
iframe.nuSetProperty('date_filter', date_filter.value);
iframe.nuGetBreadcrumb(0);
And then add the filter in the Browse SQL:

Code: Select all

SELECT * FROM address where dob = '#date_filter#' or '#date_filter#' LIKE '#%'