Welcome to the nuBuilder Forums!

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

Open a record in the same breadcrumb gives an error

Questions related to using nuBuilder Forte.
Post Reply
ARWEN
Posts: 78
Joined: Thu Nov 01, 2018 6:01 am

Open a record in the same breadcrumb gives an error

Unread post by ARWEN »

In my form I have added a new button so that you can add a new record. This also works perfectly.

Code: Select all

if(nuFormType() == 'edit'){
    nuAddActionButton('AddNewRecord', 'Add', 'nuAddAction()');  
}
 
Is it possible to open a new record in the same breadcrumb because the form always opens in a new breadcrumb.

The example from the wiki results in an error:

https://wiki.nubuilder.cloud/ ... ipt#nuForm

nuForm(nuGetProperty('form_id'), "-1", '', '', '0', '1');


nucommon.js?ts=20191120121019:1285 Uncaught DOMException: Failed to execute 'atob' on 'Window': The string to be decoded is not correctly encoded.
at nuDecode (nucommon.js?ts=20191120121019:1285:42)
at nuForm (nuajax.js?ts=20191120121019:53:13)
at <anonymous>:1:1
Janusz
nuBuilder Team
Posts: 506
Joined: Fri Dec 28, 2018 1:41 pm
Location: Krakow, Poland
Has thanked: 8 times
Been thanked: 18 times

Re: Open a record in the same breadcrumb gives an error

Unread post by Janusz »

you can use:

Code: Select all

nuForm(nuGetProperty('form_id'), '-1', '', '', '1');
and it will open in then same breadcrumb
If you like nuBuilder, please leave a review on SourceForge
ARWEN
Posts: 78
Joined: Thu Nov 01, 2018 6:01 am

Re: Open a record in the same breadcrumb gives an error

Unread post by ARWEN »

Thank you Janusz!

@admin: The example in the wiki is still wrong :geek:
admin
Site Admin
Posts: 2815
Joined: Mon Jun 15, 2009 2:23 am
Been thanked: 25 times

Re: Open a record in the same breadcrumb gives an error

Unread post by admin »

ARWEN,

Thanks for pointing that out.

It should be fixed now.


Steven
Post Reply