Hi, I want to post on the Metronic theme forum, however, they requested the license code. I don't believe we have as users have access to that license, correct?
I am not sure you can help me.
There is a file called components-md.css, I believe, this is the CSS for Angular Material. There is a bug in the Angular Material Design and the fix requires upgrading the css and js files.
I want to ask, is that file a pure AMD or it is custom? If it is AMD, then I can simply replace the new CSS file on top.
Hope you can help on this,
Regards Bilal
Hi, I am using ui-bootstrap datepicker.
When the calendar appear, its shape is deformed due to css overrides by component-md.css. Is there a way not to let components-md.css affect the css for the calendar?
See attachment pls
<div class="form-group form-md-line-input form-md-floating-label no-hint">
<input type="text" ng-click="opened=true;" class="form-control" name="DateofBirth"
uib-datepicker-popup="{{format}}" ng-model="vm.dob" is-open="opened" datepicker-options="dateOptions"
close-text="Close" />
<label>Date of Birth</label>
</div>
<div>
<span class="help-block text-danger" ng-show="pocf.DateofBirth.$invalid && pocf.DateofBirth.$dirty">@L("InvalidDate")</span>
</div>
Hi,
I am using the daterangepicker as a single value not range.
I am seeing weird behaviour when form loads first time (as shown in the attachment). If later I select a date, it works fine.
<div class="form-group form-md-line-input form-md-floating-label no-hint">
<input date-range-picker type="text" options="vm.dateRangeOptions" min="vm.dateRangeOptions.min" max="vm.dateRangeOptions.max" class="form-control date-picker" ng-model="vm.dob" />
<label>Date of Birth</label>
</div>
Hello, Is there a way to configure the app to send out emails when exceptions (Internal Server Errors 500) occur?
If not, can you guide me what components might be used and how could such thing be built? I can contribute to building it.
Regards Bilal
Hi,
In one of the cases, I have a createModal and editModal. They both share the same form. So I thought of grouping the form in one single cshtml and load it inside both modals with:
<div ng-include="/App/tenant/views/refdata//createOrEditModal.cshtml" />
I can see with the Google Chrome developer tools that there is no request to server to bring in the cshtml file.
I've done this before outside this framework and works well.
Any idea?
Regards Bilal
Hi,
In an AppService, I have this code:
var query = _manager.Shelters
.WhereIf(
!input.Filter.IsNullOrWhiteSpace(),
t =>
t.ShelterCode.ToLower().Contains(input.Filter.Trim().ToLower()) ||
t.ShelterSubCode.ToLower().Contains(input.Filter.Trim().ToLower())
);
The _manager.Shelters is defined in the manager as:
public virtual IQueryable<Shelter> Shelters { get { return _repository.GetAll(); } }
Now, if I hover over query above, it says it is of type IEnumerable<Shelter>. I want it to stay IQueryable<Shelter> so that I can do additional filtering, sorting, etc.
I tried to remove (WhereIf), then if I hover over query it displays IQueryable<Shelter>
The same code used in TenantAppService, works fine there. Am I missing any namespace reference?
Thanks
Hi, I am getting the following exception when running Update-Database. any idea why?
PM> Update-Database
Specify the '-Verbose' flag to view the SQL statements being applied to the target database.
No pending explicit migrations.
Running Seed method.
System.Runtime.Serialization.SerializationException: Type is not resolved for member 'Abp.AbpException,Abp, Version=1.4.2.0, Culture=neutral, PublicKeyToken=null'.
at System.AppDomain.DoCallBack(CrossAppDomainDelegate callBackDelegate)
at System.Data.Entity.Migrations.Design.ToolingFacade.Run(BaseRunner runner)
at System.Data.Entity.Migrations.Design.ToolingFacade.Update(String targetMigration, Boolean force)
at System.Data.Entity.Migrations.UpdateDatabaseCommand.<>c__DisplayClass2.<.ctor>b__0()
at System.Data.Entity.Migrations.MigrationsDomainCommand.Execute(Action command)
Type is not resolved for member 'Abp.AbpException,Abp, Version=1.4.2.0, Culture=neutral, PublicKeyToken=null'.
hi,
I am checking the code for Module Zero to follow your best practices in writing new custom code.
I noticed 2 ways of writing Create or Update code. I know both work great, but is there a preference to which one to use?
Thanks
First way:
public virtual async Task<IdentityResult> CreateAsync(TTenant tenant)
{
if (await TenantRepository.FirstOrDefaultAsync(t => t.TenancyName == tenant.TenancyName) != null)
{
return AbpIdentityResult.Failed(string.Format(L("TenancyNameIsAlreadyTaken"), tenant.TenancyName));
}
var validationResult = await ValidateTenantAsync(tenant);
if (!validationResult.Succeeded)
{
return validationResult;
}
await TenantRepository.InsertAsync(tenant);
return IdentityResult.Success;
}
Second way:
[UnitOfWork]
public virtual async Task AddAsync(ApplicationLanguage language)
{
if ((await GetLanguagesAsync(language.TenantId)).Any(l => l.Name == language.Name))
{
throw new AbpException("There is already a language with name = " + language.Name);
}
using (_unitOfWorkManager.Current.SetTenantId(language.TenantId))
{
await _languageRepository.InsertAsync(language);
await _unitOfWorkManager.Current.SaveChangesAsync();
}
}
Hello, Can you please refer me to the source code in the framework where you implement some business rules? I want to see how to implement that in terms of classes and interfaces, etc.
Thanks Bilal
Hi, I am looking at the database and I cannot see the table that it stores the mapping between Roles and Permissions. Can you guide me please.
Thanks