Consultor Eletrônico



Kbase P25841: Toolbar disappears when visualizing a page other than the fi
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   13/06/2003
Status: Unverified

FACT(s) (Environment):

Progress 9.1D

SYMPTOM(s):

Running a multi-paged Window.

Application contains a customized toolbar object (dyntoolbar.w).

Toolbar correctly shows up on the first page.

Toolbar disappears when visualizing a page other than the first.

CHANGE:

Migrated from Progress 9.1C.

CAUSE:

This is happening because the ADM2 getObjectName function is returning a new value in Progress 9.1D and the Application's code builds the toolbar object based upon the value that getObjectName returns. For instance, in Progress 9.1C this ADM2 function always returns "objectName" as the name for a particular object. However, in 9.1D the same ADM2 function returns "objectName(2)" or "objectName(3)" or "objectName(4)"...as the name for the same object depending upon which page this object is being displayed on when getObjectName is called. Progress implemented a new functionality within the toolbar in 9.1D, which allows a single instance of the toolbar object to be used for managing multiple objects in multiple pages. This new implementation required the creation of a couple of functions in the ADM2 including the linkStateHandler function, which ensures an unique name for an object instance by calling the setOjectName function and passing the "name of the instance" + (page index) as an input parameter to it.

FIX:

When checking the value returned by getObjectName, consider "objectName" + (page index) as a valid occurrence.