Solved

.NET windows form with dynamic input controls for report

Posted on 2014-01-21
4
500 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
4 Comments
 
LVL 30

Assisted Solution

by:anarki_jimbel
anarki_jimbel earned 500 total points
ID: 39798575
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
ID: 39799343
Thanks. Could you please suggest some resources or documents related to your answer. So that I could refer for my implementation.
0
 
LVL 30

Accepted Solution

by:
anarki_jimbel earned 500 total points
ID: 39800873
0
 
LVL 16

Author Closing Comment

by:Easwaran Paramasivam
ID: 39800958
Excellent
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction Hi all and welcome to my first article on Experts Exchange. A while ago, someone asked me if i could do some tutorials on object oriented programming. I decided to do them on C#. Now you may ask me, why's that? Well, one of the re…
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…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used below. https://filedb.experts-exchange.com/incoming/2017/03_w12/1151775/Permutations.txt https://filedb.experts-exchange.com/incoming/201…

730 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