Display single entry

I have search option in my application. After selecting certain fields and pressing 'Search' the user is presented with a list of entries in a ListBox to choose from. When an entry from the ListBox is selected I want to present the data in a report. Is FastReports able to display just the data from one entry? All the examples I've found seem to list all entries from a table.

I've attached a screenshot. My goal is to display the data in a xaml User Control to the right of the screen.

Thanks.


Comments

  • Hello!

    To resolve your issue, pass the ID of the selected record via a report parameter and set the DataBand.Filter property as follows:

    report.SetParameterValue(‘SelectedId’, selectedId);
    // In the template: DataBand.Filter = ‘[Items.Id] == [SelectedId]’
    
This discussion has been closed.