Welcome to the nuBuilder Forums!

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

Hide apex-chart with button

Questions related to customising nuBuilder Forte with JavaScript or PHP.
kknm
Posts: 366
Joined: Sat Apr 11, 2020 12:03 am
Has thanked: 3 times
Been thanked: 4 times
Contact:

Re: Hide apex-chart with button

Unread post by kknm »

I don't see the tab name. The form (browse) is not available - I don’t need it.
kev1n
nuBuilder Team
Posts: 4416
Joined: Sun Oct 14, 2018 6:43 pm
Has thanked: 74 times
Been thanked: 472 times
Contact:

Re: Hide apex-chart with button

Unread post by kev1n »

Sure, a Launch table does not have a Browse Form.

The question remains, if there is no tab "Таблицы" visible on your form or if it has been removed somehow (using JavaScript) ?
2024-04-02_100252.png
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: Hide apex-chart with button

Unread post by kev1n »

in nucommon.js, modify the line in the function nuShow();

Now:

Code: Select all

		if (openTab !== false && counter > 0) nuOpenTab($('.nuTabSelected')[0].id.substr(5));
Change to:

Code: Select all

		if (openTab !== false && counter > 0 && $('.nuTabSelected').length > 0) {
			nuOpenTab($('.nuTabSelected')[0].id.substr(5));
		}	
This ensures that no error is thrown if there are no tabs. For example, if they have been removed with nuRemoveHolders()

PS: This change is also on Github.
kknm
Posts: 366
Joined: Sat Apr 11, 2020 12:03 am
Has thanked: 3 times
Been thanked: 4 times
Contact:

Re: Hide apex-chart with button

Unread post by kknm »

Kevin, I'm sorry, I misled you by saying that I don't see the tab. It is hidden by the nuRemoveHolders() function. When you cancel it, errors disappear when accessing an HTML object simply by name.
I applied your solution with nucommon.js - the errors disappeared! Thank you !!!!!
kev1n
nuBuilder Team
Posts: 4416
Joined: Sun Oct 14, 2018 6:43 pm
Has thanked: 74 times
Been thanked: 472 times
Contact:

Re: Hide apex-chart with button

Unread post by kev1n »

I'm glad it worked. Thanks to that, another bug has now been fixed.
Post Reply