Solved

.NET windows form with dynamic input controls for report

Posted on 2014-01-21
4
488 Views
Last Modified: 2014-01-22
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
Comment
Question by:Easwaran Paramasivam
  • 2
  • 2
4 Comments
 
LVL 29

Assisted Solution

by:anarki_jimbel
anarki_jimbel earned 500 total points
Comment Utility
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
 
LVL 16

Author Comment

by:Easwaran Paramasivam
Comment Utility
Thanks. Could you please suggest some resources or documents related to your answer. So that I could refer for my implementation.
0
 
LVL 29

Accepted Solution

by:
anarki_jimbel earned 500 total points
Comment Utility
0
 
LVL 16

Author Closing Comment

by:Easwaran Paramasivam
Comment Utility
Excellent
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

More often than not, we developers are confronted with a need: a need to make some kind of magic happen via code. Whether it is for a client, for the boss, or for our own personal projects, the need must be satisfied. Most of the time, the Framework…
Entity Framework is a powerful tool to help you interact with the DataBase but still doesn't help much when we have a Stored Procedure that returns more than one resultset. The solution takes some of out-of-the-box thinking; read on!
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.

763 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now