Base solution for your next web application

Activities of "omital"

Hi. abp support Multilanguage user interface. Does it support rtl? what is best practice rtl in abp?

Hi. How can I handle and view error validation to end user in right way ? for example suppose below code: vm.saveLab = function () { abp.ui.setBusy( null, labService.updateLab( vm.lab ).success(function () { abp.notify.info(abp.utils.formatString(localize("LabEditedMessage"), vm.lab.name)); $location.path('/lab/list'); }). error(function (data) { if (data.validationErrors != null && data.validationErrors.length>0) { ?????????????? } else abp.message.error('error'); }) ); };

Hi. Which method declare in policy and which one in DomainServices, what is difference between this two concept?

Hi. I Have an middle entity for [many to many ] relationship. how can I do this job with inheritance from Abp.Domain.Entities.Entity?

Hi, Suppose we have entities like this

public class DocHeader : Entity
    {
        public int Id { get; set; }
        public string Name { get; set; }
        public virtual ICollection<DocDetail> DocDetails { get; set; }
    }

    public class DocDetail
    {
        public int Id { get; set; }
        public byte Type { get; set; }
        public int DocHeaderId { get; set; }
        public int Value { get; set; }
        [ForeignKey("DocHeaderId")]
        public virtual DocHeader DocHeader { get; set; }

    }

we have specific validation in Update method in DocHeaderApplicationService and want to validate based on details for current docheader. for example 1- value summaries in doc detail not to be grater than 30 2- user cant select detail with same [type] in DocHeader

how can I do this: 1- validate detail (this is not [◦Validating data transfer objects] this is [Validating Entity]) 2-passing validation erros to client 3-Where I place validation ? DomainService or in ApplicationService

Hi Every thing work correctly when I use "context.Manager.MainMenu" like this

context.Manager.MainMenu.AddItem(baseTable)

but when I add item to "context.Manager.Menus"

var md = new MenuDefinition("um", new LocalizableString("Persons", ISDConsts.LocalizationSourceName));
            context.Manager.Menus.Add(new System.Collections.Generic.KeyValuePair<string, MenuDefinition>("test", md));

then "abp.nav" in java script file is null

Hi, after update to Version=0.7.3.0 I received this error ERROR 2015-11-09 08:46:34,251 [6 ] .Mvc.Controllers.AbpHandleErrorAttribute - System.TypeLoadException: Could not load type 'Abp.Json.JsonHelper' from assembly 'Abp, Version=0.7.3.0, Culture=neutral, PublicKeyToken=null'. at Abp.Web.Navigation.NavigationScriptManager.AppendMenu(StringBuilder sb, UserMenu menu) at Abp.Web.Navigation.NavigationScriptManager.<GetScriptAsync>d__0.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)..... How can I resolve this problem?

Hi. How I can view hierarchy data with tree view in abp project with AngularJs like Zero project? Do you have any sample code?

Hi, Do you suggest Abp (EF+AngularJS) for internet store?

Hi, I try to change System.Threading.Thread.CurrentThread in project startup

public class Startup
    {
        public void Configuration(IAppBuilder app)
        {
            // Enable the application to use a cookie to store information for the signed in user
            app.UseCookieAuthentication(new CookieAuthenticationOptions
            {
                AuthenticationType = DefaultAuthenticationTypes.ApplicationCookie,
                LoginPath = new PathString("/Account/Login")
            });

            // Use a cookie to temporarily store information about a user logging in with a third party login provider
            app.UseExternalSignInCookie(DefaultAuthenticationTypes.ExternalCookie);

            System.Threading.Thread.CurrentThread.CurrentCulture = new CultureInfo("fa-IR");
        }
    }

but it does not work. also I set this in AbpModule's Preinitialize class.

public override void PreInitialize()
        {
            //Add/remove languages for your application

            Configuration.Localization.Languages.Add(new LanguageInfo("fa-IR", "فارسی", "famfamfam-flag-ir", true));
            Configuration.Localization.Languages.Add(new LanguageInfo("en", "English", "famfamfam-flag-england", false));
            

            Configuration.Localization.Sources.Extensions.Add(
     new LocalizationSourceExtensionInfo("AbpWeb",
         new XmlFileLocalizationDictionaryProvider(
             HttpContext.Current.Server.MapPath("~/Localization/AbpWebExtensions")
             )
         )
     );

but it did not work and lang attribute in html tag is en

Showing 1 to 10 of 43 entries