Ignore:
Timestamp:
2008-06-19T12:01:01+12:00 (16 years ago)
Author:
mdewsnip
Message:

(Adding dynamic classifiers) Changed the links generated for parent/current classifier nodes in vlistbrowserclass to use ".pr" instead of trying to work out the parent OID, to avoid this code needing to know about hierarchy separators.

Added code in dynamicclassifieraction for resolving the ".pr" bits.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • gsdl/trunk/src/recpt/vlistbrowserclass.cpp

    r15950 r16065  
    394394      {
    395395        icon = "_document:iconopenbookshelf_";
    396 
    397         // dcn value is the OID of this node's parent
    398         text_t::iterator hierarchy_split_position = findchar(section.OID.begin(), section.OID.end(), '|');
    399         if (hierarchy_split_position != section.OID.end())
    400         {
    401           classifier_node_dcn = substr (section.OID.begin(), hierarchy_split_position);
    402         }
     396        classifier_node_dcn = section.OID + ".pr";
    403397      }
    404398      // Child node
Note: See TracChangeset for help on using the changeset viewer.