Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Adding properties to bizobj AFTER dropped on form
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
The Mere Mortals Framework
Divers
Thread ID:
00409564
Message ID:
00409645
Vues:
29
>>Hi Alex!
>>
>>Is there a reason why you want to create a find form different than how Kevin describes how to do it in the developer's guide? The view that the SearchListObj is temporary. The parameters are dynamic based on what the user inputs before searching.
>
>Hey Cathi! How's everything?
>
>I actually have my own version of cFindForm. It's actually a subclass of cFindForm that is modal and instead of acting on oCallingForm, it simply returns the IID value of the record selected by the user.
>
>I needed a findform that I could call pretty much from anywhere and it would ONLY return a value. If I went with the original cFindForm there was a lot of tight coupling involved and it was easier to just modify the form to do what I wanted.
>
>But even in the original form, view parameters are created on the fly in the click() method of the FindNow button.
>
>This got me into problems yesterday because I added some more functionality to the class which allows the user to take a quick detail view/edit at the record selected before actually selecting it and if he changed something or if he deleted the record I needed the bizobj to requery.
>
>If you would like a copy of my new class, let me know...

Now I understand what you are trying to do. I have several places where I have a button to "find" a record in a data entry form, for example a contract #. What I do is open the contract form and automatically have the form execute the find button located on it. The contract find form is opened allowing the user to fill out in any information they want to locate the record they want to find. Then the user selects from the grid that is populated in the find form. When they exit the find form the program returns them back to the contract detail form which they can edit or modify how they see fit. When they exit that form then it returns them to the data entry form they were originally in and fills in the contract # they selected.

By doing it this way you don't have to sub-class and change how the find form works but it still allows the users to modify any records before they select it.
-----------------------------------------

Cathi Gero, CPA
Prenia Software & Consulting Services
Microsoft C# / .NET MVP
Mere Mortals for .NET MVP
cgero@prenia.com
www.prenia.com
Weblog: blogs.prenia.com/cathi
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform