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:
00409588
Vues:
28
>Hi, remember me? I used to be known as "the ICK"
>
>As you all know, I've mended my ways and now all my addviewparameter() calls make my bizobjs look for theirs in properties.
>
>Now I'm dealing with a cFindForm and I would like to be able to take the existing SearchListObj and add properties to it as I've been doing with all my regular bizobjs (oRox.proud = .t.).
>
>The problem is that I can't add properties to an object that is part of a form. I can add properties to the form itself, but can't touch the objects I dropped on it.
>
>Well, I know I can use the AddProperty method and in my SearchListObj's init I could say:
   This.AddProperty("VwParameter1")
>   This.AddViewParameter("vp_name", "This.VwParameter1")
Is there a visual equivalent for this code?
>
>As usual, if you know of a more efficient way to do this, let me know. For some reason I really don't feel like going through the trouble of creating my own bizobj and replacing the grid's bizobj (I know this can be done), but if that's the way to do it, so be it.


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.
-----------------------------------------

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