How to show several fields values in one textField

前端 未结 2 1149
一向
一向 2020-12-10 16:23

Can nay one help to add multiple DB field values in one field.

Say i have 3 DB fields:

Name
Address
Age

I want to display all 3 fie

2条回答
  •  无人及你
    2020-12-10 16:42

    If you want to put them in one line (which i guess is the case), its straight forward.

    Put this as a text box $F{Name} + "." + $F{Address} + "." + $F{Age}.toString()

    Or you can use string concatenation (I dont personally like the syntax, take more effort to understand) $F{Name}.concat(".").concat($F{Address}).concat(".").concat($F{Age})

提交回复
热议问题