Activate child tab with ApppginiHelper

This sub-forum is for discussing all topics related to AppGini Helper JavaScript Library, provided by bizzworxx as a third-party AppGini plugin.
Post Reply
balfons
Veteran Member
Posts: 91
Joined: 2018-10-22 15:27

Activate child tab with ApppginiHelper

Post by balfons » 2020-11-06 07:33

Hello! I repost here a question about the new feature "Activate child tab" of the AppginiHelper, because this is the most specific forum:

I recentlly installed the new version of the AppGiniHelper and I tried to activate a child tab in the detail view of the parent table.

I have the parent table (company) and the child table (department). First, I put in a tab all the fields of the parent table (the tab is called "Information"), and it works. Then, I tried too activate the child tab and to hide one of its columns. This is my code (in company-dv.js):

var dv = AppGiniHelper.DV;
var tab2 = dv.getChildrenTabs();
tab2.activate("department");
tab2.hide("department", "address");

Hiding the column, it works, but no child tab is shown after the tab "Information". The child tab is still shown under the "Information" tab.

Maybe I'm missing something...

Thanks in advance

User avatar
jsetzer
AppGini Super Hero
AppGini Super Hero
Posts: 1817
Joined: 2018-07-06 06:03
Location: Kiel, Germany
Contact:

Re: Activate child tab with ApppginiHelper

Post by jsetzer » 2020-11-06 08:17

Hi,

I did not get it, yet, sorry.

Can you please post two shreenshots:

Screenshot of detail view (DV) after reload...
  1. without any of the Javascript code posted before (default DV)
  2. with the Javascript code posted before (modified DV)
Kind regards,
<js />

My AppGini Blog:
https://appgini.bizzworxx.de/blog

You can help us helping you:
Please always put code fragments inside [code]...[/code] blocks for better readability

AppGini 24.10 Revision 1579 + all AppGini Helper tools

User avatar
jsetzer
AppGini Super Hero
AppGini Super Hero
Posts: 1817
Joined: 2018-07-06 06:03
Location: Kiel, Germany
Contact:

Re: Activate child tab with ApppginiHelper

Post by jsetzer » 2020-11-06 08:25

Maybe there is a misunderstanding:
Using .activate() or .hide() will not move child-tabs from the bottom tab-control into the custom-tabs tab-control at the top.
Kind regards,
<js />

My AppGini Blog:
https://appgini.bizzworxx.de/blog

You can help us helping you:
Please always put code fragments inside [code]...[/code] blocks for better readability

AppGini 24.10 Revision 1579 + all AppGini Helper tools

balfons
Veteran Member
Posts: 91
Joined: 2018-10-22 15:27

Re: Activate child tab with ApppginiHelper

Post by balfons » 2020-11-06 10:22

Hi Jan!

thanks for your answer. By reading this https://appgini.bizzworxx.de/products/j ... child-tab/ I understood if you activate a child tab, it was not shown at the bottom of the detail view but next to the other custom tabs.

So, activate and hide can be used to show/hide child tabs according to a condition, isn't it?

Thanks for your help

User avatar
jsetzer
AppGini Super Hero
AppGini Super Hero
Posts: 1817
Joined: 2018-07-06 06:03
Location: Kiel, Germany
Contact:

Re: Activate child tab with ApppginiHelper

Post by jsetzer » 2020-11-06 10:58

Yes, child-tabs will stay in place (at the bottom). And you can activate or hide them depending on your custom conditions.

Let me give an example:

Activation:
According to the sort order of tables in the AppGini project itself and to user permissions, a certain tab will be at the 5th position. But in a certain situations you'd like to draw the user's attention to that tab. Then it would be useful to activate the 5th tab instead of the 1st (which is default).

Hiding:
There may be situations in which you'd like to hide tabs for example in a certain status or for certain users. Then you can use the hide function.

I hope this helps understanding.
Kind regards,
<js />

My AppGini Blog:
https://appgini.bizzworxx.de/blog

You can help us helping you:
Please always put code fragments inside [code]...[/code] blocks for better readability

AppGini 24.10 Revision 1579 + all AppGini Helper tools

balfons
Veteran Member
Posts: 91
Joined: 2018-10-22 15:27

Re: Activate child tab with ApppginiHelper

Post by balfons » 2020-11-06 11:12

Hi Jan, I now understand how it works!

Thanks a lot!

User avatar
jsetzer
AppGini Super Hero
AppGini Super Hero
Posts: 1817
Joined: 2018-07-06 06:03
Location: Kiel, Germany
Contact:

Re: Activate child tab with ApppginiHelper

Post by jsetzer » 2020-11-06 11:18

You're welcome!
Kind regards,
<js />

My AppGini Blog:
https://appgini.bizzworxx.de/blog

You can help us helping you:
Please always put code fragments inside [code]...[/code] blocks for better readability

AppGini 24.10 Revision 1579 + all AppGini Helper tools

Post Reply