Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Refreshing grid in cBizObjMaintenanceForm
Message
De
27/10/1998 14:14:02
Rex Mahel
Realm Software, Llc
Ohio, États-Unis
 
Information générale
Forum:
Visual FoxPro
Catégorie:
The Mere Mortals Framework
Divers
Thread ID:
00150580
Message ID:
00151176
Vues:
26
Jose,

Maybe I should go through the whole thing. I am writing an import process. I have a one to many relationship between the import process and the file layouts and a one to many relationship between the file layouts and the field definitions. I am using a kMoverObj on a cBizObjMaintenanceForm to select the fields for each file layout. After seleting the fields I need to get the field width and any field decimal places for each field selected.

My problem is that the Field definition view is not updated by to kMoverObj until after the OK button is pressed. What I am trying to do is add a simple cursor to populate a grid on the next page so I can enter the additional information for each selected field. In the Activate Event of Page3 I update the cursor and do a ThisForm.Refresh() to update the grid, but it is not working.

I have also toyed with the idea of updating the field definition view by hand from the aSelList array and using another view to populate the grid, but in that case I would have to update the Page2 view with the Page3 view every time Page3 was not the active page.

Any suggestions


Rex


>>All,
>>
>>I have a cBizObjMaintenanceForm form with 3 pages on the pageframe. On the third page I have a grid. Whenever the third page is activated, I need to check and possibly update the information in the control source for the grid. My problem is that I cannot seem to get the grid to refresh.
>>
>> I have tried adding a This(form).Refresh in various places, but the grid refuses to refresh.
>>
>>I am populating a cursor to feed to grid.
>>
>>TIA
>>
>>Rex
>
>Rex,
>If in pure Codebook or MM your recordsource should be a view. If you want to update it, simply requery it. So, if v_myView is your current view, SELECT v_MyView and then REQUERY().
>
>José
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform