Base solution for your next web application

Activities of "hans abelshausen"

Hi, I'm using Abp 0.7.5.0 I'm trying to get values stored in my database, but I only get the values stored in my application.dll In Core:

public class FeatureValueStore : AbpFeatureValueStore<Tenant, Role, User>
    {
        public FeatureValueStore(TenantManager tenantManager)
            : base(tenantManager)
        {
        }
        
    }

In Application:

public class AppFeatureProvider : FeatureProvider
    {
        public override void SetFeatures(IFeatureDefinitionContext context)
        {
            context.Create("Test", defaultValue: "false");
            context.Create("SecondTest", defaultValue: "50");
        }
    }

In ApplicationModule:

Configuration.Features.Providers.Add<AppFeatureProvider>();

And in my database in abpfeatures table 2 Test true 2016-07-28 08:45:00.400 2 NULL 1 FeatureSetting 3 SecondTest 3 2016-07-28 08:45:00.403 2 NULL 1 FeatureSetting

I thought abp.features.isEnabled for example is getting value from database like it works in abpsettings

Okay, I think [UnitOfWork(isTransactional:false)] could be the solution..

"If current unit of work is transactional, all changes in the transaction are rolled back if an exception occurs, even saved changes." We are getting an out of memory exception inserting elements. So our plan is to save the elements before memory exception occurs, but everything is rolled back. Is there a way to insert the elements although memory exception appears.

Hi,

I'm trying to increase the max value of the Value field. In database it is declared as max, but if I try to insert a new entry following error occures: Value: Das Feld "Value" muss ein Zeichenfolgen- oder Arraytyp mit einer maximalen Länge von 2000 sein.

In my code I try this: public class UserSetting : Setting { [MaxLength] public override string Value { get; set; } }

I'm using abp 0.7.5

Hi, I have a lot of sites which are only for logged in users. If someone tries to add the URL, the Controller redirects the user to the Login.cshtml page. After Login I would like to Redirect to the url the user tries to reach. Where can I store this url path. I have tried to put it in the app.js $rootScope.$on('$stateChangeStart', function (event, toState, toParams, fromState, fromParams) {} but this didn't work. Can anyone help me? Thanks in advance

Question

Hi, is there a way to delete auditlogs by button? I try to get all elements in the table abpauditlogs var logs = _logRepository.GetAll().ToList(); foreach (var log in logs) { _logRepository.Delete(log.Id); _unitOfWorkManager.Current.SaveChanges(); }

But only logs that are pushed by myself to the table are deleted? What's the right way to delete the other entries?

Hi, I have a simple question, how to get path of a cshtml which is two Levels above app.js

.state('customHome', {
                     url: '/',
                     controller: 'Test.controllers.views.home.home as vm',
                     templateUrl: '/../../Custom/test.cshtml',
                     menu: 'CustomHome'
                 })

my tree structure Looks like: Test App Main app.js

Test Custom test.cshtml test.js

Thanks in advance.

I'm using SSO like Klainer described. My problem is, if I try to login with SSO and if user not found, I'll try to login with username and password of the application. I get user from db, but in my controller abp.session.userId is undefined. If I log in directly after start of the application with username and password, userId is set.

Hi, we have similar problems. What is the right way to activate sso without getting thousands of redirects to login form? Thanks in advance

Seems to me, that <a href="~/AbpLocalization/ChangeCulture?cultureName={{language.name}}&returnUrl=@ApplicationPath">{{language.name}}</a> is not working anymore... Have you changed something?

Thanks in advance

Showing 1 to 10 of 37 entries