i'm going to try
sir i want to start from scratch just create an ABP Angular application without server-side i already have API i want to put it into new ABP Angular application because when i put the api server link i got this conflict i think this is because server side which created with angular so let's forget about it and i got an API link i want to use it into ABP Angular application is there a command to do this or i must create both together server-side and client-side
i am sure there is a way to do this because it's not logic to create server side with client side what if i want to use just ABP Angular with it's features ? i will get API From another place so what i must do?
hi liangshiwei
there is no errors just error console
what i did is creating simple project using ABP and create proxy according documentation and it works
but when trying to change apiUrl as shown from another machine (we already created another big project) to use it's API
i got this error so is there a file or code i should put within specific place to allows me put any API and it will work
or what should i do?
i am sure there is a way to do this because it's not logic to create server side with client side what if i want to use just ABP Angular with it's features ? i will get API From another place so what i must do?
hi, i have an error using Angular thanks to ABP allows me mapping between UI & server side in proxy and it created api automatically but what if i want to create my own service?? so i tried an api from another server in img 1 then used it as img 2 but i got that error so what should i do to access this api? after searching i found this code into ConfigureServices img 3 and put it within my machine and machine which has server both not working
this sample of code to get data according to selected culture //====================================================== var cultureName= CultureInfo.CurrentCulture.Name; var dbContext = await GetDbContextAsync();
var result = (await GetDbSetAsync()) .Join(dbContext.Set<JournalVoucherStatusCulture>(), journalStatus => journalStatus.Id, journalStatusCulture => journalStatusCulture.VoucherStatusId, (journalStatus, journalStatusCulture) => new { journalStatus, journalStatusCulture }) .Where(a => a.journalStatus.JournalStatusTitle.Contains(fiscalYearStatusTitle) && a.journalStatusCulture.CultureId == cultureName) .Select(x => new JournalStatusCul { Id = x.journalStatus.Id, JournalStatusTitle = x.journalStatusCulture.JournalStatusTitle != null ? x.journalStatusCulture.JournalStatusTitle : x.journalStatus.JournalStatusTitle });
Thank you for quickly response : and it is working with me after but this line System.Threading.Thread.CurrentThread.CurrentCulture = System.Globalization.CultureInfo.InvariantCulture; in webModule but there is another error because i use this line in my services var cultureName = CultureInfo.CurrentCulture.Name; and check if cultureName =='ar' do somthing, but now this variable cultureName gives me empty string , could you please advice .