Page 1 of 2
Open a record in an iframe via a button
Posted: Mon Mar 17, 2025 4:27 pm
by yvesf
Hello,
I'm aware that using a run object from another record allows me to open a related record efficiently in a pop-up, a new breadcrumb, or within the current breadcrumb. Is there a way to achieve the same functionality within an iframe?
Thank you for your help.
Best regards,
Yves
Re: Open a record in an iframe via a button
Posted: Mon Mar 17, 2025 4:29 pm
by kev1n
Hi,
Use the JS
nuForm() and pass parameter '1'
1 = Open Form in the current Breadcrumb.
Re: Open a record in an iframe via a button
Posted: Mon Mar 17, 2025 6:15 pm
by yvesf
In fact, it isn't exactly the question.
I have attached a database to explain my case
2025-03-17_160747_67d856e3a3907_nuBuilder_backup.zip
:
-click on Home
-open a task in the list
- click on the button assigned user details to present the user's details
Currently it opens in the current Breadcrumb.
I would like to have it opening in the second iframe on the right hand side of the screen.
Many thx,
Yves
Re: Open a record in an iframe via a button
Posted: Mon Mar 17, 2025 7:26 pm
by kev1n
Could you explain in more detail what you're trying to do? I'm afraid I don't quite understand.
Re: Open a record in an iframe via a button
Posted: Mon Mar 17, 2025 8:21 pm
by yvesf
I want to click on a task in the list to see its details—including the assigned customer's info—and have those customer details appear in the second iframe on the right. This way, I can view both the tasks and the customer details at the same time instead of switching views.
openassociatedrecord.png
Yves
Re: Open a record in an iframe via a button
Posted: Tue Mar 18, 2025 12:08 am
by kev1n
I see 3 possibilities:
Use ...
1) a subform
2) an iframe (browse)
3) Display objects
Re: Open a record in an iframe via a button
Posted: Tue Mar 18, 2025 7:57 am
by yvesf
Hi,
I think a bit more context might help.
I have a front-end user who creates a task and assigns it to another user.
A second team is reviewing these tasks and might need to see more details about the assigned user.
Would it be possible, from a button, to load the related user’s details into an iframe?
Alternatively, perhaps display fields could be used for this purpose.
I’m not sure how a subform would fit this use case.
More generally, is it possible to refresh or target an iframe from another iframe via a button in it ?
Thank you for your help!
Yves
Re: Open a record in an iframe via a button
Posted: Tue Mar 18, 2025 9:18 am
by kev1n
A Display object could look like this:
customer_details.png
Re: Open a record in an iframe via a button
Posted: Wed Mar 19, 2025 1:56 am
by stevenmiller
Hi Kevin,
how do you manage the line breaks in the display object?
Regards, Steven
Re: Open a record in an iframe via a button
Posted: Wed Mar 19, 2025 2:57 am
by kev1n
In the SELECT query, I used CONCAT with a pipe character and then transferred the output into a readonly textarea. I can also share the code if you'd like.