Print Page | Close Window

Is it possible to add this kind of field in the form without adding it in the model ?

Printed From: IdeaBlade
Category: DevForce
Forum Name: DevForce Classic
Forum Discription: For .NET 2.0
URL: http://www.ideablade.com/forum/forum_posts.asp?TID=262
Printed Date: 06-May-2025 at 11:28am


Topic: Is it possible to add this kind of field in the form without adding it in the model ?
Posted By: Customer
Subject: Is it possible to add this kind of field in the form without adding it in the model ?
Date Posted: 16-Jul-2007 at 10:45am

Following the recent conference call between IdeaBlade and Atos Origin, I would like to expose you a typical technical problem which we often encounter and we want to solve with IdeaBlade.

To understand the issue, I will take your tutorial database example - with customers, orders, suppliers, etc -.

I create a new IdeaBlade application and I map the database with the object mapper tool and design a form based on this model, specifically for the customer entity. In this entity we get a first name and a last name and there is no field which represent a combined result between the two (full name). I would like to know if it is possible to add this kind of field in the form without adding it in the model (i.e. not in the business Customer entity). Instead we add the "full name" as a "custom binding source property", which we can then code as a getter and/or setter. This means that the formatting ("Bruno laoueille", "Bruno LAOUEILLE ", "Bruno A. LAOUEILLE ", "LAOUEILLE, Bruno", etc.) stays in the presentation layer and can be different in different binding scenarios... In real life we have some scenarios a lot more complex.

To conclude, I would like to know how IdeaBlade resolves this kind of problem.




Replies:
Posted By: IdeaBlade
Date Posted: 16-Jul-2007 at 10:46am
We do support that scenario with a feature of our DevForce product called "Dynamic Properties".
 
I put together a solution that illustrates dynamic properties. I think I've managed to follow your example.
 
I have uploaded the solution as zip file to a "private" place on our web site. You can download it from:
 
http://www.ideablade.com/Friends/DynamicPropertyExample/DynamicPropertyExample.zip - http://www.ideablade.com/Friends/DynamicPropertyExample/DynamicPropertyExample.zip
 
I also produced a 17 minute video walk-through of this solution. You can play it by clicking:
 
http://www.ideablade.com/Friends/DynamicPropertyExample/DynamicPropertyExampleVideo/DynamicPropertyExample.html - http://www.ideablade.com/Friends/DynamicPropertyExample/DynamicPropertyExampleVideo/DynamicPropertyExample.html
 
Hope this helps.



Print Page | Close Window