Buy Now
Sign in

fn in row doesn't appear

webcrea , June 23 2017
Answered
webcrea
hi,

I create a simple function get_fonds_vl

$html = "(444)";
return $html;

in table views

Columns list
fonds.lastvl:Valeur

Columns views
fonds.lastvl:{fn:get_last_vl}

And nothing appear in the column on the front !!! It should be (444) in each row

An idea
Christophe
http://www.webcrea.fr
admin
Hi Christophe,

When you use "return" in the function then the value will be under {var:fn_name}, but if you use "echo" then the value will be directly displayed, which is what you need to do here.

Best regards,
Max
Max
If your main question got answered then please mark the answer using the button!​
​Please let us know if you have any problems with the new forums text editor, we appreciate your feedback!
webcrea
Hi Max,

I tried

in the function
echo "444";
or
return "444";

and in view
fonds.lastvl:{fn:get_last_vl}
or
fonds.lastvl:{var:get_last_vl}

in all combination and nothing appears in the column

Without underscore it works

thanks
Christophe
http://www.webcrea.fr
admin
Hi Christophe,

You mean an underscore in the function name ? that should not be a problem.

Best regards,
Max
Max
If your main question got answered then please mark the answer using the button!​
​Please let us know if you have any problems with the new forums text editor, we appreciate your feedback!
webcrea
Hi Max,

So i don't understand, now it works well with underscore!!!

Regards
Christophe
http://www.webcrea.fr