Consultor Eletrônico



Kbase P90619: ProDataSet examples provided with whitepapers don't work.
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   10/25/2004
Status: Unverified

FACT(s) (Environment):

OpenEdge 10.0A

SYMPTOM(s):

dsOrder.w doesn't run

dsOrder2.w doesn't run

Various errors occur

CAUSE:

Multiple coding errors in the examples leading to missing fields, mismatching ProDataSet signatures and other issues.

FIX:

Issues found, and their fix:

1. In dsOrder.w, temp-table definitions aren't taken from dsOrdertt.i, causing signature mismatching.
fix:
- Remove temp-table definitions in procedure settings
- Remove definition for ttItem
- Include reference to {dsordertt.i} before include reference to {dsorder.i} in the definitions section

2. Same as above for dsOrder2.w.

3. In orderDset.p, there is a RUN fillorder.p. This .p file does not exist.
fix:
Reference fillDSorder.p instead.

4. Parameters passed in orderDset.p to fillDSorder.p do not match.
fix:
Change run statement so parameters do match; the second parameter should be OUTPUT DATASET dsOrder.

5. OrderDset.p empties and attempts to fill dataset for no good reason. The FILL will also fail due to data-sources not being available at this point.
fix:
Comment out the EMPTY-DATASET() and FILL() method calls in orderDset.p.