Hi maliming,
We also need to add new text dynamically. Could you please let us know how to refresh the Cache in the Code.
**"Use IRepository<ApplicationLanguageText, long> to dynamically add new text, remember to refresh the cache. **"
HI , Please find the attached json for the entity. We have also attached the line no in screenshot.
Json:
{
"IsRegenerate": false,
"MenuPosition": "admin",
"RelativeNamespace": "OEISListingTemps",
"EntityName": "OEISListingTemp",
"EntityNamePlural": "OEISListingTemps",
"TableName": "OEISListingTemp",
"PrimaryKeyType": "int",
"BaseClass": "FullAuditedEntity",
"EntityHistory": false,
"AutoMigration": false,
"UpdateDatabase": false,
"CreateUserInterface": true,
"CreateViewOnly": true,
"CreateExcelExport": true,
"IsNonModalCRUDPage": false,
"IsMasterDetailPage": false,
"PagePermission": {
"Host": false,
"Tenant": false
},
"Properties": [
{
"Name": "Identifier",
"Type": "string",
"MaxLength": -1,
"MinLength": -1,
"Range": {
"IsRangeSet": false,
"MinimumValue": 0.0,
"MaximumValue": 0.0
},
"Required": false,
"Nullable": false,
"Regex": "",
"UserInterface": {
"AdvancedFilter": true,
"List": true,
"CreateOrUpdate": true
}
},
{
"Name": "URI",
"Type": "string",
"MaxLength": -1,
"MinLength": -1,
"Range": {
"IsRangeSet": false,
"MinimumValue": 0.0,
"MaximumValue": 0.0
},
"Required": false,
"Nullable": false,
"Regex": "",
"UserInterface": {
"AdvancedFilter": true,
"List": true,
"CreateOrUpdate": true
}
},
{
"Name": "PlatformVersion",
"Type": "string",
"MaxLength": -1,
"MinLength": -1,
"Range": {
"IsRangeSet": false,
"MinimumValue": 0.0,
"MaximumValue": 0.0
},
"Required": false,
"Nullable": false,
"Regex": "",
"UserInterface": {
"AdvancedFilter": true,
"List": true,
"CreateOrUpdate": true
}
},
{
"Name": "Version",
"Type": "string",
"MaxLength": -1,
"MinLength": -1,
"Range": {
"IsRangeSet": false,
"MinimumValue": 0.0,
"MaximumValue": 0.0
},
"Required": false,
"Nullable": false,
"Regex": "",
"UserInterface": {
"AdvancedFilter": true,
"List": true,
"CreateOrUpdate": true
}
},
{
"Name": "APIVersion",
"Type": "string",
"MaxLength": -1,
"MinLength": -1,
"Range": {
"IsRangeSet": false,
"MinimumValue": 0.0,
"MaximumValue": 0.0
},
"Required": false,
"Nullable": false,
"Regex": "",
"UserInterface": {
"AdvancedFilter": true,
"List": true,
"CreateOrUpdate": true
}
}
],
"NavigationProperties": [],
"NavigationPropertyOneToManyTables": [],
"EnumDefinitions": [],
"DbContext": null
}
Hi,
Any update on my ticket please?
Regards, Mahendra
Didn't see any option to attch the files....
I am sending an email with attachement requested...
Regards, Mahendra
Hi ismcagdas,
Please find attach the class file for background job. I am also attaching the appNotifier class (I thought you may require it to see the failure notification).
In the Background job, we are essentially importing the master data from excel that user has imported.
Actual import happens in "ImportExcelData" function from where, corresponding master AppService method is called. Once import is done (that is control returned from corresponding master AppService, we are calling "ProcessImportStatus" method.
Inside "ProcessImportStatus" method, conditionally we are sending success notification or failure notification.
Below line is for failure notification.
await _appNotifier.ExcelImportStatus(args.User, file.FileToken, file.FileType, file.FileName);
and below line is for success notification.
await _appNotifier.SendMessageAsync(
args.User,
"Data Imported Successfully :" + args.ExcelFileName,
//_localizationSource.GetString("SuccessfullyImportedFromExcel"),
Abp.Notifications.NotificationSeverity.Success);
Hi Expert,
Any thought on my above query...
Regards, Mahendra
This has been fixed....please don't bother
Not getting any error in Server's log.txt file