Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 511
  • Last Modified:

.NET windows form with dynamic input controls for report

HI Expert,

  I would like to show some controls based on the input parameter for a report. Based on the selected report in UI the controls should be rendered accordingly. Say for example, 'Report Employee Session report' takes 4 parameters EmpID with combo box, Name with text box and FromDate and ToDate as date picker values.  If above report is selected, the 4 controls should be shown in UI along with submit button.

Likewise, based on the report parameter the UI should load the controls dynamically.

How to achieve this?

Please note that I'm using .NET windows application.
0
Easwaran Paramasivam
Asked:
Easwaran Paramasivam
  • 2
  • 2
2 Solutions
 
anarki_jimbelCommented:
It is not really too tricky to create controls on a fly and put them on a form. Much harder to know what controls you need at the moment. I'd probably go with some kind of "template", or list of controls (name, tag, type, sequence number etc.) for each specific report.

Check, what report you need --> select "template" --> according to a list generate controls and render them on a form --> copy required data to form controls.

Probably, it is possible to "read" your report data (reflection) and generate controls on a fly.

The task is pretty complex :).
0
 
Easwaran ParamasivamAuthor Commented:
Thanks. Could you please suggest some resources or documents related to your answer. So that I could refer for my implementation.
0
 
anarki_jimbelCommented:
0
 
Easwaran ParamasivamAuthor Commented:
Excellent
0

Featured Post

Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now