How to hide the seconds in TableView??

Discussions related to customizing hooks. Hooks are documented at http://bigprof.com/appgini/help/advanced-topics/hooks/
Post Reply
lzonca
Posts: 16
Joined: 2019-03-11 14:48

How to hide the seconds in TableView??

Post by lzonca » 2020-06-04 16:51

hi, how can i hide the seconds in the TableView from TimePicker?

I used this code to hide them in DetailView, but I don't know how to do it for TableView


$html = str_replace('showSeconds: true', 'showSeconds: false', $html);

ThankYou

G Belgrado
Veteran Member
Posts: 61
Joined: 2017-03-12 09:24

Re: How to hide the seconds in TableView??

Post by G Belgrado » 2020-06-04 17:39

you could use
"max characters in table view" 5
in Appgini

5 chars = 12:00

lzonca
Posts: 16
Joined: 2019-03-11 14:48

Re: How to hide the seconds in TableView??

Post by lzonca » 2020-06-06 16:43

hi, thanks for your interest.
i tried but it doesn't work.
I found another solution, creating a custom format through "data format" (through the options in the appgini field)

DATE_FORMAT(%%FIELD%%, '%H:%i')

Thanks

Post Reply