Base solution for your next web application

Activities of "marble68"

Based on responses to other people, do we override the EntityHistoryHelper or EntityHistoryHelperBase?

After more digging - I apparently just need to replace the native EntityHistoryHelper with my own - but there's already a static object with the same name in the project in core project.

I think it should be in the entityframeworkcore module - as that's where dbcontext lives.

In the framework core, I have MyEntityHistoryHelper and everything looks good. In the entityframeworkcore module, I replace IEntityHistoryHelper with MyEntityHistoryHelper.

Everything compiles and runs, but my entityhistoryhelper functions aren't called.

Where do I do my configuration override?

V11.3 MVC Core

I have entities with properties that could contain information that shouldn't be stored transparently in the logs.

In digging for securing history property values - It looks like I'd need to extend the EntityHistoryStore from here:

EntityHistoryHelper.cs

Specifically, during the changeset creation process.

For Audit logging - the JSON posted is stored (I'm not storying sent values) potentially contains sensitive information.

I'm thinking I should override the auditing helper from here:

AuditingHelper.cs

For properties, I'd examine the entity type and if it had a particular property (securelogs, regardless of value), it would mask the previous and new values in the history.

For audit logs, perhaps I'd put a regex in the secure logs and anything matching that regex would be masked in the raw JSON?

I'm not sure of the best approach to this. Because the data needs to be audited and history tracked due to the nature of the data, I need this information. However, because of the nature of the data, I don't want the actual values visible in the logs.

What would be the best approach would be to add an attribute to the property for masking the data, I suppose - but I first need to determine how, in my project, I can intercept the auditing and history to ensure data matching my pattern is masked in the JSON value auditing logs - and also masked in the property change history.

Any guidance is most appreciated.

Answer

Might check if you're running as administrator and your yarn install is to your account (if not logged in as administrator)?

V11.3 MVC Core

I am trying to regenerate an entity and add IsDeleted.

My project compiles without issue.

The RadTool opens a command window but doesn't do anything.

I ran it from the command line, and I get: An error occured. : Object reference not set to an instance of an object.

I don't know where the rad tool log file is. There's nothing in the windows event log.

Question

General question - but I'm on 11.3 MVC Jquery

To change a tenancyname - can I just update the database? Don't find a place in the UI to do it, so I'm not sure if there are unforeseen consequences to this.

Thanks!

Answer

type-o

Question

V11 MVC Jquery

In trying to use a lookup modal in the registration process, I'm able to get everything working except when the user clicks select.

I'm still digging - but does anyone know what script I need to include in the account layout bundle that handles lookup modals?

I finally figured it out -

There were more than just datatables that I needed to include.

FWIW - if it helps anyone - here's the full bundle:

    {
      "output": "view-resources/Areas/App/Views/_Bundles/account-datatables.min.js",
      "input": [
        "wwwroot/Common/Scripts/Datatables/datatables.ajax.js",
        "wwwroot/Common/Scripts/Datatables/datatables.defaults.js",
        "wwwroot/Common/Scripts/Datatables/datatables.record-actions.js",
        "node_modules/datatables.net/js/jquery.dataTables.js",
        "node_modules/datatables.net-bs4/js/dataTables.bootstrap4.js",
        "node_modules/datatables.net-select/js/dataTables.select.js",
        "node_modules/datatables.net-responsive/js/dataTables.responsive.js",
        "node_modules/datatables.net-responsive-bs4/js/responsive.bootstrap4.js"

      ]

v11.3 Jquery MVC


As part of a user registration, I am trying to walk the user through a wizard (using Metronic's stepper).

Part of this is I need to bring up a modal and to use DataTables.

I've gone through bundles - made sure Jquery is loading in account-layout - and DataTables is included in common-scripts after that.

However, when I load the login page, in the console $.fn.dataTable is undefined.

If I login, $.fn.dataTable exists.

I had a similar issue with stepper, but added it to my bundle for this specific page with success. I've verified DataTables is arriving in common scripts, and I know from the Layout.cshtml file for the Account view that jquery is loaded before.

Is there something I'm missing, or that I have to do to 'initialize' datatables into the document so my modal will leverage it? Traditionally, I've just made sure jquery & datatables were downloaded to use it.

Thanks

Showing 11 to 20 of 238 entries