Beispiel #1
0
        } // Run()

        // case 20083 - search options
        private JProperty _getSearchNodes(CswNbtView View)
        {
            JProperty ReturnJson = new JProperty("searches",
                                                 new JObject(
                                                     from CswNbtMetaDataNodeType NodeType in _CswNbtResources.MetaData.getNodeTypesLatestVersion()
                                                     where View.ContainsNodeType(NodeType)
                                                     from CswNbtMetaDataNodeTypeProp MetaDataProp in NodeType.getNodeTypeProps()
                                                     where MetaDataProp.MobileSearch
                                                     let PropId = (MetaDataProp.ObjectClassPropId != Int32.MinValue) ? "search_ocp_" + MetaDataProp.ObjectClassPropId : "search_ntp_" + MetaDataProp.PropId
                                                                  select new JProperty(PropId, CswTools.SafeJavascriptParam(MetaDataProp.PropNameWithQuestionNo))));

            return(ReturnJson);
        } // _getSearchNodes