Ejemplo n.º 1
0
 protected override object DoEvaluate(ScriptThread thread)
 {
     thread.CurrentNode = this;  //standard prolog
     var container = thread.GetCurrentContainer();
     var column = (ExportText)container.ExportedItems.Where(x => x.Name == fieldNode.AsString).FirstOrDefault();
     if (column == null) {
         return ExpressionHelper.ComposeAstNodeError("Fields",fieldNode);
     }
     return	column.Text;
 }