Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Setting bizobj and refresh for display only fields
Message
De
27/09/2004 18:09:07
June Kendrick
Kendrick Associates, Inc.
New York, États-Unis
 
 
À
25/09/2004 13:13:48
Alan Hoskins
Delectable Mountain Enterprises
Bardstown, Kentucky, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
The Mere Mortals Framework
Divers
Thread ID:
00946010
Message ID:
00946464
Vues:
20
Alan,

I'm no expert as I'm just learning MM myself, but from what I've learned so far, here's my comments.

>I have a form which displays the data for a primary view and the related descriptions for some fields from lookup tables. For example, the field for Type has an associated text box for Type Name which is pulled from a secondary table. I see info in the MM Manual re: parent/child tables not for this simpler relationship.
>
>Should the primary view and the lookup only views be in a single bizobj or a separate one for each view?

I'd put the lookup views in with the primary bizobj.

>
>How do I set relations and the timing for requery so that when I move through the primary table, the description fields are refreshed? (My attempts thus far have been inadequate)

It appears that child bizobj's get auto requeried by MM when the parent changes, but lookup views don't. One way is to put code in the postrequeryhook method of the primary bizobj on the form that positions/requeries all the lookup tables. The problem with this is that if you are using a cBizObjMaintenanceform with its grid to position the primary bizobj, then it doesn't requery the bizobj when it moves the recordpointer. Another way is to put that lookup code in the refresh method of the page or form, befoe the DODEFAULT(). That's what I've done in the one case where I need lookup text on a page.

I look forward to seeing if others chime in with other methods.

>
>Can someone point me to a reference book, white paper or other resource for learning this aspect of MM?
>

I haven't found any yet, beyond the Dev. Guide, but would also be interestd in other documentation on using MM <g>.

June Kendrick
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform