3 Replies Latest reply on Jan 12, 2015 9:26 AM by James Wright

    Missing in action ... how to show time from a datetime field in the ArcFM Attribute Editor ?

    Tomaso Bertoli

      According to documentation

       

      http://resources.arcfmsolution.com/10.1/EngineSDK/FieldEditors.html

      You may use the IMMCustomFieldEditor::Caption property to display the date and time while the field is NOT edited.


      it seams like it would be possible to display in the ArcFM Attribute editor the time component of a datetime field


      but we tried


      string IMMCustomFieldEditor.Caption
      {
      get
      {
      try
      {
      if (_field == null || _field.Value == DBNull.Value || _field.Value == null || _field.Value as DateTime? == null)
      return null;

      return ((DateTime)_field.Value).ToString("dd/MM/yyyy HH:mm:ss");
      }
      catch (Exception)
      {
      return null;
      }
      }
      }


      and nothing happend ... how did we missunderstand the documentation ?