Welcome to the nuBuilder Forums!

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

Open -> Add record -> Save and Close -> Add to Lookup

Questions related to using nuBuilder Forte.
tovidiu
Posts: 17
Joined: Sat Jan 06, 2018 5:45 pm

Open -> Add record -> Save and Close -> Add to Lookup

Unread post by tovidiu »

I have a lookup field with which I open a form in a new window and add a new entry.
How can i save the edit form, close the popup window and add automatically to the lookup field?
Thanks

Ovidiu
You do not have the required permissions to view the files attached to this post.
admin
Site Admin
Posts: 2814
Joined: Mon Jun 15, 2009 2:23 am
Been thanked: 25 times

Re: Open -> Add record -> Save and Close -> Add to Lookup

Unread post by admin »

tovidiu,

It's on the list of things to do.

Steven
admin
Site Admin
Posts: 2814
Joined: Mon Jun 15, 2009 2:23 am
Been thanked: 25 times

Re: Open -> Add record -> Save and Close -> Add to Lookup

Unread post by admin »

tovidiu,

This feature is now in the latest commit in Github.

Steven
tovidiu
Posts: 17
Joined: Sat Jan 06, 2018 5:45 pm

Re: Open -> Add record -> Save and Close -> Add to Lookup

Unread post by tovidiu »

Great, Thanks!
admin
Site Admin
Posts: 2814
Joined: Mon Jun 15, 2009 2:23 am
Been thanked: 25 times

Re: Open -> Add record -> Save and Close -> Add to Lookup

Unread post by admin »

.
selector
Posts: 41
Joined: Tue Feb 22, 2022 1:55 pm
Has thanked: 9 times

Re: Open -> Add record -> Save and Close -> Add to Lookup

Unread post by selector »

Can I ask the opposite question? How to make the popup form not close after adding a new element.
As an example, in places of poor Internet reception, it is best to put the checkboxes next to the list and select all the elements from the table at once. But the ability to add new records should remain.
kev1n
nuBuilder Team
Posts: 4297
Joined: Sun Oct 14, 2018 6:43 pm
Has thanked: 71 times
Been thanked: 445 times
Contact:

Re: Open -> Add record -> Save and Close -> Add to Lookup

Unread post by kev1n »

Good question, I've asked Steven.
steven
Posts: 370
Joined: Mon Jun 15, 2009 10:03 am
Has thanked: 53 times
Been thanked: 52 times

Re: Open -> Add record -> Save and Close -> Add to Lookup

Unread post by steven »

Hi selector,

The easiest way to add a number of records at a time to a table is through a BrowesEdit Form before you ask a Lookup to Choose just one record.

You could do this by adding a Button that goes to that BrowesEdit, placing it near the Lookup, and making its title something like
Add Multiple Records For this Lookup.

Steven
A short post is a good post.
kev1n
nuBuilder Team
Posts: 4297
Joined: Sun Oct 14, 2018 6:43 pm
Has thanked: 71 times
Been thanked: 445 times
Contact:

Re: Open -> Add record -> Save and Close -> Add to Lookup

Unread post by kev1n »

If this empty function is added in Setup -> Header, the popup will no longer close.

Code: Select all

function nuAddedByLookup(){
  // do nothing - don't close the popup
}
selector
Posts: 41
Joined: Tue Feb 22, 2022 1:55 pm
Has thanked: 9 times

Re: Open -> Add record -> Save and Close -> Add to Lookup

Unread post by selector »

kev1n wrote: Thu Jun 09, 2022 4:40 pm If this empty function is added in Setup -> Header, the popup will no longer close.

Code: Select all

function nuAddedByLookup(){
  // do nothing - don't close the popup
}
Thank you
Post Reply