Convert column value with function

QuestionsConvert column value with function
c asked 7 years ago

Hello,
Is it possible to call a function to display a text depending on the column value?
For example calling this function to display
function translateType($t)
{
switch($t)
{
case ‘1’: return ‘Request’;
default: return ‘unknown: ‘.$t;
}
}
 
Thanks,
Cedric

1 Answers
Abu Ghufran Staff answered 7 years ago

This is doable, please refer this section.
http://www.phpgrid.org/docs/#Conditional_Content

_________________________
Abu Ghufran - Dev Team
Grid 4 PHP Framework
 
Your Answer

12 + 5 =

Login with your Social Id:

OR, enter

Attach code here and paste link in question.
Attach screenshot here and paste link in question.



How useful was this discussion?

Click on a star to rate it!

Average rating 0 / 5. Vote count: 0

No votes so far! Be the first to rate it.

We are sorry that this post was not useful for you!

Let us improve this post!

Tell us how we can improve this post?