Welcome to the nuBuilder Forums!

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

Open a record in an iframe via a button Topic is solved

Questions related to using nuBuilder Forte.
yvesf
Posts: 337
Joined: Sun Mar 14, 2021 8:48 am
Location: Geneva
Has thanked: 92 times
Been thanked: 11 times

Open a record in an iframe via a button

Unread post 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
kev1n
nuBuilder Team
Posts: 4416
Joined: Sun Oct 14, 2018 6:43 pm
Has thanked: 74 times
Been thanked: 472 times
Contact:

Re: Open a record in an iframe via a button

Unread post by kev1n »

Hi,

Use the JS nuForm() and pass parameter '1'

1 = Open Form in the current Breadcrumb.
yvesf
Posts: 337
Joined: Sun Mar 14, 2021 8:48 am
Location: Geneva
Has thanked: 92 times
Been thanked: 11 times

Re: Open a record in an iframe via a button

Unread post 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
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: Open a record in an iframe via a button

Unread post by kev1n »

Could you explain in more detail what you're trying to do? I'm afraid I don't quite understand.
yvesf
Posts: 337
Joined: Sun Mar 14, 2021 8:48 am
Location: Geneva
Has thanked: 92 times
Been thanked: 11 times

Re: Open a record in an iframe via a button

Unread post 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
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: Open a record in an iframe via a button

Unread post by kev1n »

I see 3 possibilities:

Use ...

1) a subform
2) an iframe (browse)
3) Display objects
yvesf
Posts: 337
Joined: Sun Mar 14, 2021 8:48 am
Location: Geneva
Has thanked: 92 times
Been thanked: 11 times

Re: Open a record in an iframe via a button

Unread post 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
kev1n
nuBuilder Team
Posts: 4416
Joined: Sun Oct 14, 2018 6:43 pm
Has thanked: 74 times
Been thanked: 472 times
Contact:

Re: Open a record in an iframe via a button

Unread post by kev1n »

A Display object could look like this:
customer_details.png
You do not have the required permissions to view the files attached to this post.
stevenmiller
Posts: 26
Joined: Mon Jul 06, 2020 4:23 pm
Has thanked: 3 times

Re: Open a record in an iframe via a button

Unread post by stevenmiller »

Hi Kevin,
how do you manage the line breaks in the display object?
Regards, Steven
kev1n
nuBuilder Team
Posts: 4416
Joined: Sun Oct 14, 2018 6:43 pm
Has thanked: 74 times
Been thanked: 472 times
Contact:

Re: Open a record in an iframe via a button

Unread post 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.
Post Reply