Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Error with multiple business objects on different pages.
Message
De
11/06/1998 15:10:24
 
Information générale
Forum:
Visual FoxPro
Catégorie:
The Mere Mortals Framework
Divers
Thread ID:
00107226
Message ID:
00107312
Vues:
33
>I'm getting an error on a form I'm currently working on. It's made up of two business objects.
>
> shopobj
> ShopEnvironment
> 1st view: v_shop
> Primary Index on shop table: num
> goalobj
> GoalEnvironment
> 1st view: v_goals
> Index on goal table: num - tables are linked on indexes
>
>Form based on: cbizobjmaintenanceform
>Shopobj is on first page of form:
>Goalobj is on third page.
>
>Both have lautoprimarybizobj set to .T.
>cuniqueid field is set to: num
>
>The first two pages work OK. When the third page is activated I get a:
>
>Error# 1734,
>Property LCHANGEFORMTITLE is not found, line 38
>Code: IF This.oBizObj.lChangeFormTitle AND llFormIsPresent
>Method:afterrowcolchange
>Object:shoplistform1.pgfbizobj.page3.cgridlist1
>
> I've been looking at the Project Mgt. sample (the Projects form) which looks very similar to what I'm trying to do. As far as I can tell, my objects are set-up correctly - but since there are so many places where things can be set I might have missed something.


Changing the reference "This.oBizObj.lChangeFormTitle" to "thisForm.oBizObj.lChangeFormtitle" should solve the problem.

Generally the CodeBook programming paradigm assumes there is one container object on the form and all of your controls are in that container, hence the reference 'thisForm' instead of 'this'. Hope it works well for you.


Ken
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform