make a class with a maintenance form


Author
Message
Eric Leissler
Eric Leissler
StrataFrame User (215 reputation)StrataFrame User (215 reputation)StrataFrame User (215 reputation)StrataFrame User (215 reputation)StrataFrame User (215 reputation)StrataFrame User (215 reputation)StrataFrame User (215 reputation)StrataFrame User (215 reputation)StrataFrame User (215 reputation)
Group: StrataFrame Users
Posts: 0, Visits: 527
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

Dustin Taylor
Dustin Taylor
StrataFrame Team Member (652 reputation)
Group: StrataFrame Users
Posts: 364, Visits: 771
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

Eric Leissler
Eric Leissler
StrataFrame User (215 reputation)StrataFrame User (215 reputation)StrataFrame User (215 reputation)StrataFrame User (215 reputation)StrataFrame User (215 reputation)StrataFrame User (215 reputation)StrataFrame User (215 reputation)StrataFrame User (215 reputation)StrataFrame User (215 reputation)
Group: StrataFrame Users
Posts: 0, Visits: 527
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

Dustin Taylor
Dustin Taylor
StrataFrame Team Member (652 reputation)
Group: StrataFrame Users
Posts: 364, Visits: 771
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.

Michel Levy
Michel Levy
StrataFrame User (437 reputation)StrataFrame User (437 reputation)StrataFrame User (437 reputation)StrataFrame User (437 reputation)StrataFrame User (437 reputation)StrataFrame User (437 reputation)StrataFrame User (437 reputation)StrataFrame User (437 reputation)StrataFrame User (437 reputation)
Group: StrataFrame Users
Posts: 193, Visits: 9K
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.

GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search