Hiding tabs in V14 Sp2

This Q&A forum allows users to post and respond to "How Do I Do ....." questions. Please do not use to report (suspected) errors - you must use your regional help desk for this. The information contained in this forum has not been validated by LANSA and, as such, LANSA cannot guarantee the accuracy of the information.
Post Reply
pravik
Posts: 60
Joined: Tue Dec 26, 2017 6:44 pm

Hiding tabs in V14 Sp2

Post by pravik »

Hi All,

we have installed V14 SP2 and still we could find that tabs are only being greyed out and they are not hidden.

Adding to this we could find that filters with subtype being defined, in this case tabs which doesn't have authority are being made hidden. We wanted to know if we have some command to hide tabs which doesn't have authority irrespective of whether we have filter present or not.

Thanks for your help.

Regards,
Priya
MarkD
Posts: 692
Joined: Wed Dec 02, 2015 9:56 am

Re: Hiding tabs in V14 Sp2

Post by MarkD »

Can we try some comparative anatomy to see if we are talking about the same thing?

Clear your browser cache.

Run the shipped VLF-ONE demo.

Use Examples -> Advanced -> Subtypes

Click on a SAV account, do you see these tabs?
Capture1.PNG
Capture1.PNG (63.17 KiB) Viewed 12302 times
Click on an INV account, do you see these tabs?
Capture2.PNG
Capture2.PNG (63.67 KiB) Viewed 12302 times
Click on an CHK account, do you see these tabs?
Capture3.PNG
Capture3.PNG (66.78 KiB) Viewed 12302 times

If this is what you see, then the SP2 change about tab visibility about subtypes seems to be working.
MarkD
Posts: 692
Joined: Wed Dec 02, 2015 9:56 am

Re: Hiding tabs in V14 Sp2

Post by MarkD »

If the shipped example works I would compare what you are doing with how it works.
Using sub types is the only way to hide tabs.
MarkD
Posts: 692
Joined: Wed Dec 02, 2015 9:56 am

Re: Hiding tabs in V14 Sp2

Post by MarkD »

How did you go with this one?
pravik
Posts: 60
Joined: Tue Dec 26, 2017 6:44 pm

Re: Hiding tabs in V14 Sp2

Post by pravik »

Hi Mark,

I have compared with shipped framework and saw that the example shows they are using subtypes to hide. As said earlier the same is working fine for our framework as well.

But we wanted to know how to hide tabs which doesn't have filter or subtypes.

Thanks for your response Mark.

Thanks & regards,
Priya
MarkD
Posts: 692
Joined: Wed Dec 02, 2015 9:56 am

Re: Hiding tabs in V14 Sp2

Post by MarkD »

There is this - https://docs.lansa.com/14/en/lansa048/i ... 8_6740.htm

That could change the enablement of a tab dynamically, and if subtypes were involved as well, it might impact its visibility as well.

Remember that if you are dealing with instance level commands you'd have to enable after the user clicked on the item in the instance list, because when they do that all appropriate commands get enabled.
pravik
Posts: 60
Joined: Tue Dec 26, 2017 6:44 pm

Re: Hiding tabs in V14 Sp2

Post by pravik »

Hi Mark,

We have implemented this logic and this would only grey out tabs which doesn't have authority.

But we wanted the respective tab which doesn't authority should be hidden(i.e. those tabs must not be shown) as it does in subtype.

In subtype the tabs which doesn't have authority would not be shown, similarly we wanted to do for all tabs irrespective of whether we have subtype or not.

Kindly correct me if Im wrong.

Thanks & Regards,
Priya
MarkD
Posts: 692
Joined: Wed Dec 02, 2015 9:56 am

Re: Hiding tabs in V14 Sp2

Post by MarkD »

Re: That could change the enablement of a tab dynamically, and if subtypes were involved as well, it might impact its visibility as well.

Did your test case involve subtypes?

If you don't use subtypes, tabs that are disabled will just gray out - to change that behavior would require a product enhancement.

However, if subtypes are used, then it might be that changing the commands enablement might cause the tab to be made invisible.
pravik
Posts: 60
Joined: Tue Dec 26, 2017 6:44 pm

Re: Hiding tabs in V14 Sp2

Post by pravik »

Hi Mark,

We had both the scenarios if our case, i.e tabs with subtype and tabs without subtype.

As you had mentioned when we have subtype then tabs are becoming invisible.

We are curious to know if we can make tabs invisible even when we don't have subtype used, as of now its getting greyout.

Thanks for your help.

Regards,
Priya
MarkD
Posts: 692
Joined: Wed Dec 02, 2015 9:56 am

Re: Hiding tabs in V14 Sp2

Post by MarkD »

If you don't use subtypes, tabs that are disabled will just gray out - to change that behavior would require a product enhancement.
Post Reply