Starts in:
1 DAY
8 HRS
8 MIN
59 SEC
Starts in:
1 D
8 H
8 M
59 S

Activities of "ElifKaya"

I recommend you instead do this in a normal API controller instead of an App service as you want to return a file rather than some wrapped ajax/json response - which is what the dynamic API part of ABP will do with the AppServices.

Here is an example returning and ICS file.

[HttpGet] 
[AllowAnonymous] 
public FileResult ICS(Guid id) 
{ 
    var appointment = _attendanceRepo.GetAllIncluding(c => c.CalendarEvent, d => d.CalendarEvent.OwnerCalendar.Owner).First(d => d.Id == id); 
 
    string output = $"BEGIN:VCALENDAR" + rt + 
        $"VERSION:2.0" + rt + 
        $"BEGIN:VEVENT" + rt + 
        $"UID: calendr-" + appointment.Id + rt + 
        $"DTSTART:" + string.Format("{0:yyyyMMddTHHmmssZ}", appointment.CalendarEvent.Start) + rt + 
        $"DTEND:" + string.Format("{0:yyyyMMddTHHmmssZ}", appointment.CalendarEvent.End) + rt + 
        $"SUMMARY:" + appointment.CalendarEvent.EventName + " with " + appointment.CalendarEvent.OwnerCalendar.Owner.FullName + rt + 
        $"LOCATION:" + appointment.CalendarEvent.Location + rt + 
        $"END:VEVENT" + rt + 
        $"END:VCALENDAR" + rt 
        ; 
 
 
    HttpResponseMessage result = new HttpResponseMessage(HttpStatusCode.OK); 
    var stream = new MemoryStream(Encoding.UTF8.GetBytes(output ?? "")); 
    result.Content = new StreamContent(stream); 
    return File(stream, "text/ics", fileDownloadName: appointment.CalendarEvent.EventName + ".ics"); 
 
} 

Hi, Thank you for your comment. But, we used ajax request successfully in Angular. So, I think that we should achieve this in MVC.

Hi,

I want to use 'api/file-management/file-descriptor/download/{id}/token' endpoint. I can see content of this file in network response field. But, I can not get content from ajax request result. Can you give an example about this? I need to show content of file. Thank you

Check the docs before asking a question: https://docs.abp.io/en/commercial/latest/ Check the samples to see the basic tasks: https://docs.abp.io/en/commercial/latest/samples/index The exact solution to your question may have been answered before, and please first use the search on the homepage. Provide us with the following info:

  • ABP Framework version: v7.3.1
  • UI Type: Angular / MVC
  • Database System: EF Core (SQL Server.)
  • Tiered (for MVC) or Auth Server Separated (for Angular): yes/
  • Exception message and full stack trace:
  • Steps to reproduce the issue:

Hi,

We have more docker application like abp module application, Console application and Angular application. I need get token from AuthServer with Console Application and Angular application. But, I need to set AuthorityUrl as a AuthServer__Authority=https://localhost:44342 for Angular application. Also, I need to set AuthorityUrl as a AuthServer__Authority=http://pssx-authserver for Console application. I used client credential for console application. I couldn't use different AuthorityUrl at the same time.

Can I add more then one issuer url?

Also, If I used Console_App_Client settings as a public client application like Angular. I didn't use client_credentials. So,it works. Is this a best practice?

Thank you

Check the docs before asking a question: https://docs.abp.io/en/commercial/latest/ Check the samples to see the basic tasks: https://docs.abp.io/en/commercial/latest/samples/index The exact solution to your question may have been answered before, and please first use the search on the homepage. Provide us with the following info:

  • ABP Framework version: v7.3.1
  • UI Type: Angular
  • Database System: EF Core (SQL Server)
  • Tiered (for MVC) or Auth Server Separated (for Angular): yes
  • Exception message and full stack trace:
  • Steps to reproduce the issue:

Hi,

I used IIdentityRoleAppService in my console application. I used AbpIdentityHttpApiClientModule in my application module. Also I defined IdentityClients values in appsettings.json.

