Starts in:
2 DAYS
20 HRS
7 MIN
23 SEC
Starts in:
2 D
20 H
7 M
23 S

Activities of "drenton"

Going further i tried displaying "My account" and "security logs" by below code this is the result by commenting (else if (context.Menu.Name == StandardMenus.User). still user profile is unclickable . then click security logs. i can see the menu at security logs page .

Any help will be appreciated here Thanks in advance

Thanks for your reply. I had upgraded existing application using the guidelines in https://docs.abp.io/en/abp/latest/Migration-Guides/Upgrading-Startup-Template. followed steps like Create 2 solutions for old and new version, upgrade old(4.4.0) to desired version(6.0.0). then i compared both the versions and Applied necessary changes manually, finally running "abp bundle" (no errors generated here) Application upgraded successfully w.r.t functionality but LeptonX theme has some issue in Menu i am not able to click user profile and display menu items like Logout, My profile etc

UserMenu contributor looks like below

MenuConfiguration in BlazorModule.cs

Surprisingly there is no User menu implementation provided in documentation(https://docs.abp.io/en/commercial/6.0/themes/lepton-x/blazor?UI=Blazor#main-header-toolbar-1) for Blazor WASM, just like we have in MVC UI

it will be helpful if i get some information on it.

  • ABP Framework version: v6.0.0
  • UI type: Blazor WASM
  • DB provider: EF Core
  • Tiered (MVC) or Identity Server Separated (Angular): yes
  • Exception message and stack trace: Logout button in UserMenu not working with LeptonXTheme, TopMenu in Blazor
  • Steps to reproduce the issue:" We recently upgraded from abp 4.4.0 to 6.0.0 . also upgraded Lepton Theme to LeptonX Theme. Top menu displays logged in user info, but on clicking the user menu no menu is displayed such as logout,
    is there something else i am missing?
MyAppMenuContributor : IMenuContributor
private async Task ConfigureUserMenuAsync(MenuConfigurationContext context)
    {
        var accountStringLocalizer = context.GetLocalizer<AccountResource>();
        var identityServerUrl = _configuration["AuthServer:Authority"] ?? "";

        context.Menu.AddItem(new ApplicationMenuItem(
            "Account.Manage",
            accountStringLocalizer["MyAccount"],
            $"{identityServerUrl.EnsureEndsWith('/')}Account/Manage?returnUrl={_configuration["App:SelfUrl"]}",
            icon: "fa fa-cog",
            order: 1000,
            null).RequireAuthenticated());

        context.Menu.AddItem(new ApplicationMenuItem(
            "Account.SecurityLogs",
            accountStringLocalizer["MySecurityLogs"],
            $"{identityServerUrl.EnsureEndsWith('/')}Account/SecurityLogs?returnUrl={_configuration["App:SelfUrl"]}",
            icon: "fa fa-cog",
            order: 1001,
            null).RequireAuthenticated());

        await Task.CompletedTask;
        
    }

Module.cs

private void ConfigureMenu(ServiceConfigurationContext context)
{
    Configure<AbpNavigationOptions>(options =>
    {
        options.MenuContributors.Add(new MyAppMenuContributor (context.Services.GetConfiguration()));
    });
}

The current licence includes 5 developers. It needs to be reduced to 3. The UI only allows for adding developers rather than reducing the count.

I just tested it on 4.4.4, and it works.

I will wait for v5 and update it all at once.

Thanks for your help.

Hi @enisn Below is how the menu is added.[This is generated by ABP Suite]

context.Menu.AddItem(
 new ApplicationMenuItem(
     HGFasTrackMenus.Opportunities,
     l["Menu:Opportunities"],
     url: "/opportunities",
     icon: "fa fa-file-alt",
     order: 3,
     requiredPermissionName: HGFasTrackPermissions.Opportunities.Default)
 );

And this is @page setting on opportunities.razor

@page "/opportunities"
@page "/opportunities/{contactOpportunityId}"
.
.
.

Opportunities.razor.cs

protected override async Task OnInitializedAsync()
{
    var uri = NavigationManager.ToAbsoluteUri(NavigationManager.Uri);

    if (QueryHelpers.ParseQuery(uri.Query).TryGetValue("contactOpportunityId", out var opportunityIdInString))
    {
            var opportunityId = Guid.Parse(opportunityIdInString);
            var opportunity = await OpportunitiesAppService.GetAsync(opportunityId);
            await RowDoubleClciked(opportunity);
            return;
    }
.
.
.
.

This is how I'm trying to navigate to the opportunities page with query string from another page.

NavigationManager.NavigateTo($"/opportunities?contactOpportunityId={newOpportunityCallbackArgs.OpportunityId}");

This opens opportunities page then select the record by ID that I passed, but the menu is not highlighted.

Without the query string, it works just like when I click "Opportunities" menu on the navigation menu.

NavigationManager.NavigateTo($"/opportunities");//Select menu

If you give me your email address, I think I can send you a template for this issue.

  • ABP Framework version: v4.4.0
  • UI type: Blazor
  • DB provider: EF Core
  • Tiered (MVC) or Identity Server Separated (Angular): no
  • Exception message and stack trace:
  • Steps to reproduce the issue:"
  1. Create two menus "A" and "B"
  2. Within menu(page) A, add a button that navigates to menu "B" by INavigationManager.
  3. call NavigateTo method with a query parameter.
  4. The B page is displayed but the selected menu is still "A" not "B"

I'd like to navigate to a specific menu with a query parameter and I also like the menu selected(highlighted)

NavigationManager.NavigateTo($"/companies?companyName=apple");// something like this.

this navigates to the companies page and works as I want but the Companies menu is not highlighted(selected).

To make it highlight, I alwasy need to call Navigates twice like below

NavigationManager.NavigateTo($"/companies");//This highlights Companies menu
NavigationManager.NavigateTo($"/companies?companyName=apple");// and I need to call this again.

Above code some times works and some times does not, I think it depends on how heavy loads are in OnInitializedAsync method.

Thanks! this works!

  • ABP Framework version: v4.4.0
  • UI type: Blazor
  • DB provider: EF Core
  • Tiered (MVC) or Identity Server Separated (Angular): no
  • Exception message and stack trace:
  • Steps to reproduce the issue:"

How can I NOT log SQL query syntax?

The log file size is huge and most of the text are from EFCore query.

Thanks @liangshiwei

That works wel ;)

Showing 1 to 10 of 24 entries
Made with ❤️ on ABP v9.1.0-preview. Updated on November 20, 2024, 13:06