Consultor Eletrônico



Kbase P96159: How to change a relationship in a ProDataSet
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   16/10/2008
Status: Unverified

GOAL:

How to change a relationship in a ProDataSet at runtime

GOAL:

Can add a DATA-RELATION object to a ProDataSet to automate the relationship between tables in the ProDataSet

GOAL:

How can this relationship be changed so, for example, relationship1 can be used to fill the ProDataSet and relationship2 can be used to navigate the ProDataSet

FACT(s) (Environment):

OpenEdge 10.x

CAUSE:

Enhancement request# 20041015-002

FIX:

This enhancement has not been implemented in the product
It is not possible to update an existing relationship however there are two possible workarounds:
1. Add the relationship that is to be used for navigation to the ProDataSet but do the fill of the ProDataSet manually
2. Define the ProDataSet dynamically with the required relationship for the fill. Then use the CLEAR method to remove this relationship from the ProDataSet before reading the required relationship for the navigation.
Note: Making the relationship inactive by using the ACTIVE property set to false will not allow another, active relationship to be added