how to manipulate data in table view

If you're a new user of AppGini, feel free to ask general usage questions, or look for answers here.
Post Reply
netasia
Posts: 3
Joined: 2015-07-30 06:03

how to manipulate data in table view

Post by netasia » 2015-07-30 06:18

hi, how do i manipulate the data in hooks folder before it is displayed on the table view?
such as "nl2br(<%%VALUE(text_content)%%>)" or "strip_tags(<%%VALUE(html_content)%%>)

thanks.

User avatar
a.gneady
Site Admin
Posts: 1354
Joined: 2012-09-27 14:46
Contact:

Re: how to manipulate data in table view

Post by a.gneady » 2016-02-15 10:51

Currently, you can manipulate the data only in one of 2 ways: by modifying the select query using the tablename_init hook and modifying $options->QueryfieldsTV, as in the example here: http://bigprof.com/appgini/tips-and-tut ... eview-data but in this case you can't use PHP functions, only MySQL functions.

The other way is using the tablename_footer function or the footer-extras.php file to add JavaScript code to manipulate the data. In this case you can use only JavaScript functions but no PHP ones.
:idea: AppGini plugins to add more power to your apps:

Post Reply