if (graphicsLayer.Graphics.Attributes["AsBuiltDate"] == "NULL") { }
var nonNullValues = from f in e.FeatureSet.Features where f.Attributes["description"] != null select f;
if (PieChartLayers.SelectedIndex == 3) { // PieChart.Title = "ASBUILT DATE"; AsBuiltDate foreach (Graphic graphics1 in graphicsLayer.Graphics) { if (graphics1.Attributes["AsBuilt_Date"] is Nullable) { Groups1 = graphicsLayer.Graphics.GroupBy(graphic => (DateTime)graphic.Attributes["AsBuilt_Date"], (date, graphics) => new AttributeGroup { Key = date.ToString(), // GISDATE = DateTime.ParseExact(date.ToString(), "yyyyMMdd", System.Globalization.CultureInfo.CurrentCulture), // Key = String.Format("{0:####-##-##}", date), Count = graphics.Count(), // Sum = graphics.Select(g => (int16)g.Attributes["DOW"]).Sum(), Graphics = graphics }).OrderBy(group => group.Key).ToArray(); } } }
foreach (Graphic graphic in graphicsLayer.Graphics) { if (graphic.Attributes["AsBuiltDate"] == "Null") { //DO SOMETHING IF NULL } }
Aangemelde leden kunnen berichten plaatsen, updates volgen en meer. Nieuw hier? Registreer een gratis account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.