Home General
New Blog Posts: Merging Reports - Part 1 and Part 2

Searchfields -> Spaces are trimed

edited November 2006 in General
Hi,

we're using RB 7.04 for D5. It lookes like RB trims the spaces if you set a
searchfield's value. For exsample we have somthing like that: '
ME10CCX'. Is there any way to put the full string including spaces to the
searchfield?

Regards
Sven Langenkamp

CT Datentechnik GmbH
Eschenstr. 2
D-31582 Nienburg/Weser
Germany

Telefon: +49 [0] 5021 - 9724-15
Telefax: +49 [0] 5021 - 9724-18
http: www.ctdatentechnik.de
e-mail: langenkamp@ctdatentechnik.de

Comments

  • edited November 2006
    Hi Sven,

    By default, ReportBuilder removes any leading spaces from search values.
    This is deeply embedded in the ReportBuilder source. The only way to change
    this behavior would be to modify the TdaSQL.ResolveCriteria method. Inside
    this method, there is a function named FormatValue that performs a TrimLeft
    on the search expression value. Removing this TrimLeft call may fix your
    problem. The TdaSQL.ResolveCriteria method can be found in the daSQL file
    in the \RBuilder\Source\... directory.

    --
    Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
This discussion has been closed.