Kbase P85105: Dynamics: How to apply filter to only the root node in structured treeview
Autor |
  Progress Software Corporation - Progress |
Acesso |
  Público |
Publicação |
  05/05/2005 |
|
Status: Unverified
GOAL:
How to apply filter to only the root node in structured treeview
FACT(s) (Environment):
Dynamics 2.1A
FIX:
Upgrade to Dynamics 2.1B or later.
Alternatively, there is a workaround that alters the behavior of structured treeviews with filter, so that the filter is only applied to the root node.
The modified code is in the internal procedure 'manageSDOs' in the file 'adm2/tvcontnr.p'. In 2.1A02 the IF statement that applies the filter is slightly changed. However, the workaround still can be applied as an added condition.
The 10.0A and 10.0A01 code is similar.
Existing code:
---------------
/* for fields */
IF cFilterValue <> "":U AND
cFilterValue <> ? AND
VALID-HANDLE(phSDOHandle) THEN DO:
Modified code:
--------------
/* for fields */
IF cFilterValue <> "":U AND
cFilterValue <> ? AND
VALID-HANDLE(phSDOHandle) AND
(NOT plStructuredSDO OR (plStructuredSDO AND piStructLevel = 0)) THEN DO: