Example #1
0
        public override XVar showDBValue(dynamic data, dynamic _param_keylink)
        {
            #region pass-by-value parameters
            dynamic keylink = XVar.Clone(_param_keylink);
            #endregion

            dynamic fieldData = null, pageType = null, result = null;
            fieldData = XVar.Clone(data[this.field]);
            if (XVar.Pack(!(XVar)(this.displayField == null)))
            {
                fieldData = XVar.Clone(this.displayField);
            }
            pageType = XVar.Clone(this.container.pageType);
            if (XVar.Pack(this.pageObject))
            {
                if ((XVar)(this.pageObject.mode == Constants.EDIT_INLINE) && (XVar)(this.pageObject.pageType != Constants.PAGE_VIEW))
                {
                    pageType = new XVar(Constants.PAGE_LIST);
                }
            }
            result = XVar.Clone(MVCFunctions.CustomExpression((XVar)(fieldData), (XVar)(data), (XVar)(this.field), (XVar)(pageType), (XVar)(this.container.tName)));
            if (XVar.Pack(this.searchHighlight))
            {
                result = XVar.Clone(highlightSearchWord((XVar)(result), new XVar(false), new XVar("")));
            }
            return(result);
        }