Base solution for your next web application
Starts in:
01 DAYS
01 HRS
01 MIN
01 SEC
Open Closed

Can you please tell by looking at the attached image how can I create multitenantsides for other than tenant and host dashboard. #8744


User avatar
0
finadmin1A created

Right now it is just tenant = 1 and host = 2 how can I do like dashboard2 = 3 , dashboard3= 4 etc.

Thanks, Hunain


4 Answer(s)
  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi,

    The related enum is defined here https://github.com/aspnetboilerplate/aspnetboilerplate/blob/dev/src/Abp/MultiTenancy/MultiTenancySides.cs.

    But, if you need more options, you can modify WidgetDefinition class and use your own enum there.

  • User Avatar
    0
    finadmin1A created

    I tried to do like that but it is read only file and not allowing me to update or write anything.

  • User Avatar
    1
    maliming created
    Support Team

    hi

    MultiTenancySides is an enum in the class library and cannot be changed.

    You can use your own enum there.

    eg:

    [Flags]
    public enum MyMultiTenancySides
    {
        /// <summary>
        /// Tenant side.
        /// </summary>
        Tenant = 1,
    
        /// <summary>
        /// Host (tenancy owner) side.
        /// </summary>
        Host = 2,
    
        Dashboard2 = 3
    }
    

    Then replace all the code about MultiTenancySides in WidgetDefinition with MyMultiTenancySides.

  • User Avatar
    0
    finadmin1A created

    Oh Okay. Got it. Thank you for the response.