Activities of "mahmut.gundogdu"

Hi Team, Can i access the configuration values in the C#. Please share the sample

There is an example that is related to "how to check feature in C#" in docs. Please check the link https://docs.abp.io/en/abp/latest/Features

Hi Mahmut, Thanks. Can you help me with sample for router.provider.

Nothing is changed. It still has the same logic when using the router.provider. So you can use the sample whenever you want on the app.

Also how can I save the set/get into the "AppFeatureValue" table as with the above example I cannot find the new record in this table.

You shouldn't get or set it in the database table it has its own logic like storing in Redis and much more. You can get or set it via c#. See the documentation *. You can change in UI. https://docs.abp.io/en/abp/latest/Features#feature-management

I have tested, and I couldn't produce any slow steps. Please check your Redis instance. it should be running. Could you send a backend log and browser console errors and/or example code ?

I've tested in resource owner flow and normal mode. my steps: my app is angular+ef with sql server (all is working on my computer). Version is 5.3.3

  1. I created an app
  2. create tenant
  3. go to login page
  4. choose tenant that I created
  5. login with it. result: it works in a sec. maybe I miss something. Could you give some information ?

1- Define a FeatureDefinitionProvider https://docs.abp.io/en/abp/latest/Features


using support3518.Localization;
using Volo.Abp.Features;
using Volo.Abp.Localization;
using Volo.Abp.Validation.StringValues;

public class MyFeatureDefinitionProvider : FeatureDefinitionProvider {
    public override void Define(IFeatureDefinitionContext context)
        {
            var myGroup = context.AddGroup(MyCustomFeatures.GroupName);
  
            myGroup.AddFeature(MyCustomFeatures.PdfReporting, "false",L("PdfReporting"), L("Pdf Reporting Desc"), new ToggleStringValueType());
         }
    
    private static LocalizableString L(string name)
    {
        return LocalizableString.Create<support3518Resource>(name);
    }
}

public static class  MyCustomFeatures
{
    public const string GroupName = "MyFeature";

    public const string PdfReporting = GroupName + ".PdfReporting";
}

2- Add [RequiresFeature] attribute on AppService

3- Get Feature status and add or remove menu.

import { Component } from '@angular/core';
import { ConfigStateService, RoutesService } from '@abp/ng.core';

@Component({
  selector: 'app-root',
  template: `
    &lt;abp-loader-bar&gt;&lt;/abp-loader-bar&gt;
    &lt;abp-dynamic-layout&gt;&lt;/abp-dynamic-layout&gt;
  `,
})
export class AppComponent {
  constructor(config: ConfigStateService, routes: RoutesService) {
    
    const isFeatureActive = config.getFeature('MyFeature.PdfReporting');
    if (isFeatureActive !== 'true') {
      routes.remove(['::Menu:Books']);
    }

  }
}

I have implemented on App.component.ts but you can make whenever you want like router provider or even you can make custom guard.

If we are talking about "access management" of the menu. All menu have their permission. You can manage permissions for any edition. Then if the tenant has permission, the user of the tenant sees the menu. I hope I've understood your issue. otherwise you should give us more information about your primary goal of the issue

Answer

I couldn't understand well but if you want to change layout. You just remove abp-dynamic-layout. and add <router-outlet> and are ready to go. if you want to use <abp-sidemenu> you can use it. Just add in HTML.

Result

I would like to re use your components, like your menu, to create a secondary menu

my secondary menu is dinamic based on the context and role, but as you can see, the style, the behavior are not the same, so I have to create a component to fit your style, so is better if I could re-use your component.

also I need to work with breadcrumb

Sorry, there are no presentation components. We will create theme components as a separate component pack but for now there are no visual components.

Answer

I couldn't understand well but if you want to change layout. You just remove abp-dynamic-layout. and add <router-outlet> and are ready to go. if you want to use <abp-sidemenu> you can use it. Just add in HTML.

Result

The profile page does not support external properties yet. If you want to add these settings on the personell Info section, You should change abp-personal-settings-form component like mehmet erim's answer https://support.abp.io/QA/Questions/1404/Customizing-PersonalSettings-Personal-Info-page-not-working#answer-9791e83b-44ef-a138-e812-39fcd3713128

Then you should add external properties profileDTO. It is a little bit complicated. We have added a task for these lack of feature. The task will with Version 6.0 . When the task is completed. it will be easier. The release Date of version 6.0 is 06 september.

Answer

Would you describe what is your purpose for using Abp Side Menu? What do you want to do ?

Showing 91 to 100 of 120 entries
Made with ❤️ on ABP v9.2.0-preview. Updated on January 14, 2025, 14:54