Base solution for your next web application

Activities of "paddyfink"

Hello Halil,

There is bug with the table. If you change the item per page to 50 for example, there is a weird behavior when you click the action button after scrolling down.

I have also a question regarding Jtable, since you also developped it. Is there a way to make the table having the full height of the browser?

Thx

your object vm.shiftss is a list but your your service expect an object.

You need to pass an object. For example : shiftsService.create(vm.shiftss[0])

Ok thanks.

DO you know how we can set the height of the jtable to make it full windows height?

I asked myself the same question few weeks ago. According to the DDD and as Halik suggested, It should be in a project Infrastructure and the infrastructure interfaces in the core Layer.

But instead of creating a new project, I just renamed the project xxx.EntityFramework to xxx.Infrastructure because that what it is. Infrastructure layer is for external sercices like Acces to the database or 3rd-party web services. So it should be Infrastructure instead of EntityFramework

Hello, I'm using kendo ui with ABP.

If you have a SPA application, don't use kendo asp.mvc wrapper but kendo ui angular directives

Hello,

I've implemented something like that to send email with attachment. this is my DTO :

public class AttachmentDto : EntityDto<long>
    {
        public string Name { get; set; }
        public string Content { get; set; }
        public string ContentType { get; set; }
        public int ContentLength { get; set; }
    }

But in order to convert my file into string, I've created a controller that receive the file, convert it into string and send the string back. Then I call my application service with the string. The controller looks like this :

public async virtual Task<JsonResult> AddAttachment()
        {
            try
            {
                //Check input
                if (Request.Files.Count <= 0 || Request.Files[0] == null)
                {
                    throw new UserFriendlyException(L("ProfilePicture_Change_Error"));
                }

                var file = Request.Files[0];

                // todo : put the limit in the settings
                if (file.ContentLength > 5242880) //Mg.
                {
                    throw new UserFriendlyException(L("EmailAttachmentSizeLimit"));
                }

                MemoryStream target = new MemoryStream();
                file.InputStream.CopyTo(target);
                byte[] data = target.ToArray();
                string base64String = System.Convert.ToBase64String(data, 0, data.Length);

                //Return success
                return Json(new MvcAjaxResponse(new AttachmentModel
                {
                    Content = base64String,
                    ContentType=file.ContentType,
                    Name=file.FileName,
                    ContentLength=file.ContentLength
                }));
            }
            catch (UserFriendlyException ex)
            {
                //Return error message
                return Json(new MvcAjaxResponse(new ErrorInfo(ex.Message)));
            }
        }

I

It's because ABP wrap json into a specific format. This might help you : #370@f1d4b2e2-93ef-48a1-aeae-a20aa6cb9fc6

A exemple of one of my implementation with angular :

Html :

<select class="" name="Tags" kendo-multi-select k-options="vm.selectOptions" k-ng-model="vm.tagfilter" k-on-change="changeTagFilter()"></select>

Javascript :

vm.selectOptions = {
                dataTextField: "title",
                autoBind: false,
                dataValueField: "id",
                placeholder:"Tags",
                filter: "contains",
                dataSource: {
                    type: "json",
                    "transport": {
                        read: {
                            url: "/api/services/app/tag/getTags"
                        }
                    },
                    schema: {
                        data: "result"
                    }
                }
            };
Answer

@adevell, here is a good article that could help you : <a class="postlink" href="http://bitoftech.net/2014/07/16/enable-oauth-refresh-tokens-angularjs-app-using-asp-net-web-api-2-owin/">http://bitoftech.net/2014/07/16/enable- ... pi-2-owin/</a>

hey guys, happy to see that i'm not the only one to embrace the movement.

I've started also to migrate my application to typescript. Actually I am completly changing the architecture by restructuring it into set of components (like here : <a class="postlink" href="http://blog.rangle.io/angular2-components/">http://blog.rangle.io/angular2-components/</a>) and removing the use of $scope, directives and controllers

I'm using this method to create my components in typescript : <a class="postlink" href="http://almerosteyn.com/2016/02/angular15-component-typescript">http://almerosteyn.com/2016/02/angular1 ... typescript</a>.

I use also typelite to automatically generate typescript interface from my Application Dtos : <a class="postlink" href="http://type.litesolutions.net/">http://type.litesolutions.net/</a>. The next step will be to use that to generate also appliations services in typescript, so that the application backend will always match the front end.

@Halil, I know you are working on porting abp to angular 2, but i think it will a good idea to change first the architecture of the current version by using components and typescript to make it angular 2 ready and facilitate the migration.

Question

Hello,

I've created a separate web api project to provide public web serices to our clients. I have thoses services auto generated: AbpCache, AbpServiceProxies and ServiceProxies.

How can I disable to generation of those endpoints? I don't want them to appear on the API documentation (like swagger).

Thanks

Showing 21 to 30 of 35 entries