Consultor Eletrônico



Kbase P110481: Errors compiling Dynamics 4GL static generated code for a dynamic SmartDataViewer when some a object
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   10/16/2008
Status: Unverified

FACT(s) (Environment):

Dynamics 2.1B
Getting errors compiling Dynamics 4GL generated code for a dynamic SmartDataViewer:

SYMPTOM(s):

** No corresponding input variable was found for variable <variable>. (221)

** <program> Could not understand line <number>. (196)

** Unable to understand after -- "<string>". (247)

** <program> Could not understand line <number>. (198)

Corresponding procedure or user-defined function already ended or is missing. (3593)

Inside the dynamic SmartDataViewer, some of the object instance contains brackets in their names.

Brackets are illegal characters for field-names.

Trying to add brackets to a field name using AppBuilder, it gives an error message:


This name contains at least one invalid character: (
Please enter another name.


The brackets can be added to the fields and object instances name using Repository Maintenance (ROM) tool.


CAUSE:

Brackets are illegal characters for the field names.
The Dynamics 4GL static generated code will fail to compile because the code generated in the adm-create-objects.
For example if the field is named fiChar(1) the correspondent generated code in the dynamic SmartDataViewer PGEN file will look like:

/* Create the instance in a separate call to avoide a-code segment limits */
run adm-create-fiChar-1(1)
( input lShowPopup,
input lHideOnInit,
input lKeepChildPositions,
....


FIX:

Remove the brackets from the field name and regenerate the static file.