Base solution for your next web application
Ends in:
01 DAYS
01 HRS
01 MIN
01 SEC

Activities of "moonch"

Prerequisites

  • What is your product version? Latest
  • What is your product type (Angular or MVC)? MVC
  • What is product framework type (.net framework or .net core)? .NET6

Dear Customer Support. I am developing a multi-tenant application with one shared database. What I would like to achieve is for all new tenants once they create an account they can view SAMPLE data inside the application, this will help them better evaluate the product instead of looking at pages blank of any data. To achieve this I can think of some scenarios. 1- Load Data dummy data created in View Models. Pros • Tie it to the edition, so if the edition is free, this dummy data is visible, if not free then not visible. • No need to seed data into the database. Cons • CRUD operations cannot be performed. Adding, Deleting, or editing items is not possible. This will break the code, Items have no Ids.

2- Seed Sample Data for each Tenant on Tenant creation. Pros • Allows tenants complete control over sample data that holds their unique tenant Id. Cons • Duplicated data on one database.

3- Sample Data is available to the Default Tenant. And loaded to every other tenant by Switching Between default and Tenant Pros • Sample Data is available only once. • CRUD operations are possible but require code adjustment to switch between Cons • Changes to data by one tenant are then visible to all other tenants.

The Ideal scenario

  • Any Tenant can view sample data and play with it whether by adding or editing any of its items. Changes are visible to tenants momentarily.
  • If the tenant logs out, and logs again the original version of the sample data reappears. The need to save changes permanently is not necessary.
  • This data is included once in the shared database.

Any Ideas on the above, some features in ABP that could facilitate achieving the desired outcome, or any examples your customers performed to achieve a similar outcome? Any help is appreciated. Thanks.

  • What is your product version? .NET6
  • What is your product type : JQUERY CORE MVC
  • What is product framework type : .NET6

Dear Customer support, I am getting the following error on ConfirmPayment inside the PayPalPaymentAppService, please see attached image, although the payment record is commited AppSubscriptionPayments Db. Using localhost and sandbox test account.

your help is appreciated.

  • What is your product version? MVC Core
  • What is your product type (Angular or MVC)?
  • What is product framework type (.net framework or .net core)? .net 6

Dear Customer support.

I have the following issue, 1- the user clicks the log in from the Public web site. 2- redirected to the account/login in the Admin web site. 3- Logs in and returns loged user to the Public website. !!! Please attached Image. 4- If he pressses the Back Button, he is re-directed to Tenant Dashboard which is the right page that should be after 2.

If the user Logs out. and relogs in, this will not happen agian, he is redirecrted correctly from the account/login page to the Tenant Dashboard. so the above only happens if the user trys to log in from the public website.

step-1

step-2

step-3

step-4

the following is the

1- In the Web MVC Project

appsetting.json appsetting.Production.json

"App": { "WebSiteRootAddress": "https://www.archflowsapp.com/", "RedirectAllowedExternalWebSites": "https://www.archflows.com/" }

2- In the Web Public Project

appsetting.json appsetting.Production.json

"App": { "WebSiteRootAddress": "https://www.archflows.com/", "AdminWebSiteRootAddress": "https://www.archflowsapp.com/" }

each domian points to azure app service in azure portal.

Product version: Asp Net Core, JQuery, .NET 6

Dear Customer Support. I amd getting Validation errors with Double and Decimal values when culture is not English:

Abp.Runtime.Validation.AbpValidationException: Method arguments are not valid!

For example if the cuture is set for Arabic, and for DataTypes Double we try to post a value 1.5 , this throws an error 500, the Value 1.5 is not valid, same is Ok for Whole Numbers, so for example 1.0 does not throw this error.

I looked into the forum and i found this thread from three years ago, where this issue was raised and it was mentioned that it was Fixed in 1.7.2 release. However in my project, I am using latest zero version I am still getting the error.

[Forum Link](https://support.aspnetzero.com/QA/Questions/6318/ValidationError-with-datatype-Double)

  • Product version: Asp Net Core, JQuery, .NET 6

I am trying to perform localization on the server side in one Applization Service method, I have added the string into xml files

<text name="StageChangedTo">Stage Changed To:</text>

However when I call Get string from the injected _localizationManager

            var changeStageString = _localizationManager.GetString("StageChangedTo", "Archirox");

Error, localization source canot be fund... Note that the seconed parameter "Archirox" is the default xml name and soluation name.

Please Advice how to do localization on the server side. ?

  • version .NET 6
  • product type MVC Core
  • .NET Core

Making Ajax Post Trying to hit an action method for a controller in diferent area fails with 500 error. Same code was working in ABP Boilerplate and ASP NET Core Project but not in Zero, Also it works in case the ACTION method is in same Calling Controller. So URL without area works ok.

var model = { "SectionId": @FileUploaderConsts.HR_CV, "ParentId": recordId }; $.ajax({ type: "POST", url: '@Url.Action("Async_GetPdfFile", "DocumentsAndFiles", new { area = "DocumentManagement" })', dataType: "json", data: model, success: function (pdf) { alert("OK"); }

` [Area("DocumentManagement")] [Route("DocumentManagement/[controller]/[action]")] [AllowAnonymous] public class DocumentsAndFilesController : ArchiroxControllerBase {

    [HttpPost]
    [DontWrapResult]
    public async Task<DM_PDF_ViewModel> Async_GetPdfFile(DM_AdditionalFileInfo_ViewModel model)
    {
        return await _iDM_File_Handler_AppService.GetPdfBlob(model.ParentId, model.SectionId);
    }

` the url:"/DocumentManagement/DocumentsAndFiles/Async_GetPdfFile" is not being hit, however if the Async_GetPdfFile is local the POST is success. The logged in user is admin which has all the permissions, and i tried decorating the DocumentsAndFiles with [AllowAnonymous] to eliminate the possibilty of permission issues, the url construction looks OK, Please see attached image.

Your help is appreciated.

Product: Asp Zero ( Core + Jquery ) MVC, Multi Page, .NET 6.

Dear Support. I have a requirement in some pages of the application to include top navigation menu , where a user can navigate to other pages by clicking on links, please attached image. the ideal location is above the page abp-page-subheader, it will always be horizantal regardless of the theme selected in the visual settings, the items will need authorization permissions check similar to the main side menu items.

Looking at the three layer of which a view is constructed.

1- the Page View. 2- theme: _Layout : Default or any of the 12themes. 3- _Layout.cshtml in Layout folder

Please advise where to introuce this. if in layer 2 then do i need to configure new 13 layouts, or if just in layer (1) the page view. Please share code example if this was done in previos projects.

Showing 1 to 7 of 7 entries