hi sir i have a small problem using InitialSelect2 function when i try the code without red rectangle scope it works good save the record correctly and when i repute the scope it gives me the shape which exactly i want (green rectangle) but save button will stop why ?? no errors on log no exception no nothing just click on save nothing happen if i remove the red scope it works good i don't know where is the error
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?
i solved it thanks tag must be like this: without (/) <h5>@L["OpeningYearPeriod"].Value</h5>
thanks for efforts
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
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
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:"]
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" />