So I think if there is a property to disable sum from a column in the table by a DataList object
Without regenerating files from appgini it would be perfect
Some groups should not see the sum column
DataList object
Re: DataList object
Code: Select all
// file: hooks/TABLENAME-tv.js
jQuery(function () {
var show_sum = false; // <-- your condition here
if (!show_sum) jQuery(".table_view > div.table-responsive > table > tbody > tr.success").not("[data-id]").hide();
});
Kind regards,
<js />
My AppGini Blog:
https://appgini.bizzworxx.de/blog
You can help us helping you:
Please always put code fragments inside
AppGini 24.10 Revision 1579 + all AppGini Helper tools
<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 readabilityAppGini 24.10 Revision 1579 + all AppGini Helper tools
Re: DataList object
jsetzer Thank you so muchjsetzer wrote: ↑2020-11-08 04:44Code: Select all
// file: hooks/TABLENAME-tv.js jQuery(function () { var show_sum = false; // <-- your condition here if (!show_sum) jQuery(".table_view > div.table-responsive > table > tbody > tr.success").not("[data-id]").hide(); });
It worked as follows
// file: hooks/footer-extras.php
Code: Select all
$script_name = basename($_SERVER['PHP_SELF']);
if($script_name == 'TABLENAME_view.php' ){
$mi = getMemberInfo();
// hide SUM only if the user belongs to this group
if(in_array($mi['group'], ['Group1', 'Group2', 'Group3', 'Group4'])) {
?>
<script>
$j(function() {
$j(".table_view > div.table-responsive > table > tbody > tr.success").not("[data-id]").hide();
})
</script>
<?php
}
}