StrataFrame Forum
Home      Members   Calendar   Who's On
Welcome Guest ( Login | Register )
      



make a class with a maintenance formExpand / Collapse
Author
Message
Posted 07/02/2008 8:36:25 AM


StrataFrame Beginner

StrataFrame BeginnerStrataFrame BeginnerStrataFrame BeginnerStrataFrame BeginnerStrataFrame BeginnerStrataFrame BeginnerStrataFrame BeginnerStrataFrame Beginner

Group: StrataFrame Users
Last Login: 08/12/2008 8:55:55 AM
Posts: 31, Visits: 67
Hi,

How can i make a class with a maintenance form.

I have many table and the maintenance form is equals for a lot of table.

Example

managing "civilité"    ex M.  Mme   Melle

managin country       ex  France, Etats unis, Angleterre, Espagne

What is the best method ??

Thank's

Best regards

Eric

Post #17531
Posted 07/02/2008 9:03:43 AM
StrataFrame Team Member

StrataFrame Team Member

Group: StrataFrame Users
Last Login: Yesterday @ 9:49:32 AM
Posts: 226, Visits: 491
Hi Eric!

You would create at least one Business Object (BO) to house the local set of data, and would drop that business object on your form.  How exactly you fill the business object, and whether you want to create seperate business objects for civilité, country, and any other location type information depends on what you needs are on the form.

We've had a recent discussion on the best way to fill location information that gets increasingly more specific. For example, you can fill a drop down or use a browse to select the country, and based on that selection you could fill the more specific fields with only the values that make sense.  That discussion is here, and it may be able to give you a better feel for how to tackle your problem.

Does that help?

Dustin

Post #17533
Posted 07/03/2008 2:28:12 PM


StrataFrame Beginner

StrataFrame BeginnerStrataFrame BeginnerStrataFrame BeginnerStrataFrame BeginnerStrataFrame BeginnerStrataFrame BeginnerStrataFrame BeginnerStrataFrame Beginner

Group: StrataFrame Users
Last Login: 08/12/2008 8:55:55 AM
Posts: 31, Visits: 67
hi,

Its not a probleme of zipcode.

Juste i have a lot of form  to managing some table.

example :
 transport type  with identifiant (int) and  libelle chr(30)

country   with  identifiant (int ) and  libelle  char (40)

sending type  with  identifian (int) and libelle chr(50)

etc. etc..

so for each table i have to make a maintenance form.

I woud like create on form with my color, with my property  and after  in my projetc, i woud like to choice this for and  "duplicate " this, and after select the busines object  .

How can i do that ??

Thank's

Eric

Post #17608
Posted 07/03/2008 3:13:13 PM
StrataFrame Team Member

StrataFrame Team Member

Group: StrataFrame Users
Last Login: Yesterday @ 9:49:32 AM
Posts: 226, Visits: 491
Hi Eric,

Sorry, I did not understand what you were trying to do. I think I do now, but let me make sure:

You want to have one form that can be used to maintain several business objects that have similar or the same structures? Is this correct?

If so, then what you will need is to create your own user control to maintain these items. You will want to create an interface which will be implimented on each business object that you want to support the custom user control (if you intend on having the same column names, etc.), otherwise you can just handle the binding in code within the user control. 

Hopefully that should at least give you an idea of what you need. I would give a more detailed explanation, but the specifics get fairly advanced, too much to described with a simple forum post. In depth help on creating and making something like this work would be more of a training or consulting situation.

Post #17613
Posted 07/13/2008 10:51:59 AM
StrataFrame Novice

StrataFrame NoviceStrataFrame NoviceStrataFrame NoviceStrataFrame NoviceStrataFrame NoviceStrataFrame NoviceStrataFrame NoviceStrataFrame Novice

Group: StrataFrame Users
Last Login: Yesterday @ 7:10:24 AM
Posts: 65, Visits: 1,085
Hi Eric,

in a separate project, create a maintenance form with one of these BO, and add all similar bound controls.

then create a template with this form :zip the 3 files of this form, and add the xlm file .template as shown in MSDN helpfile. the simplest way is to open and modify the xml template file associated with SF maintenance form (modify name line and description line in template data section)

add this template in the folder "C:\Documents and Settings\YOURNAME\Application Data\Microsoft\VisualStudio\8.0\ItemTemplatesCache\Visual Basic"

you'll find now this template as a new item in VS menu.

Bonjour Eric,

Dans un projet distinct, tu vas créer un form de maintenance, avec un de ces BO, et tu y ajoutes tous les controles liés dont tu auras besoin.

Ensuite tu crées un modèle à partir de ce form: tu mets les 3 fichiers du form dans un fichier zip, tu ajoutes un fichier de type xml .template comme décrit dans l'aide. le plus simple consiste à ouvrir et modifier le fichier template xml associé au maintenance form de SF (tu as juste à modifer les lignes de nom et de description dans la section template data)

tu ajoutes ce modèle dans le dossier "C:\Documents and Settings\TON_NOM\Application Data\Microsoft\VisualStudio\8.0\ItemTemplatesCache\Visual Basic"

ce nouveau modèle apparaitra maintenant comme nouvel élément disponible depuis le menu de Visual Studio.

Post #17825
« Prev Topic | Next Topic »


Reading This TopicExpand / Collapse
Active Users: 0 (0 guests, 0 members, 0 anonymous members)
No members currently viewing this topic.
Forum Moderators: Ben Chase, Trent L. Taylor, Steve L. Taylor

PermissionsExpand / Collapse

All times are GMT -6:00, Time now is 3:11am

Powered by InstantForum.NET v4.1.4 © 2008
Execution: 0.109. 10 queries. Compression Enabled.
Site Map - Home - My Account - Forum - About Us - Contact Us - Try It - Buy It

Microsoft, Visual Studio, and the Visual Studio logo are trademarks or registered trademarks of Microsoft Corporation in the United States and/or other countries.