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/dynamicclassifieraction.cpp

    r16061 r16065  
    158158  textout << outconvert << disp << classifier_header_format_statement << "\n";
    159159
     160  // Resolve any ".pr" bits at the end of the "dcn" argument
     161  if (ends_with (args["dcn"], ".pr"))
     162  {
     163    // Change the "dcn" argument to be the OID of the parent of the specified classifier node
     164    text_t::iterator parent_classifier_node_OID_end = findlastchar (args["dcn"].begin(), args["dcn"].end(), '|');
     165    if (parent_classifier_node_OID_end != args["dcn"].end())
     166    {
     167      args["dcn"] = substr (args["dcn"].begin(), parent_classifier_node_OID_end);
     168    }
     169    else
     170    {
     171      args["dcn"] = "";
     172    }
     173  }
     174
    160175  // Output the dynamic classifier, beginning with the (optional) grouping nodes
    161176  text_t selected_grouping_node_OID = "";
Note: See TracChangeset for help on using the changeset viewer.