Attività di "liangshiwei"

Hi,

You can try:

public class MyFeatureDefinitionProvider : FeatureDefinitionProvider
{
    public override void Define(IFeatureDefinitionContext context)
    {
        var op = new List<string>(){"GROUP", "WAREHOUSE"};
        var validate = new DropDownValueValidator(op);
        
        var myGroup = context.AddGroup("MyApp");

        myGroup.AddFeature(
            "Options",
            defaultValue: "GROUP",
            displayName: new FixedLocalizableString("Options"),
            description: new FixedLocalizableString("Options"),
            valueType: new SelectionStringValueType(validate)
            {
                ItemSource = new StaticSelectionStringValueItemSource(
                    new LocalizableSelectionStringValueItem()
                {
                    Value = "GROUP",
                    DisplayText = new LocalizableStringInfo("Test", "GROUP")
                },new LocalizableSelectionStringValueItem()
                {
                    Value = "WAREHOUSE",
                    DisplayText = new LocalizableStringInfo("Test", "WAREHOUSE")
                }),
            }
        );
        
    }
}

public class DropDownValueValidator : IValueValidator
{
    private readonly List<string> _validOptions;
    
    public DropDownValueValidator(List<string> validOptions)
    {
        Name = validOptions[0];
        _validOptions = validOptions;
    }
    
    public bool IsValid(object? value)
    {
        if(value == null)
        {
            return false;
        }
       
        return _validOptions.Contains(value.ToString());
    }

    public string Name { get; }

    public object? this[string key]
    {
        get => key;
        set { key = (string)value; }
    }

    public IDictionary<string, object?> Properties { get; }
}

okay

okay

Hi,

Could you share the full error logs?

Hi,

https://docs.abp.io/en/abp/latest/CLI#login

You can try add the --organization option

abp login <username> --organization <organization>

Hi,

Could you check this ? https://support.abp.io/QA/Questions/7188/Unable-to-login-after-upgrade-to-811

They are similar problems

Hi,

I can confirm this is a bug, we will check it and fix it in the next patch version.

Hi,

The MVC UI using the https://datatables.net

And Angular Ui using the https://swimlane.gitbook.io/ngx-datatable

However, when I login as user of tenant in above screenshot, it still ask me to provide security code.

I guess this is because of the cache. could you try clear cache?

1 - 10 di 4800
Made with ❤️ on ABP v8.2.0-preview Updated on marzo 25, 2024, 15:11