UIMapper v0.0.0.1

Posted on June 14, 2005 02:22 by LeviRosol

Tonight I spent some time POC'ing the UIMapper I mentioned a few days ago. I'm proud to say, that after about 3 hours time, I am much further than I had expected to be. The first 45 minutes were spent white boarding some thoughts, then I spun my wheels for a bit thinking I needed to setup a new HttpHandlerFactory within my project to do what I wanted. I quickly realized that this is simply just another user control that builds itself automagically. 

Here's a screen shot of the results thus far. Note the Response.Writes at the top showing you all of the properties, and their type, for the object I'm working with. The URL being called to generate this page is localhost/UserEditor.ashx. Currently I am parsing the PathAndQuery to get the object name we want to work with. This will probably change.

 

I have started to implement some basic logic that changes the control loaded based on the PropertyType of the PropertyInfo object. This is where I have some grey area to work through. For example, how should the developer indicate what fields they want to be editable? How do you tie dropdowns to other objects? What about role based security?

Currently I am working against objects generated by Codus, however, this control could render a form against any object you point it toward. Since I am planning to implement this into the NTeam Web Management project, I have designed it to fit well within that project.

Anyways, knowing me, I'll work on this more tomorrow, then it will go stale for a week or so. Either way, I'll try and keep you posted on the progress.

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Related posts

Add comment


(Will show your Gravatar icon)  

  Country flag

[b][/b] - [i][/i] - [u][/u]- [quote][/quote]



Live preview

September 6. 2008 17:28