Skip to content

pbIgnoreTrailingSpaces - cDRReport

Methods - Properties - Events

Type

Boolean

Default

True

Arguments

None

Description

This property, only used with RDS data-sources, controls whether string data passed via TableData gets trimmed from its trailing spaces. This is done to make string filters easier. Without the option the trailing spaces would matter.

The property is global for all RDS data-sources. Set this property to false if you want to make the trimming optional per table and trim the data before adding to the array of variant values that gets passed to TableData.

DataFlex Framework Usage

  • Web
  • Windows
  • FlexTron

Sample

Object oReport is a cDRReport
    Set psReportName to 'MyReport.dr'
End_Object

Object oRunReportButton is a Button
    Set Label to 'Run Report'

    Procedure OnClick
        String sReportId
        Variant[][] vData

        Get OpenReport of oReport to sReportId
        If (sReportId <> '') Begin
            Set pbIgnoreTrailingSpaces of oReport to false
            Move "Test with 3 spaces   " to vData[0][0]
            Send TableData of oReport sReportId 0 vData
        End
    End_Procedure
End_Object

Notes

  • Is only used for RDS (Runtime Data Source) database reports