Customizing the Data Displayed in the Table View
Posted: 2020-07-14 03:58
As some of you are aware, there is a step by step on how to customize the data displayed in the table view. (https://bigprof.com/appgini/tips-and-tu ... eview-data) This is a great feature to employ except, I'm having a difficult time developing the most important line of all; the parameters for the SQL formatting. Respectfully request some assistance for anyone who is familiar with this syntax. V/r,
My table Name: Links
My Field: "Lvl' (integer)
My table Name: Links
My Field: "Lvl' (integer)
Code: Select all
function links_init(&$options, $memberInfo, &$args){
$oldFields = $options->QueryFieldsTV;
foreach($oldFields as $field => $title){
if($field == '`links`.`lvl`'){
// [b]this is where I get stuck[/b]
$modField = "CONCAT('<img src=https://xxxxxx/links/hooks/1.png"\"hooks/',`links`.`lvl`,'.png\"" border="\"0\"">')"
$newFields[$modField] = $title;
}else{
$newFields[$field] = $title;
}
}
$options->QueryFieldsTV = $newFields;
return TRUE;
}