Base solution for your next web application

Activities of "velu"

Hi, Please provide sample program of Create and Update / Edit angluerjs Logic.

<cite>ismcagdas: </cite> Hi,

AspNet Zero AngularJs version already includes/implements Metronic. Do you wnt to include a component to your project ? Or, Do you want to change the version of Metronic in AspNet Zero ?

Thanks.

I want to change admin theme and Metronic version also

<cite>ismcagdas: </cite> Hi,

Do you want to create a menu item for all tenants or for just a specific tenant ?

Just a specific tenant.

<cite>ismcagdas: </cite> Hi,

This is not possible directly but, you can do it like this:

  1. When defining related permission for menu item, set a feature dependency like this
var sampleBooleanFeaturePermission = pages.CreateChildPermission(
   name: AppPermissions.Pages_Tenant_SampleBooleanFeature,
   displayName: L("SampleBooleanFeature"),
   isGrantedByDefault: false,
   multiTenancySides: MultiTenancySides.Tenant,
   featureDependency: new SimpleFeatureDependency(AppFeatures.SampleBooleanFeature)
);
  1. Then give this permisison to only that tenant.

I hope this helps.

Does not have parameter named isGrantedByDefault in CreateChildPermission. I am not able to achieve this if any full example or document available then.

Please provide us.

<cite>ismcagdas: </cite> Hi,

Are you getting an exception ? Because AspNet Zero already has a creating organization unit functionality. You can check OrganizationUnitAppService class for that.

Organization Unit menu is working properly.

When i am creating Product master that time Organization Unit Id not able to store in database. That CRUD example required.

<cite>ismcagdas: </cite> Hi,

I think you are trying to integrate organization unit with your product entity, am I right ? Can you explain a bit more detailed what you are trying to do ?

Thanks.

Yes, I am trying to integrate organization unit with product entity. For this CRUD example required.

<cite>ismcagdas: </cite> Hi,

Sorry, this property is deleted. The main thing here is

featureDependency: new SimpleFeatureDependency(AppFeatures.SampleBooleanFeature)

You need to define a feature and use it when defining menu item. Then in the UI, allow the tenants you want for this feature.

I hope this is clear enough.

Thanks.

Please give more information not able to achieve.

<cite>ismcagdas: </cite> Hi,

Did you checked adding/removing users from organizaiton unit ? If you did and it was not helpful, please share the code you have written and we can ty to help.

Thanks.

Yes, We have checked adding/removing users from organizaiton unit.

I am trying to integrate organization unit with product entity. For this CRUD example required.

Please help us its urgent.

<cite>ismcagdas: </cite> Hi,

Have you read this document <a class="postlink" href="http://aspnetboilerplate.com/Pages/Documents/Zero/Organization-Units">http://aspnetboilerplate.com/Pages/Docu ... tion-Units</a> ? Especially this part explains exactly what you want <a class="postlink" href="http://aspnetboilerplate.com/Pages/Documents/Zero/Organization-Units#creating-entity-belongs-to-an-organization-unit">http://aspnetboilerplate.com/Pages/Docu ... ation-unit</a>

In this URL example for fetching the data. I required insert and update Organization Unit Id in Product entity.

<cite>ismcagdas: </cite> Hi,

You can follow below steps to achieve similar functionality.

  1. Open AppFeatures.cs and add a new feature, for example
public const string MyCustomMenuFeature= "App.MyCustomMenuFeature";
  1. Then open AppFeatureProvider.cs and add the feature like this.
context.Create(
   AppFeatures.MyCustomMenuFeature,
   defaultValue: "false",
   displayName: L("MyCustomMenuFeature"),
   inputType: new CheckboxInputType()
);
  1. When defininng your menu item use this feature
.AddItem(new MenuItemDefinition(
   "Customers",
   L("Customers"),
   url: "tenant.customers",
   icon: "icon-globe",
   requiredPermissionName: AppPermissions.Pages_Customers,
   featureDependency:new SimpleFeatureDependency(AppFeatures.MyCustomMenuFeature)
   )
)
  1. Then run the application, login as host admin, open tenant list, select the tenant you want and grand that tenant the feature "AppFeatures.MyCustomMenuFeature".

In this way, only that tenant is going to see the menu item.

Thanks Working...

Showing 1 to 10 of 147 entries