Version 2020/10
// file: hooks/TABLENAME-dv.js var dv = AppGiniHelper.DV; var tabContact = dv.addTab("tabContact", "Ansprechpartner", "user", ["first_name", "..."]); var tabMeta = dv.addTab("tabMeta", "Meta", null, ["created_on", "created_by", "..."]); tabMeta.activate();
See also
Pro-Tip
Version 2020/10
You can use tab.activate() in combination with getMemberID() function for conditionally fading/hiding or activating tabs depending on the current user:
var dv = AppGiniHelper.DV; // add more tabs here var tabMeta = dv.addTab("tabMeta", "Meta", null, ["created_on", "created_by", "..."]); AppGiniHelper.getMemberID(function (memberID) { if (memberID !== 'admin') { tabMeta.fadeOut(); } else { tabMeta.activate(); } });
If current user is not admin, then fade out tabMeta
.
If current user is admin, then activate tabMeta
.
Do you like it?
We can only get better if you give us constructive suggestions for improvement. Just voting "No" without giving reasons or suggestions is not helpful and cannot lead to changes.
If you have been searching for a completely different solution than the subject says, this article can not be and will not be helpful for you. In these cases you should consider not to vote.
This is website feedback, only. This voting is not a support form nor ticket system.