Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Adding properties to bizobj AFTER dropped on form
Message
General information
Forum:
Visual FoxPro
Category:
The Mere Mortals Framework
Miscellaneous
Thread ID:
00409564
Message ID:
00409588
Views:
27
>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform