Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
1 Trả lời
9324 Lượt xem

I want to display a dollar sign next to a computed field and do not wish to add another field to my object model in order to utilize the monetary widget. Is there some simple way to just add $ into my form after the label and before the value?

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

Hi ,

you can either

  1. customize the computed field , which i believe you mean if the function field (fields.function) and include your "Sign($)" in the field or

or

  1. to add another function field which get the related "$" currency sign , (this is additional fields but without adding it to the physical table)
Ảnh đại diện
Huỷ bỏ
Tác giả

Well adding another field is violating my object model which I am trying to avoid. Your 1st suggestion seems to be the only way to accomplish my goal. I can convert the float value to a string and then append the currency symbol within the field's function. Which of course is bad design practice but not as bad as being forced to change my object models with extraneous fields just to use a javascript widget....

Bài viết liên quan Trả lời Lượt xem Hoạt động
1
thg 2 24
33567
1
thg 4 21
8642
2
thg 2 24
8236
0
thg 9 17
8259
1
thg 8 17
13539