Kbase P71155: Dyn 2.1A01: In a treeview, the label of a plain text node ge
Autor |
  Progress Software Corporation - Progress |
Acesso |
  Público |
Publicação |
  3/24/2004 |
|
Status: Unverified
FACT(s) (Environment):
Dynamics 2.1A
SYMPTOM(s):
In a treeview, the label of a plain text node gets blanked when saving a record in its launched window
Dynamics 2.1A01
The label of a plain text node gets blanked
Saving a record
The launched window has its own SDO data source
CAUSE:
Known issue with Dyn Treeview that occurs when the launched window has its own SDO data source. It does not happen if the launched window is a typical folder window that updates the Primary SDO of the text node.
adm2/tvcontnr.p/recordUpdated should probably check that a node is not of type "plain text" before updating its label.
FIX:
Suggestion to implement in adm2/tvcontnr.p/recordUpdated:
[...]
{get TreeViewOCX hTreeViewOCX}.
FIND FIRST ttNode
WHERE ttNode.hTargetProcedure = TARGET-PROCEDURE
AND ttNode.node_obj = DECIMAL(hTreeBuffer:BUFFER-FIELD("node_obj":U):BUFFER-VALUE) NO-LOCK NO-ERROR.
/* @@@ work around begin @@@*/
IF AVAILABLE ttNode AND ttNode.data_source_type = "TXT" THEN RETURN.
/* @@@ work around end @@@*/
IF AVAILABLE ttNode THEN
ASSIGN cLabelSubsFields = ttNode.label_text_substitution_fields
cNodeLabelExpression = ttNode.node_text_label_expression.
[...]