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, please use the search on the homepage.
If you're creating a bug/problem report, please include followings:
- ABP Framework version: v4.3.3 - updated v7.0.1
- UI type: Angular
- DB provider: EF Core / Mssql
- Tiered (MVC) or Identity Server Separated (Angular): no
- Exception message and stack trace:
- Steps to reproduce the issue:"
"After upgrading the project, the lookup methods in the Pop-up are empty. I initially thought the issue was frontend-related, but it turned out to be API-related. The method being called returns a 500 error code as a response. It was working fine before the upgrade. Could there have been an issue during the upgrade? How can I resolve this?"
I'm waiting for your help.
28 Answer(s)
-
0
getCityData(input:PageQueryParams){ return this.service.getCityLookup(input) }
hocam getFn methodu 1 tane parametre aliyor. o parametrenin degerleri
interface PageQueryParams { filter?: string; sorting?: string; skipCount?: number; maxResultCount?: number; }
sizin methodunuzun degeri LookupRequestDTO o da Id ce displayName aliyor. Ben olsam componente bir method ekler
getFn({filter}:PageQueryParams) { return this.service.getCityLookup(filter); }
derdim. LookupRequestDTO , PageQueryParams a benzer degerler icersede TS cast edemiyor. zaten bize basitce filter lazim. onu da gonderirseniz calisir/
-
0
-
0
getFn({filter}:PageQueryParams) { return this.service.getCityLookup(filter); }
componente dediğiniz gibi bir metod tanımladığımda şöyle bir hata alıyorum
Hocam typescript uyari ile aslinda derdiniz anlatmis. Type uyumsuzlugu var. Beklenen deger ile sizin atadiginiz deger uygun degil
function yourFunctionName({filter}:LookupRequestDto){ //... }
gibi yazabilirsiniz