Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Blank View on Page2
Message
De
08/04/2003 16:58:56
Jason Mesches
Ocean Systems Engineering Corporation
Carlsbad, Californie, États-Unis
 
 
À
08/04/2003 11:42:03
Information générale
Forum:
Visual FoxPro
Catégorie:
The Mere Mortals Framework
Divers
Thread ID:
00775116
Message ID:
00775246
Vues:
20
Hello, Amanda

Paul was right... your AddViewParameter call is best made in the PostInitHook of CalDay. Also, looking at your AddViewParameter method code, I think you want it to look like this:
This.AddViewParameter('vp_cCalInfoID', 'v_CalDay.cCalInfoID')

**The first parameter is the view parameter's name (assuming you're using just the one you mentioned below)
You might also want to check CalDay's nRequeryType property. Typically, you would set it to 1 - Requery if parent bizobj changes.

Hope that helps,
---J

>Hello all. I am fairly new to the MM framework, so I hope my question isn't too aggravatingly stupid.
>I have a maintenance form with 2 pages. I have my primary business object, 'Calinfo' on page1. I have a child business object, 'Calday', on page2.
>Under the properties on Calinfo, I have 'primary business object' checked, as well as 'auto primary'.
>For Calday, I have the parent business object set as Calinfo, and the requery on parent options all checked.
>My view for CalinfoEnvironment retreives all records, while my view for calday has a filter on v_calday.cCalinfoId = ?vp_cCalinfoId.
>Ok, I have a line on the requery of Calday on page2.
>this.addviewparameter('v_calday.ccalinfoid', 'v_calinfo.cid')
>My understanding was that when I found a record from a search on page one, double-clicked on my result grid (at the bottom of page1) that that V should be filled in. However, my view v_calday is blank when I get to page2. I know that the form superclass I am using (with the results grid) is correct, it was designed by a senior programmer here and other subclasses of it behave correctly. It has to be something silly I have done wrong with my view or business objects. Any suggestions for me?
>TIA
>Amanda
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform