Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
All sorts of various questions and problems
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
The Mere Mortals Framework
Divers
Thread ID:
00612350
Message ID:
00613142
Vues:
17
>
>So (finally), my question is: Is there any easier way to do something like this?
>

Just as a follow-up to this...I ended up moving the bizobj back to page 1 of the pageframe. In the activate of the second page I manually requery the primary view of the bizobj. The only problem I haven't been able to track down (well, haven't spent any time tracking down) is that the highlight bar on the main grid doesn't show up correctly now. That is, it looks OK until I click on another row, then the first row stays highlighted and one of the columns (where I clicked) gets highlighted. This seems to be directly related to the fact that I'm not using the primary view of the business object on the main page.

Any ideas on this one?

>As a secondary quesiton: This same form has a third page that contains a child bizobj. It's set up so that it automatically adds a new record if it's empty. I'd also like it to automatically requery when the parent changes. The basic problem I had with doing this was the framework would go ahead and add a new record correctly, but then it would Requery the data which throws away the record it just got done adding (and all the controls on the form would then be disabled). Is this a case where I just have to handle the requerying myself?


I ended up handling the requerying myself. I have the business object on the third page automatically become the primary business object when the page is activated. I added code to the Deactivate() method of the 3rd page to automatically set the primary business object back to the one on the 1st page. I've also got code there that calls the form method to prompts the user to save their changes. The cancel button doesn't work, but then again, this code should really be in the Activate methods of the other two pages - I'm just afraid of breaking stuff there...

Instead of using a SET FILTER, I just changed the view to retrieve one record at a time (instead of all of them) based on the combo box. I had to write code to automatically add a new record if there weren't any records found.

In the Save/Cancel buttons on this page I added a bit of extra code to automatically return to the 1st page of the pageframe. The framework doesn't do this if the business object isn't marked as Primary (even if it's set to automatically become primary when the page activates).

If anyone has suggestions on how I should have done this, I'd still like to hear them.
-Paul

RCS Solutions, Inc.
Blog
Twitter
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform