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!
Join our community by registering and logging in.
As a member, you'll get access to exclusive forums, resources, and content available only to registered users.
Join our community by registering and logging in.
As a member, you'll get access to exclusive forums, resources, and content available only to registered users.
Add record via run iFrame -> overlaid outputs
-
- Posts: 347
- Joined: Sun Mar 14, 2021 8:48 am
- Location: Geneva
- Has thanked: 94 times
- Been thanked: 12 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: 4562
- Joined: Sun Oct 14, 2018 6:43 pm
- Has thanked: 76 times
- Been thanked: 528 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 '#%'