Project

General

Profile

Feature #449

Security key permissions: Hide certain tab on TabPanel

Added by Imre Tokai about 12 years ago. Updated about 12 years ago.

Status:
New
Priority:
High
Assignee:
-
Start date:
03/02/2012
Due date:
% Done:

0%

Estimated time:
Browser (if web client):

Description

Hello,

Need to hide certain tab on tab panel, but when configuring security:
Permission Type: User Interface
Form Name: certain_form
Element Name:
<-- certain tab's name doesn't appear as an option (just the whole TabPanel name)

As it's a type-ahead input, have tried to fill it with precise certain_tab_name, but I get Please sepcify an element error.
Have tried to make not Visible&Accessible the related form, but it's still visible and accessible on related tab.

What's the best to hide tab from tabpanel?

Regards

History

#1

Updated by Imre Tokai about 12 years ago

As a work-around, would suggest following hack:
in servoySecurity/globals->secGetElementUUIDs added:
var tabUUID = 'UUID-of_the-tab_to_hide-from-certain_form_name.frm-file-opened-with-notepad'
if( record.form_name.equals('certain_form_name') ) //possibility to disable tab on certain form
values.addRow( 4,['tab_to_hide',tabUUID] ) //4 is index in case when there are 3 existing elements on form

This offers tab_to_hide as an option in TYPE-AHEAD and disables it if assigned.
security.getElementUUIDs(record.form_name) doesn't lists tabpanel's tabs; Share (better) ideas to fill TYPE-AHEAD with UUID&tabName pairs, please.

Regards

Also available in: Atom PDF