Activities of "Buckoge"

Hi,

I didn’t think about that option 😊. I’ll definitely give it a try!

Thanks!

Yes thx, just a bit of additional context: I didn’t fully implement Mailming’s approach with filtering at the DbContext level. Instead, I applied the filtering directly on the page where it’s needed. This approach avoids reloading the page every time the user switches the organization. Instead, I dynamically filter the data table and other relevant elements, which works great for our needs.

In terms of business logic, when a new tenant is created, the user needs to create an Organization Unit and assign users or roles to it before they can proceed with their work. Typically, this setup happens only once when the application is first configured and is rarely changed after.

View component:

Usage:

Final:

I am having the same issue.

Hi,

Thank you for your response regarding the use of event handlers to refresh the Redis cache during CRUD operations on Organization Units. Your guidance has been helpful, and our backend implementation works perfectly now.

However, I realize that I didn’t fully explain the JavaScript-related part of my initial question. While I briefly mentioned JavaScript alongside C#, I was hoping to also receive some advice on how to handle UI updates dynamically on the front end.

In application, we have a toolbar icon that displays all Organization Units the user has permission to access. Inspired by Maliming's approach (Switching Between Organization Units), we’d like to ensure this UI element is updated dynamically when we add users or roles to Organization Units.

Specifically, we need following:

Is there a way to refresh this toolbar icon using JavaScript without requiring a full page reload?

If the above is not possible, is it possible to trigger a full page reload via JavaScript whenever we add or remove user or roles to Organization Units?

For example, using mechanisms like createModal.onResult() or listening for events such as $("#Form").abpAjaxForm().on('abp-ajax-success').

Any suggestions or recommendations for handling this functionality in line with ABP Framework best practices would be greatly appreciated.

If none of the above approaches are possible, we’ll simply explain to our end users that they need to press F5 to reload the page after adding users or roles. 😊

Thank you once again for your support.

  • ABP Framework version: v9.0.0
  • UI Type: MVC
  • Database System: PostgreSQL
  • Tiered (for MVC) or Auth Server Separated (for Angular): no
  • Exception message and full stack trace:
  • Steps to reproduce the issue:

I need guidance on implementing service calls (in either C# or JavaScript) to refresh the Redis cache via a custom service during CRUD operations on Organization Units. Specifically, I want to ensure that the cache is updated whenever:

An Organization Unit is created, updated, or removed. Users or Roles are added to or removed from an Organization Unit.

Additionally, I need a solution that allows me to call this service on submit, ensuring that it is triggered regardless of the specific operation or context (e.g., adding/removing users or roles, modifying organization unit details, etc.).

What would be the best approach to create such service calls?

I would appreciate explanations, examples, or references to relevant resources to implement this solution effectively.

Thanks.

Hi,

Subject: Issue with File Handling using new File Type in Create and Edit Modals (ABP Suite v8.3.1) MVC Razor Page

I’ve identified an issue related to file handling in the application while using ABP Suite v8.3.1. I followed the standard process by creating two properties—one for string and one for File—without making any manual changes to the generated code. Here are the specific issues:

File Submission: When a user selects a file for the first time on create modal, the file is saved as expected. However, if the user cancels the submit action on the modal, the file is not deleted.

File Deletion on Edit: In the edit modal, when a user clicks the delete button, it allows the user to select a new file, but the previously uploaded file is not deleted from the system.

I’m not sure if this is the correct place to report such issues, as I couldn’t find a dedicated section for ABP Suite bugs and fixes.

Hi Maliming,

Thank you for your response.

I understand the need for variables and expressions in the templates, which is a key reason for using text templates—to create dynamic documents (contracts, annex, invoices, etc.) that automatically pull data from the application. Additionally, they allow end-users to customize documents according to their needs.

We are aware that parts within {{ }} come from the application and should not be modified. For example:

 <p>
    Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec laoreet,
    dolor vel condimentum lobortis, lectus justo vehicula libero, ac suscipit quam lorem nec lacus.
    {{model.organization_name}}, lorem ipsum:
 </p>

However, our current text template becomes difficult to modify for documents that are several pages long—often 5, 6, or even more pages. I understand that implementing an HTML editor for text templates may not be a simple task, but it would significantly enhance working with these documents and provide additional flexibility for end-users.

We would appreciate it if you could consider this suggestion and explore the possibility of implementing such an improvement.

Thanks

HTML editor for Text Templates to enable end-users to easily edit text templates without requiring HTML knowledge. Example: HTML Editor Example

Ok, great thanks.

Ok, this is great for us it works.

If it's not a problem to tell me, we set the default language to Serbian, as you can see in the first picture, but always when we log in for the first time, it is English.

Thanks.

Showing 1 to 10 of 35 entries
Made with ❤️ on ABP v9.1.0-preview. Updated on December 13, 2024, 06:09