Käyttäjän "nabass" toiminnot

Kysymys

hi sir if i want to write some text or bind a property from C# code how can i get this part of page where can i find this code ??

  • ABP Framework version: v8
  • UI Type: MVC
  • Database System: EF Core (SQL Server)
Kysymys

Good Morning hope you are well i have a question about handling business exception when i enter the page index it gives me an error (image below) despite i tried it the same code same steps same functionality into create popup it works good so does framework support this type of exception when i open the index or just work within create or edit?

  • ABP Framework version: v8
  • UI Type: MVC
  • Database System: EF Core (SQL Server)
Vastaus

i solved it thanks tag must be like this: without (/) <h5>@L["OpeningYearPeriod"].Value</h5>

thanks for efforts

Vastaus

hi Anjali,, it will not take the value into localization it will take the value within the tag it means that if i change the localization of this item no effect will happen

Vastaus

it's a company project i cant send it even if they allowed me because the size of it you can try any open project on your PC put <h5> or any tag not starts with <abp> it will not work <p> tag <a> tag <h1> tag ..... etc

Vastaus

no thing shows same as i don't put a tag and if i put it into tag itself the output will be:====> ["Opening Year / Period:"]

Kysymys

hi sir i noticed that localization just work within <abp> tags i tried to put it into <h5> tag but it doesn't work

  • ABP Framework version: v8
  • UI Type: MVC
  • Database System: EF Core (SQL Server)

i solved it thank you if any one faced the same problem here is the solution -- make like CreateModel page syntax example: into class (Index.cs) public abstract class IndexModelBase : AbpPageModel { [BindProperty] public JournalVoucheraIndexViewModel JV { get; set; } public List<SelectListItem> CurrencyIdFilterMin { get; set; } = new List<SelectListItem> { new SelectListItem("-",null) }; private readonly ICurrencyAppService _currencyAppService; public IndexModelBase(ICurrencyAppService currencyAppService) { _currencyAppService = currencyAppService; }

 public virtual async Task OnGetAsync()
 {
     CurrencyIdFilterMin.AddRange((
                   await _currencyAppService.GetCurrencyLookupAsync(new LookupRequestDto
                   {
                       MaxResultCount = LimitedResultRequestDto.MaxMaxResultCount
                   })).Items.Select(t => new SelectListItem(t.DisplayName, t.Id.ToString())).ToList()
       );
 public class JournalVoucheraIndexViewModel : JournalVoucherDto
 {

 }

}

====================== into (index.cshtml) <abp-select asp-for="JV.CurrencyId" asp-items="Model.CurrencyIdFilterMin" label="@L["MinCurrencyId"].Value" />

hi sir i faced a problem with making a select into advanced filter i made a page using suite by default it creates an index page with advance filter i want some of field no to be just input no i want it select option here is my steps and the final result

  • ABP Framework version: v8
  • UI Type: MVC
  • Database System: EF Core (SQL Server)

hi sir i solved the problem it was in the Http controller in [HttpGet] method i was send {id} wrong way thanks for efforts and you can close the Q thanks

Näytetään 11 - 20/66 tietueesta
Made with ❤️ on ABP v8.2.0-preview Updated on maaliskuuta 25, 2024, 15.11