is it possible? hide fields with same name (different tables)

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
User avatar
onoehring
AppGini Super Hero
AppGini Super Hero
Posts:1464
Joined: 2019-05-21 22:42
Location: Germany
Contact:

is it possible? hide fields with same name (different tables)

Post by onoehring » 2026-01-14 09:37

Hi,

my ID field is always named ID. Is it possible to hide it with a single line JS or would I need to hide it for each table with

Code: Select all

dv.getChildrenTabs().hide("subtable1", "column1");
Thanks
Olaf

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

Re: is it possible? hide fields with same name (different tables)

Post by jsetzer » 2026-01-14 10:09

There are multiple ways. Easiest could be CSS:

Code: Select all

<style>
    .children-tabs>.tab-content>.tab-pane .table-responsive>table[data-tablename]>tbody>tr[data-id]>td[class$="-number"],
    .children-tabs>.tab-content>.tab-pane .table-responsive>table[data-tablename]>thead>tr>th[class$="-number"] {
        display:none !important;
    }
</style>
Just replace number (at the end of those lines) by your column name (id or ID or Id, I don't know)

Tip Check your selector first, for example by highlighting the selected columns:

Code: Select all

<style>
    .children-tabs>.tab-content>.tab-pane .table-responsive>table[data-tablename]>tbody>tr[data-id]>td[class$="-number"],
    .children-tabs>.tab-content>.tab-pane .table-responsive>table[data-tablename]>thead>tr>th[class$="-number"] {
        background-color: yellow;
    }
</style>
Note Works in standard AppGini generated files. May break if you have added/modified classes by yourself.
Kind regards,
Jan <js />

AppGini 26.12 + all AppGini Helper tools

My Side Project
www.office-app.com | Coding Sample | Changelog | Blog | Top 20 Features
Integrated Statemachine Workflow • KANBAN • Audit Trail • Integrated API • Model Driven • Field-Level permission • Modern UI

My Company Website
www.bizzworxx.de

My AppGini Blog
appgini.bizzworxx.de/blog

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

User avatar
onoehring
AppGini Super Hero
AppGini Super Hero
Posts:1464
Joined: 2019-05-21 22:42
Location: Germany
Contact:

Solved: hide fields with same name (different tables: id) in detailview

Post by onoehring » 2026-01-15 15:34

Hi Jan,

thanks, your suggestion is good but I actually meant in table- and detailview.
So I ask our AI friends and the answer, building upon your CSS suggestion was actually quite easy:

Code: Select all

.form-group[class*="-id"] {
    display: none;
}


Olaf

Post Reply