|
You cannot view the selected record because the underlying View button or icon is
not yet bound to a View Record page. The table that contains the record you are
trying to view is either a non-physical table (i.e. a View or a Query), or has no
primary key. However, you can still create a View button for it by binding the View
Icon and providing a Primary Key from a referenced physical table.
This will enable you to view a record from one of the referenced physical tables.
For example, you could bind the View Icon for the 'Alphabetical list of products'
view from the Northwind database so that it displayes a Products record for viewing.
To bind the View button or icon to a View Record page:
- If you have not yet created a View Record page, use the Application Wizard to create
one.
- Go to the Application Explorer tab, navigate in the tree to the page that contains
the View button or icon, then click the Properties button on the tool bar.
- Select the name of the View button or icon in the tree.
- On the Bindings tab, modify the Redirect URL to point to your View Record page.
Example: ../MyPages/MyViewRecordPage.aspx?QueryStringParam={0}
- The Redirect parameter should reference the field that is a Primary Key for an associated
physical table.
Example: "FV:ProductID"
- Save changes and rebuild the application.
|
|
|