Then, I seed application information to [OpenIddictApplications] table as below.

I used this application successfully in the same solution. But I want to use authserver endpoints from the another solution. But this client information just worked on the host, not tenant. I want to pass tenant name as a parameters like e userName or Password.

Can you help about it?

Thanks

Check the docs before asking a question: https://docs.abp.io/en/commercial/latest/ Check the samples to see the basic tasks: https://docs.abp.io/en/commercial/latest/samples/index The exact solution to your question may have been answered before, and please first use the search on the homepage. Provide us with the following info:

ABP Framework version: v7.3.1

UI Type: / MVC /

Database System: SQL Server,

Tiered (for MVC) or Auth Server Separated (for Angular): yes

Exception message and full stack trace:

Steps to reproduce the issue:

Hi,

Is there any improvement about this old issue?

https://support.abp.io/QA/Questions/5809/ABP-FileDescriptorAppService-overrideExisting-parameters

Thanks

Check the docs before asking a question: https://docs.abp.io/en/commercial/latest/ Check the samples to see the basic tasks: https://docs.abp.io/en/commercial/latest/samples/index The exact solution to your question may have been answered before, and please first use the search on the homepage. Provide us with the following info:

  • ABP Framework version: v7.3.1
  • UI Type: / MVC /
  • Database System: EF Core (SQL Server,.)
  • Tiered (for MVC) or Auth Server Separated (for Angular): yes
  • Exception message and full stack trace:
  • Steps to reproduce the issue:

Newtonsoft

I used AbpSystemTextJsonSerializerOptions configuration in our module template solution, it works actually. And, I send also response data from swagger. (I used NetTopologySuite library also).

But, when I used this module in our other module solution as a package reference, it throws self referencing loop exception.


The problem is here, the other solution which uses our module template module. I also add AbpSystemTextJsonSerializerOptions configuration in its HttpApiHostModule and WebHostModule.


Hi,

I'm using AbpSystemTextJsonSerializerOptions configuration. Even though I ignore cycles, it throws a referencing loop exception. Can you give an advice for this problem, please?

Thank you

Check the docs before asking a question: https://docs.abp.io/en/commercial/latest/ Check the samples to see the basic tasks: https://docs.abp.io/en/commercial/latest/samples/index The exact solution to your question may have been answered before, and please first use the search on the homepage. Provide us with the following info:

  • ABP Framework version: v7.3.1
  • UI Type: / MVC /
  • Database System: EF Core (SQL Server)
  • Tiered (for MVC) or Auth Server Separated (for Angular): yes
  • Exception message and full stack trace:
  • Steps to reproduce the issue:

I need to use it for child entity. So, I just wondered if there is CurrentUser change function like for tenant. Thank you for your advice, we will need to this in the future. But, I will add CreatorId as a parameter right now. Thanks,

Hi,

We want to add new entry with BackgroundJob. We can achieve to change CurrentTenant and we add tenantId of entry to database. But, we can't set CreatorId to database with repository insert operation. Is there a solution to use for the current user like CurrentTenant.Change ? Thank you,

Check the docs before asking a question: https://docs.abp.io/en/commercial/latest/ Check the samples to see the basic tasks: https://docs.abp.io/en/commercial/latest/samples/index The exact solution to your question may have been answered before, and please first use the search on the homepage. Provide us with the following info:

ABP Framework version: v7.3.1

UI Type: / MVC /

Database System: SQL Server,

Tiered (for MVC) or Auth Server Separated (for Angular): yes

Exception message and full stack trace:

Steps to reproduce the issue:

Can you please confirm whether you are implementing ISoftDelete for your parent entity also, in your case for Model entity ?

Thank

Hi,

Actually, I added ISoftDelete interface in only child entities. Do we have to use it in both parent and child tables? We used only hard deletion in a parent entity.

Now I added it to the parent entity as well and it worked.

Thanks

Showing 11 to 20 of 102 entries
Made with ❤️ on ABP v9.1.0-preview. Updated on November 20, 2024, 13:06