Page 2 of 2

Re: Hide apex-chart with button

Posted: Tue Apr 02, 2024 9:56 am
by kknm
I don't see the tab name. The form (browse) is not available - I don’t need it.

Re: Hide apex-chart with button

Posted: Tue Apr 02, 2024 10:10 am
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

Re: Hide apex-chart with button

Posted: Tue Apr 02, 2024 1:01 pm
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.

Re: Hide apex-chart with button

Posted: Thu Apr 04, 2024 7:31 am
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 !!!!!

Re: Hide apex-chart with button

Posted: Thu Apr 04, 2024 7:38 am
by kev1n
I'm glad it worked. Thanks to that, another bug has now been fixed.