private void SetUpNewSectionNameObjectAction(ISingleDbObject targetDbObject) { FormTool.SetValueSafe(targetDbObject, "AppsNotDriver", true); var sourceDbObject = m_MainActivator.DbObject; if (sourceDbObject == null || Session == null) { return; } var prefix = Session.Config().GetConfigParm(@"Software\Driver\Section\Prefix") ?? ""; var identDriver = prefix + FormTool.GetValueSafe(sourceDbObject, "Ident_Driver", ""); var targetMaxLen = targetDbObject.GetEntity().Columns["Ident_SectionName"].MaxLen; if (!string.IsNullOrEmpty(identDriver) && targetMaxLen > 0) { identDriver = identDriver.Substring(0, Math.Min(targetMaxLen, identDriver.Length)).Trim(); } FormTool.SetValueSafe(targetDbObject, "Ident_SectionName", identDriver); }