Report string concatenation (including splicing field)

Report data is rendered carrier, you can clearly see the data in a database or other data source in a report by the user. To the database as an example, the value often taken out of the field in the table is not necessarily fully meet the needs of business people, such as: first and last name of the employee in the employee table were stored in two fields at this time if the need to obtain the names of the employees We need to use string concatenation (of course sql can also fight, but the latter may modify, do not want or can not move SQL). Followed by a simple example to understand how string concatenation report.

1png

Data in the report, from the Run Dry statements demo data source "employee" table.

designing process:

1, the new blank report, data set ready

2png

2, in addition to "name", the preparation example of a grid-style report

3png

3, increased expression defines the name of the column

4png

Expression is:.. Ds1 + ds1 name surname

Through the above three steps to complete stitching across multiple fields in the report expression to achieve the reporting needs of the user.

In addition to splicing two string field, the field may be used to splice the fixed character string, for example, cell B2 expression may be changed to:. = Ds_guyuan last name + "Mr", the value at this time will return as: Single Mr., Mr. Wang, and can also increase through sex determination, men fight "sir," Ms. spell "Ms." effect.

In summary, in the process of making a report, the user can realize the value of the field with the string concatenation string concatenation, the user may be part of the field intercepted by the expression, splicing, etc. between the strings, or to meet individual flexible require disposal problem.

Published 48 original articles · won praise 13 · views 20000 +

Guess you like

Origin blog.csdn.net/zozoxxma/article/details/103760951