Notice: This website is an unofficial Microsoft Knowledge Base (hereinafter KB) archive and is intended to provide a reliable access to deleted content from Microsoft KB. All KB articles are owned by Microsoft Corporation. Read full disclaimer for more details.

FIX: Form Wizard Doesn't Limit Grid Contents to Related Record


View products that this article applies to.

This article was previously published under Q163787

↑ Back to the top


Symptoms

If you use the One to Many Form Wizard from a remote view, the grid created by the Wizard does not limit the contents to the related records.

↑ Back to the top


Resolution

To work around the problem, add the following line of code, as indicated, to the txtbtns.NavRefresh() method in the Visual FoxPro \WIZARDS\WIZSTYLE.VCX:
      CASE THIS.ViewType = 1        &&local views
         SET FILTER TO &cFiltExpr
      CASE THIS.ViewType = 2        &&remote views
         SET FILTER TO &cFiltExpr   && Add this line to the method
      ENDCASE
					

↑ Back to the top


Status

Microsoft has confirmed this to be a bug in the Microsoft products listed at the beginning of this article. This has been corrected in Visual FoxPro 6.0.

↑ Back to the top


More information

Steps to Reproduce Behavior

  1. Issue the following command in the command window:
          MODIFY DATABASE HOME()+'samples\data\testdata'.
    							
  2. Create a remote view to the testdata!customer table using the Visual FoxPro ODBC driver.
  3. Create a remote view to the testdata!orders table using the Visual FoxPro ODBC driver.
  4. Run the One to Many Form Wizard.
  5. Add the remote view to customer as the parent and select the Cust_id field.
  6. Add the remote view to orders as the child and select all fields.
  7. Select Finish and run the form.

↑ Back to the top


Keywords: KB163787, kbfix, kbbug

↑ Back to the top

Article Info
Article ID : 163787
Revision : 4
Created on : 2/24/2005
Published on : 2/24/2005
Exists online : False
Views : 511