70
Views
4
Comments
Header & Sidemenu loading on Screen Navigation
Application Type
Reactive

I'm beginner to Outsystem facing difficulties in designing dynamic sidemenu & header

Basically i have two issues

1. On click header menu sidemenu is loading every time (Where sidemenu is dynamic i.e  it is coming form backend entities)

2. Not able align a logo on collapse sidemenu & expand

As now i want it as fixed header & expandable ,collapse side menu  on click of header menu i want load sidemenu content dynamic 

on click of sidemenu navigate to respective screen

I'm attaching random example screen found in internet I'm expecting this way  with icons on side menu and fixed header collapse side menu on click hamburger


I'm attaching SC of our project how it is behaving on my design

1. On click on Settings Side menu is loading dynamic

          a. On click Supplier Supplier Details Screen is loading and also header is refreshing 

          b. On click Supplier onboarding  Supplier onboarding   Screen is loading and also header is                             refreshing 

Their is gap on collapse side menu i don't want that to happen

Static Entity for top menu

Static Entity for Side menu


Side Menu Block 


I'm attaching .oml please help me to resolve the issue I'm facing


Advance Thanks





PIM_CORE1 2.oml
PIM_New.oml
UserImage.jpg
Anush Kumar

Guys please help me on this I'm really stuck 

2026-02-16 05-51-10
Sahana K
2025-02-20 06-37-09
Dinesh P

Hi Anush Kumar,

On click header menu sidemenu is loading every time for this issue in menu2 block you're refreshing GetSideMenusByTopMenuId static entity in OnRender action so that it will reload everytime and also in SupplierDashboard block while clicking top menu you're refreshing GetTopMenus static entity.

Not able align a logo on collapse sidemenu & expand for this issue you have to use display flex property to align a items in a single row.

2025-08-20 12-58-03
ADITI CHATURVEDI
AI Generated
  • Problem: Every time you click on a side menu item (like "Settings"), the menu is reloading, and the header is also refreshing.
  • Solution: You don’t want the whole page to reload just because you clicked on a menu item. Instead, use client-side actions or Ajax to load the side menu items without refreshing the entire page. This way, only the content related to that menu will change, but the header stays intact.


  • Problem: The logo looks weird or out of place when the side menu is collapsed.
  • Solution: To fix this, use CSS Flexbox to make sure the logo stays centered or aligned properly no matter what. Flexbox will make sure the logo behaves the same way whether the side menu is collapsed or expanded for this you can use this CSS :-

.header-logo {

    display: flex;

    justify-content: center; 

    align-items: center;

}


  • Problem: You want a fixed header and a side menu that expands and collapses when you click on the hamburger icon.
  • Solution: In OutSystems, you can easily set up a fixed header with a static position. For the expandable side menu, just use OutSystems' navigation widgets and add a simple toggle action to show/hide the side menu. You can use some CSS transitions to make it look smooth:


.side-menu {

    width: 250px; 

    transition: all 0.3s ease;

}

.side-menu.collapsed {

    width: 0px;

}

Then, use a client action (like JavaScript or OutSystems logic) to toggle the .collapsed class when the hamburger button is clicked.


Navigating to the Right Screen

  • Problem: When you click a side menu item, it should take you to the correct screen.
  • Solution: Use Navigation Actions in OutSystems. When you click on a side menu item, just use the Navigate action to load the appropriate screen,

$public.Document.location = '/SupplierDetails';


Preventing Gaps on Collapsed Side Menu

  • Problem: You’re seeing a gap when the side menu is collapsed.
  • Solution: This happens when the side menu’s width isn’t properly adjusted when it’s collapsed. Use CSS to hide or shrink the side menu when collapsed, so it doesn’t leave any unwanted gaps:

.side-menu.collapsed {

    width: 0px;    

    visibility: hidden; 

}

 

This answer was AI-generated. Please read it carefully and use the forums for clarifications
Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.