Page 1 of 1

Open a record in the same breadcrumb gives an error

Posted: Wed Nov 20, 2019 12:31 pm
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

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

Posted: Wed Nov 20, 2019 7:11 pm
by Janusz
you can use:

Code: Select all

nuForm(nuGetProperty('form_id'), '-1', '', '', '1');
and it will open in then same breadcrumb

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

Posted: Fri Dec 27, 2019 3:53 pm
by ARWEN
Thank you Janusz!

@admin: The example in the wiki is still wrong :geek:

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

Posted: Mon Dec 30, 2019 12:16 am
by admin
ARWEN,

Thanks for pointing that out.

It should be fixed now.


Steven