Welcome to the nuBuilder Forums!

Register and log in to access exclusive forums and content available only to registered users.

Add record via run iFrame -> overlaid outputs

Questions related to using nuBuilder Forte.
Post Reply
yvesf
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

Unread post 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
You do not have the required permissions to view the files attached to this post.
kev1n
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

Unread post 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 '#%'
Post Reply