Consultor Eletrônico



Kbase P75829: ProxyGen only generates one strongly typed dataset
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   12/19/2008
Status: Verified

SYMPTOM(s):

Persistent procedure used in Open Client contains multiple strongly typed datasets which are used as parameters to different internal procedures

The strongly typed datasets are structured exactly the same (i.e. same temp-tables and each temp-table has the same fields)

The proxies generated by ProxyGen refer only to the first strongly typed dataset

FACT(s) (Environment):

OpenEdge 10.x
Windows

CAUSE:

When you have multiple strongly typed datasets ProxyGen will only generate code for one of them and will define all parameters that refer to any of the strongly type datasets as being of the type of the one strongly typed dataset. This is done on purpose to promote ease of use and conversion (casting) between the datasets. If different classes were generated for each strongly typed dataset the only way the datasets could interact with each other (i.e. copy one to another) would be to manually copy each field within each record and this was considered to be a really bad thing to force customers to do

FIX:

There is no fix for this problem as it is not a problem. Simply use the one strongly typed dataset that was generated by ProxyGen