Base solution for your next web application

Activities of "velu"

Answer

<cite>ismcagdas: </cite> Hi,

Actually this is not a related topic with AspNet Zero, you need to develop it by yourself but anyway I have send you an example I have done before in one of our previous projects.

I hope it helps.

Thanks.

Thanks

Answer

<cite>velu: </cite>

<cite>ismcagdas: </cite> Hi velu,

It depends on your project type but basically you need to load dependent combobox on the change event of main combobox. It is a bit easier if you are using angularjs, but also not hard for jquery.

Let's assume that you have country & city comboboxes. When user selects a country, change event of country combobox will fire and in that event you will call your server-side method using country combo's selected value.

Please provide any Step by Step detailed example.

Any Update?

<cite>velu: </cite>

<cite>ismcagdas: </cite> Hi,

Which template do you use ? Angular2, Angular1, ASP.NET Core with jQuery or ASP.NET MVC 5.x with jquery ?

ASP.NET MVC 5.x & Angularjs 1.x

Any Update?

Answer

<cite>ismcagdas: </cite> Hi velu,

It depends on your project type but basically you need to load dependent combobox on the change event of main combobox. It is a bit easier if you are using angularjs, but also not hard for jquery.

Let's assume that you have country & city comboboxes. When user selects a country, change event of country combobox will fire and in that event you will call your server-side method using country combo's selected value.

Please provide any Step by Step detailed example.

<cite>ismcagdas: </cite> Hi,

Which template do you use ? Angular2, Angular1, ASP.NET Core with jQuery or ASP.NET MVC 5.x with jquery ?

ASP.NET MVC 5.x & Angularjs 1.x

<cite>ismcagdas: </cite> Hi,

Our application does not contain an example of it, but you can implement it in two ways.

  1. You can open a modal when user wants to pick countr/city/district etc. In that modal, list locations. When user clicks a record on the list, set the value of opener component. You can check ui-bootstrap's modal for how to do it.

  2. You can use select2 component which you can see here <a class="postlink" href="http://keenthemes.com/preview/metronic/theme/admin_4_material_design/components_select2.html">http://keenthemes.com/preview/metronic/ ... lect2.html</a>.

Please take a look at "Remote Data Fetching Via Ajax" section. When user writes any text in this component it gets matched records from server and displays records as a dropdown. Of course you will need to write server side code as well.

Sorry, we cannot provide full example of every usage but we can try to help you if you have any problems while applying one of these solutions.

Thanks.

How Can i open two modal?

<cite>ismcagdas: </cite> Hi,

So, when creating/editing a product you will select an existing organiztion unit, right ?

Yes, Current Login Users organiztion unit..

<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...

<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,

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.

Showing 131 to 140 of 147 entries