Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Requery View on View with Parameters on base
Message
De
19/02/2002 13:24:28
 
Information générale
Forum:
Visual FoxPro
Catégorie:
The Mere Mortals Framework
Divers
Thread ID:
00620825
Message ID:
00622072
Vues:
32
Keven,

I created my own solution by stealing good solid code from the framework! I just set up the non-dataenvironment view parameters in the postinithook and call the framework methods. Does the new implementation offer any additional capabilites and can I insert any updated code easily into version 6.1.2?

Gary.


* Method RequeryMultiViews

LOCAL lnRetVal
LOCAL ARRAY laParms[1,2]
lnRetVal=0

*----------------------------------------------
*--- Get all parameters for the specified alias
*----------------------------------------------

THIS.GetViewParameters(@laParms, 'lv_Budget_Exception1')

*--- Create view parameters if any are specified ---*

IF NOT EMPTY(laParms)
FOR lnRow = 1 TO ALEN(laParms,1)
STORE laParms[lnRow,2] TO (laParms[lnRow,1])
ENDFOR
ENDIF

lnRetVal=REQUERY('lv_Budget_Exception1')
IF lnRetVal=REQUERY_SUCCESS
lnRetVal=THISFORM.obizobj.REQUERY()
ENDIF

RETURN lnRetVal




>Gary,
>
>>Keven, do you see this need, or how should this problem be solved?
>
>Actually, the upcoming version of the Framework has this ability...you can requery a view that has not been assigned to any data environment. How immediate is your need?
>
>Regards,
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform