Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
User Groups not working - second post!
Message
De
02/08/2004 15:06:51
Scott Malinowski
Arizona Fox Software LLC
Arizona, États-Unis
 
 
À
02/08/2004 14:46:48
Jason Mesches
Ocean Systems Engineering Corporation
Carlsbad, Californie, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
The Mere Mortals Framework
Divers
Thread ID:
00930163
Message ID:
00930177
Vues:
17
Hi Jason!

Thanks for the reply and we may have visited this topic sometime in the past, I'm not sure. I know I posted this issue back in May and it wasnt' resolved then. Regardless, you ALWAYS have the floor when it comes to asking questions...ask away anytime you want.

Maybe I'm not implementing this the correct way or something. I went into my application object and set the lSecurityEnabled property to .T.. Then when my application runs, I pull-down the Lists menu and select users.
The user form displays the users, no problem. When I click on the Group Page, I get this error:
Error#: 107
Message: Operator/operand type mismatch.
Line: 115
Code: If lnRetVal = REQUERY_SUCCESS AND This.lCascadeMessages AND tlDoNotRequeryChildren = .F.

If I select the List pull-down menu for User Groups, then I get the LODA error.

Either way, these are forms that come with the framework. I have changed nothing on them (except for colors). I thought it might be the views, so I rebuilt those with Kevin's Views.prg and no problems?

Am I supposed to subclass the usergroup form to use with my application or does the framework automatically use the dynamically instantiated forms/controls for these forms?

Thanks!

>Scott,
>
>I seem to remember responding to something like this previously, so forgive me if I re-ask a few questions:
>
>Typically, this type of code would appear in a BizObj immediately after something like:
>
>loDA = This.GetDataAccessObject()
>
>
>Essentially, it's trying to get a reference to the a cursor object (like a view) contained within an object's Data Environment. If it returns null (which is unexpected behavior) your program will crash when the framework attempts to use loDA as if it were an object.
>
>Since this is happening when Page1 of the User Groups form activates... I'm thinking you're getting a problem when the embedded BizObj on page 1's gridlist tries to Requery(), which happens by default when activating a form. One of the first things a BizObj does when requerying is to figure out upon which alias to perform the requery. It does this by calling GetDataAccessObject().
>
>Are you sure that the CListOneToManyObj1 on page 1 of your form has the correct dataenvironment (IOW, one that has a valid view contained therein)? Ours is "GroupsEnvironment" with v_Groups as the InitialSelectedAlias, BTW.
>
>Hope that gets you on the track,
>---J
>
>>Greetings!
>>
>>I turned on security for my MM8 application (using VFP8 SP1). There user form comes up ok and the group tab is present. However, when I click on the Group Page Tab OR if I select User Groups from the menu, I get an error:
>>
>>LoDA is not an object. Line 113 of LoDa.NoDataOnLoad. Page1.activate cusergroupsform1.pgfbizobj.page1
>>
>>I've traced the error, but can't seem to determine what the framework is looking for? I've added a security record to the appincl.dbf in the library direction as the documentation states. Still can't seem to get the User Groups to work correctly.
>>
>>This is my second post and I MUST now implement security into the application. Any ideas anyone?
>>
>>Thanks!
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform