Exemplo n.º 1
0
        private void saveProperty(System.String propName, TreeElement node)
        {
            IAnswerData answer = node.getValue();

            System.String value_Renamed = (answer == null ? null : answer.DisplayText);
            if (propName != null && propName.Length > 0 && value_Renamed != null && value_Renamed.Length > 0)
            {
                PropertyManager._().setProperty(propName, value_Renamed);
            }
        }
Exemplo n.º 2
0
        public static System.Object getValue(System.String xpath, TreeReference context, FormInstance tree)
        {
            TreeElement node = tree.resolveReference(ref_Renamed(xpath).contextualize(context));

            if (node == null)
            {
                throw new System.SystemException("Could not find node [" + xpath + "] when parsing saved instance!");
            }

            if (node.isRelevant())
            {
                IAnswerData val = node.getValue();
                return(val == null ? null : val.Value);
            }
            else
            {
                return(null);
            }
        }