Hide Record Selector Column

Discussions related to customizing hooks. Hooks are documented at http://bigprof.com/appgini/help/advanced-topics/hooks/
Post Reply
jaddison
Veteran Member
Posts: 38
Joined: 2020-06-12 12:44

Hide Record Selector Column

Post by jaddison » 2020-06-27 04:12

Hi
I want to hide the record selector column in table view.
how do I go about achieving this?

regards
John

pbottcher
AppGini Super Hero
AppGini Super Hero
Posts: 1710
Joined: 2018-04-01 10:12

Re: Hide Record Selector Column

Post by pbottcher » 2020-06-27 06:28

Hi ,

you can use the TABLENAME_init function and set the ShowTableHeader = 0
Any help offered comes with the best of intentions. Use it at your own risk. In any case, please make a backup of your existing environment before applying any changes.

jaddison
Veteran Member
Posts: 38
Joined: 2020-06-12 12:44

Re: Hide Record Selector Column

Post by jaddison » 2020-06-27 07:45

Thanks for the reply. Unfortunately ShowTableHeader = 0 turns of titles and field selector button only.

pbottcher
AppGini Super Hero
AppGini Super Hero
Posts: 1710
Joined: 2018-04-01 10:12

Re: Hide Record Selector Column

Post by pbottcher » 2020-06-27 10:24

Hi,

ok, can you post an image of what you want to hide
Any help offered comes with the best of intentions. Use it at your own risk. In any case, please make a backup of your existing environment before applying any changes.

jaddison
Veteran Member
Posts: 38
Joined: 2020-06-12 12:44

Re: Hide Record Selector Column

Post by jaddison » 2020-06-27 13:06

Screenshot attached. Hope this clarifies what I need hidden.
regards John
Attachments
column.jpg
column.jpg (79.15 KiB) Viewed 2828 times

pbottcher
AppGini Super Hero
AppGini Super Hero
Posts: 1710
Joined: 2018-04-01 10:12

Re: Hide Record Selector Column

Post by pbottcher » 2020-06-27 18:50

Hi,

you can try

Code: Select all

	function tablename_footer($contentType, $memberInfo, &$args){
		$footer='';

		switch($contentType){
			case 'tableview':
				$footer='<script>$j("td:first-child").remove();$j("tr th:first").remove();</script>';
				break;
Any help offered comes with the best of intentions. Use it at your own risk. In any case, please make a backup of your existing environment before applying any changes.

jaddison
Veteran Member
Posts: 38
Joined: 2020-06-12 12:44

Re: Hide Record Selector Column

Post by jaddison » 2020-06-27 22:36

Thank you pböttcher

that worked just as I wanted. You're a champion!

regards John

Post Reply