Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Find and ObjMaintenanceForms
Message
 
À
06/09/2004 16:53:25
June Kendrick
Kendrick Associates, Inc.
New York, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
The Mere Mortals Framework
Divers
Thread ID:
00939718
Message ID:
00939810
Vues:
12
If you launch a modal form and do not close it, you will not be able to do anything in any other forms.

It sounds like you are using the cbizobjmaintanenceform as your base class. You might want to try using the cbizobjnolistmaintform. It has a built in find button and functionality to launch the find form you're talking about. I use this base form class almost exclusively in my apps.


>Bob,
>
>Thanks for the detailed reply. It's not really an order entry system, it's a specialized type of club membership system, but I figured the customer/order scenario would be easiest to explain. It's also a single user system, so I don't have to worry about other users here, but do want to code it properly so I know how to do it multiuser. I do have a multi-tabbed "customer" (member) maintenance form, and am not using customer (member) codes - just names.
>
>I don't think I want an intelli-find combo box here, though I can see where that might be useful in other places. Based on your comments, I think what I'd like to do is set up a Find button on the "order" form that calls a modal form with a grid of the member names and a new button that calls the maintenance form (can I do that from a modal form?), and then in the GotFocus of the grid on the modal form, do the bizobj and control requery, for if a new member is added in the maintenance form.
>
>Thanks!
>
>June
>
>>Hi again!
>>
>>I have a order entry system also. The way I do this is as follows:
>>
>>- Like you, I have a Customer form which performs maintenance (add, mod, delete) on the customer table.
>>- I also have an order form where the customer needs to be entered.
>>- I use the cifcombobox base clase to create a cifCustomerComboBox. This is an 'intelli-find' type combo box. As you type in characters into the control, it moves the selection down the list accordingly. You can set a property that allows for 'on-the-fly' adds on this control. When you type in characters that are not in the list (customer list view), a messagebox will prompt the user that the value entered is not in the list and do they want to add it. If they say yes a modal form will be presented.
>>- To avoid duplicate code, take your current controls from the customer maintenance form and place them into a container and save the container class. Then, use this container on both the customer maintenance form and the new modal customer add form.
>>
>>This method will take a little time to master, since you will need to have a unique value (my system uses a customer code) that is populated into this combobox. I also recommend all uppercase for this code, since VFP is case sensitive. See page 260 in the dev guide for an explanation of this control.
>>
>>Once, you have created this cifCustomerComboBox class, you can re-use it anywhere you need to throughout your application. Additionally, you may find this control useful for other list items. I have used it also for part number for inventory and pre-defined addresses for deliveries.
>>
>>Lastly, if you don't want everybody who enters orders to be able to add customers or if your customer mainteance form contains many 'tabs' for different customer information, you could still use this 'cif' control, but just add a code to the gotFocus event of the control to requery the business object and requery the control, so if the customer is added by someone else after the order form is launched, the user won't need to shut down the form and re-launch it to requery the customer list.
>>
>>Good Luck!
>>
>>
>>>I've got two cBizObjMaintenanceForms - customers and Orders. When I go to put an order in, I want to be able to select a customer or enter a new customer from the Order form. What's the suggested way of doing this?
>>>
>>>I'd like to put a Find Customer button on the Order form, and bring up a grid of customers (it's a small list) and offer a New Customer button, but in order to return a value from the form that is called, it needs to be a modal form according to the Dev. Guide, and thus can't be the Customer cBizObjMaintenanceForm. I'd rather not have two forms to do customer maintenance - the "standalone" cBizObjMaintenanceForm and one to be called from the Order form.
>>>
>>>Or, is the suggested method to just have the user bring up the Customer Maintenance screen to add the customer, and have a simple customer grid in a modal form for the Order Find Customer button?
>>>
>>>Thanks,
>>>
>>>June
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform