Format values in field

QuestionsFormat values in field
Eduardo asked 12 years ago

Hi. I'd like some help.

Is it possible to give format to a value in a field?
What i need is, when i enter a value let's say "200" and save it, once is inserted in db as "200"(int) in grid shows 200$. (i need in db "200" (int) 'cause i need to sum that value with other field)

1 Answers
Abu Ghufran answered 12 years ago

You need to set currency formatter for that. e.g.

$col = array();
$col["title"] = "amount";
$col["name"] = "amount";

$col["formatter"] = "currency";

$cols[] = $col;

Your Answer

15 + 12 =

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?