Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Going crazy
Message
 
To
04/08/1999 06:55:20
Ed Gay
Computer Software Consultants
Bangor, Maine, United States
General information
Forum:
Visual FoxPro
Category:
The Mere Mortals Framework
Title:
Miscellaneous
Thread ID:
00249409
Message ID:
00249680
Views:
20
>Hi Roxanne,
>I have one table with a filter on page one, the operator selects the record that is to be expanded on. I want to then switch to page two that will contain the expanded record. Both grids are run from the same table with different views.

Hi Ed, I never did a form like this with a grid both page 1 and page 2 but here's some thoughts...

When you say "filter on page 1" do you mean your view is setup to display a subset of data from the table? And is this view set as your initial selected alias in the BizObj builder?

Is your second view parameterized on a key field so that it can requery out the correct record to show expanded on page 2? You want to see the section in the Developer's Guider on Requerying Business Objects to handle requerying the second view when the page is activated. You will also need to select the view so that its the current alias when page 2 is activated.

Typically with a pageframe you want a separate business object on each page. In that scenario you need to handle parent-child relationships like George Simon posted. Since your page1 and page2 are using views from the same table, you can get away with one business object I think. But you need to place the business object on the form instead of an individual page, so you need to reference it from you grid with a .parent.

HTH

>Jump Start Guide, ummm, I don't see any example of a two grid setup in the guide.

Yes your right... I overlooked the fact that your using 2 grids when I first responded.
Roxanne M. Seibert
Independent Consultant, VFP MCP

Code Monkey Like Fritos
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform