Learn More, Pay Less!
Limited Time Offer!

Activities of "Anjali_Musmade"

Answer

Hello darutter,

I got your point, I will check and get back to you asap.

Thank you, Anjali

Hello sanobarm@cloudassert.com,

Could you please check the similar issue https://support.abp.io/QA/Questions/5679 ?

If this doesn't help you then Please share your appsettings.json file of AuthServer and Host so that we can help you better.

Thank you, Anjali

Hello nanohealthserviceaccount,

Could you please share your appsettings.json file from AuthServer and environment.ts file from Angular so that we can help you better.

Thank you, Anjali

Answer

Hello darutter,

I have followed the below steps to get the desired output:

  1. I have created Entity Person -> Name, Address, City, State, PostalCode
  2. Second Entity ItemSet1 -> Name, Data
  3. Third Entity ItemDataSet2 -> Name,Data
  4. I have added Navigation (1tomany) from Person to ItemSet1 and ItemDataSet2.
  5. I have used below API to exporttoexcel
 public virtual async Task<IRemoteStreamContent> GetListAsExcelFileAsync(PersonExcelDownloadDto input)
        {
            var downloadToken = await _excelDownloadTokenCache.GetAsync(input.DownloadToken);
            if (downloadToken == null || input.DownloadToken != downloadToken.Token)
            {
                throw new AbpAuthorizationException("Invalid download token: " + input.DownloadToken);
            }

            var people = await _personRepository.GetListWithNavigationPropertiesAsync(input.FilterText, input.Name, input.Address, input.City, input.State, input.PostalCodeMin, input.PostalCodeMax);
            var items = people.Select(item => new
            {
                Name = item.Person.Name,
                Address = item.Person.Address,
                City = item.Person.City,
                State = item.Person.State,
                PostalCode = item.Person.PostalCode,

                Itemset1 = item.Itemset1?.Item1Name,
                ItemDataset2 = item.ItemDataset2?.Item2Name,

            });

            var memoryStream = new MemoryStream();
            await memoryStream.SaveAsAsync(items);
            memoryStream.Seek(0, SeekOrigin.Begin);

            return new RemoteStreamContent(memoryStream, "People.xlsx", "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet");
        }
  1. After running application I am getting output like

  1. I am getting following excel file after exporting

Please do let me know if anything else is needed.

Thanks, Anjali

HI,

thanks for the information we will reproduce this on our end and get back to you asap

Thanks

Hello Zuwaina,

To re-install yarn use following steps :-

  1. Delete yarn.lock file
  2. Run yarn

Please do let me know if anything else is needed.

Thank You, Anjali

Hi

can you try with port number 636 ?

Hi

You can check this file as example OpenIddictDataSeedContributor.cs it is seeding the openiddict clients. to have multiple transaction you can check this doc related to Unit of work https://docs.abp.io/en/abp/latest/Unit-Of-Work#begin-a-new-unit-of-work

https://docs.abp.io/en/abp/latest/Data-Seeding

Hello vu.dh@veek.vn,

Closing the ticket as mentioned above issue is resolved.

Thank you, Anjali

Hello Sergei.Gorlovetsky,

Thank you l got the access, we will check and get back to you asap.

Thank you, Anjali

Showing 1161 to 1170 of 1341 entries
Made with ❤️ on ABP v9.2.0-preview. Updated on February 17, 2025, 05:40