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

Activities of "paddyfink"

$modal has been replaced in the latest vesion of angular bootstrap.

You can check the documentation here : <a class="postlink" href="https://angular-ui.github.io/bootstrap/">https://angular-ui.github.io/bootstrap/</a>

Try with $uibModal instead of $modal

Hello Thanks. it's better. Now I got the right information : A client is connected: {"ConnectionId":"392af956-606e-4187-b1e6-8adb173dd36e","IpAddress":"::1","TenantId":1,"UserId":2,"ConnectTime":"2016-03-09T16:42:08.5693186-05:00","Properties":{}}

I made a little test, I publish three notification like this :

await _notificationPublisher.PublishAsync(AppNotificationNames.NewRequest, notificationData, tenantIds: new int?[] { request.TenantId });
            await _notificationPublisher.PublishAsync(AppNotificationNames.NewRequest, notificationData, userIds: new long[] { 2 });
            await _notificationPublisher.PublishAsync(AppNotificationNames.NewRequest, notificationData);

I only received a notification when I specify a user. I expected :

  • a notification to be received by every users if we don't specify a tenant nor a user
  • a notification to be received by every users of a tenant if we specify just the tenant id
  • a notfication to be received by only a users if we specidfy the user

All those without subscribing to anything. Is not supposed to work like that?

Hi,

Check if you create your interface IProjectAppService and that it derived from IApplicationService

It's the 0.8.2

Hi halil,

I try to integrate the notification system into my existing explication. I have one problem : nothing get fired on the client side. this function is never called :

//Register to get notifications
    commonHub.client.getNotification = function (notification) {
        abp.event.trigger('abp.notifications.received', notification);
    };

If I execute the directly this command on my browser console, I can catch the event: abp.event.trigger('abp.notifications.received', {message: 'something'});

So the problem is coming form commonhub. And also I noticed something weirg on the log, I get registered, but the userid and tenantid are null : A client is connected: {"ConnectionId":"671a0694-5b35-4ac3-90b1-a9c4cc831cdd","IpAddress":"::1","TenantId":null,"UserId":null,"ConnectTime":"2016-03-07T13:40:25.2281687-05:00","Properties":{}} and again to information are supposed to be fill in the class AbpCommonHub

Maybe I missed something in the configuration. There is something to do for the class abpcommonhub to work correctly on a existing project? I've already add [DependsOn(typeof(AbpWebSignalRModule))] on my web module.

Hello,

Like you I created also a separate web api project to host it on its own server. You can still have all the features abp.

for the Dynamic web api, you just have to add this code on your module class ( you have to create manually one and inherited from abpmodule) :

DynamicApiControllerBuilder
               .ForAll<IApplicationService>(typeof(MyAppApplicationModule).Assembly, "app")
               .WithConventionalVerbs()
               .Build();

it's a requirement for EF to be able to create poco proxies

<a class="postlink" href="http://stackoverflow.com/questions/5597760/what-effects-can-the-virtual-keyword-have-in-entity-framework-4-1-poco-code-fi">http://stackoverflow.com/questions/5597 ... co-code-fi</a>

Question

Hello

I have the following routing configuration:

app.config([
        '$stateProvider', '$urlRouterProvider',
        function ($stateProvider, $urlRouterProvider) {
            $urlRouterProvider.otherwise('/');

            if (abp.auth.hasPermission('Pages.Tenants')) {
                $stateProvider
                    .state('tenants', {
                        url: '/tenants',
                        templateUrl: '/App/Main/views/tenants/index.cshtml',
                        menu: 'Tenants' 
                    });
                $urlRouterProvider.otherwise('/tenants');
            }

            $stateProvider
                .state('home', {
                    url: '/',
                    templateUrl: '/App/Main/views/home/home.cshtml',
                    menu: 'Home' 
                })
                .state('about', {
                    url: '/about',
                    templateUrl: '/App/Main/views/about/about.cshtml',
                    menu: 'About' 
                })
                .state('suppliers', {
                    url: '/suppliers',
                    templateUrl: '/App/Main/views/suppliers/index.cshtml',
                    menu: 'Suppliers' 
                })
                .state('supplierDetail', {
                    url: '/suppliers/:id',
                    templateUrl: '/App/Main/views/suppliers/detail.cshtml',
                    menu: 'Suppliers'
                });
        }
    ]);

But it doesn't work for the supplier detail. The folowing url doesn't work and keep redirect me to the home page : <a class="postlink" href="http://localhost:4000/#/Suppliers/809d3d83-7cbd-e511-beea-6c8814f37e8c">http://localhost:4000/#/Suppliers/809d3 ... 8814f37e8c</a>

I'm beginner in angular and I'm sure it must be something stupid, but I can't find where the problem is. There is no error message in the log or in the browser console. I don't know where to look. I've looked the angular-ui routing documentation and I didn't find something to point me to the right direction.

am I missing something in the configuration? Thanks for your help.

Answer

Hello,

Indeed, the Initialize method was never called. So I checked again and I compare the project to the one created by the template. It turns out that my application class wasn't implemented AbpWebApplication. It works now. Thanks

Showing 21 to 30 of 35 entries