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
How can we solve that issue ?
Many thx for your help,
Yves
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.
Add record via run iFrame -> overlaid outputs
-
- Posts: 337
- Joined: Sun Mar 14, 2021 8:48 am
- Location: Geneva
- Has thanked: 92 times
- Been thanked: 11 times
Add record via run iFrame -> overlaid outputs
You do not have the required permissions to view the files attached to this post.
-
- nuBuilder Team
- Posts: 4416
- Joined: Sun Oct 14, 2018 6:43 pm
- Has thanked: 74 times
- Been thanked: 472 times
- Contact:
Re: Add record via run iFrame -> overlaid outputs
This behavior of the `nuFilterRun()` function is quite odd and flawed. You may consider resolving it using the following code snippet (demo updated):
And then add the filter in the Browse SQL:
Code: Select all
const iframe = $("#address_iframe")[0].contentWindow;
iframe.nuSetProperty('date_filter', date_filter.value);
iframe.nuGetBreadcrumb(0);
Code: Select all
SELECT * FROM address where dob = '#date_filter#' or '#date_filter#' LIKE '#%'