Skip to Content
avatar image
Former Member

FormulaField.usecount not correct inside subreport

Hi, I'm using a code to remove all not used FormulaField in a report. The code i like:

For Each myformulaField As FormulaField In eport.DataDefController.DataDefinition.FormulaFields)

If myformulaField.UseCount = 0 Then I

endif

next

This code work correct for FormulaField in a report but don't work in subreport. The usecount value is always 0 for Formulafields in subreport.

Have any idea ?

Filippo

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Best Answer
    Mar 21, 2017 at 05:52 PM

    Hi Filippo,

    You don't have any code to open the subreport and get it's formula fields

    See this sample I wrote, in the drop down list box on the right side select formula fields, it scans for subreports and show them also.

    https://launchpad.support.sap.com/#/notes/1985571

    Don

    Add comment
    10|10000 characters needed characters exceeded