Base solution for your next web application
Ends in:
01 DAYS
01 HRS
01 MIN
01 SEC

Activities of "bilalhaidar"

I cannot see the Tests no.

I recently moved on to v3.3.0 of Abp. That's all.

Any idea what to do?

Thanks

Thanks a lot for the help :)

Hello Ismail, Yes I've read this article before. True I am confused about Settings, but I guess I have now a better understanding.

  • Setting Definitions have a scope: Application, Tenant or User
  • If a SD has a scope of A/T means that it could have a value for each and every Tenant and also could have a value on the App level, correct?
  • Setting the values is governed by specific methods. Therefore, I should know ahead of time if I am editing a Tenant SD or Application SD or Usre SD, correct?

When reading a SD, it is based on the hierarchy. So if I define a SD on App/Tenant levels, if the user is within a Tenant, then if the SD has a value for this Tenant, then it will be retrieved otherwise it will take the App level value otherwise, the default value. Correct?

Thanks

Hello, Is it possible to make use of the IdentityFramework in my custom code? Or is it bound specifically for User Management?

Thanks Bilal

Hello, I am going through the framework code and notice many places you use a combination of setting a Tenant Id and SaveChanges.

Shall I use this combination whenever I am saving records that belong to a specific Tenant?

Also, I know that SaveChanges() is usually used to get the Id of the newly added record, in the case of setting a Tenant, should I always follow it by Savechanges?

Finally, if an Entity has a TenantId, do I need to feed in the value or the framework would set this property to the current TenantID?

Thanks

Question

Hello, Is there anything special to run the tests?

Few weeks ago I was able to run them normally. Today, I added a new Test class and the solution compiles. When I hit "Run Tests" the solution builds successfully but tests are not run.

Any idea?

Thanks

Thanks Ismail. I am following your code to see how it was done.

I noticed that you use the role-combo as follows:

<role-combo selected-role="vm.requestParams.role" empty-text="@L("FilterByRole")"></role-combo>

Is there a reason why ng-model was not used? I am trying to make use of ng-model and getting so many weird issues when I use also "replace:true". As if 2 models are bound to the same field.

Thanks

Thanks a lot.

Great! So in summary, can I say the following:

1- A setting X can be scoped to either App, Tenant or User. This is based on how the setting was defined originally. Scoping a setting means, it is available on those scopes to read/edit, correct? So if a setting is defined for App & User, this setting won't have a value for Tenant, only for App and user?

2- When retrieving a setting value using the generic method of GetSettingValue/Async, it retrieves the value based on the hierarchy. What's the relation between retrieving the value and the scope of the setting definition? How are they linked togther?

3- When setting the value of setting, I have to decide which method to use, whether to set value on App, Tenant or user level. Also, what's relation between scope of setting definition and setting the value?

Finally, can we say that the scopes defined on a setting definition also defines the hierarchy used to retrieve the value of the setting? so if Scope is App and Tenant. Then only 2 levels will be searched, otherwise, default value?

Thanks

Hi, I am trying to wrap the bootstrap-select within a directive (Angular js 1.x).

Once the directive renders, I can select values, but the data bound to VM displays other values. For instance, if I select 'No', it will show 'Yes', etc.

Can you please have a look? I trying to make use of same components used by the framework without need to add other controls, at the same time, I want to encapsulate things together.

(function () {

    function YesNoDecline($timeout) {

        return {
            restrict: 'A',
            replace: true,
            scope: {
                id: '@',
                name: '@',
                data: '=ds'
            },
            template: '<select class="form-control bs-select" id="{{ id }}" name="{{ name }}"' +
                      '     ui-jq="selectpicker" ui-options=\'{ iconBase: "fa", tickIcon: "fa fa-check" }\'>' +
                      '     <option ng-repeat="obj in data" value="{{ obj.value }}">{{ obj.text }}</option>' +
                      '</select>',
            link: function (scope, element, attrs, ngModelCtrl) {

                var id = '#' + scope.id;
                
                $timeout(function () {
                    $(id).selectpicker('refresh');
                }, 0);
                
            }
        };
    };

    YesNoDecline.$inject = ['$timeout'];
    appModule.directive('yesNoDecline', YesNoDecline);
})();

The way I call this directive:

<div yes-no-decline 
                             name="Diet"
                             id="Diet"
                             ds="[{ 
                                value: 'No', text: 'No' 
                             }, { 
                                value: 'Yes', text: 'Yes' 
                             }, { 
                                value: 'Decline to answer', text: 'Decline To Answer' 
                             }]"
                             ng-model="vm.diet">
                        </div>

                        {{ vm.diet}}

Thanks,.

Showing 361 to 370 of 635 entries