Note: Watch both videos in this module to learn how to create reusable navigation components and configure their logic in redSling.
Template Fragment Details – Click Here
Welcome to the redSling Training Portal.
In this module, we’ll build the navigation framework for the Smart Vendor and Procurement System. We’ll use the UI Builder to create and style the Left Navigation and Top Navigation as reusable Template Fragments, then use the Logic Builder to configure the Logout button and display the logged-in user’s information dynamically.
The module is divided into two videos. The first focuses on designing and organizing the navigation interface, including adding a Logout option to the left navigation. The second focuses on configuring the behavior behind the navigation elements, including clearing stored login information and retrieving user details when the Top Navigation loads.
In the first video, we’ll work with the navigation layout of the Smart Vendor and Procurement System. We’ll create reusable Template Fragments so the same navigation structure can be inserted across application pages, helping maintain a consistent interface and reducing repetitive design work.
We’ll begin by opening the existing Left Navigation in the UI Builder. The current navigation includes options such as Dashboard, Vendor, Procurement, Purchase Order, Asset and QR, Incident, and Finance. We’ll add a separate Logout option while keeping it consistent with the existing navigation structure.
You’ll learn how to:
Next, we’ll create a reusable Left Navigation fragment. Template Fragments allow common interface sections to be designed once and reused throughout the application.
You’ll learn how to:
After completing the Left Navigation, we’ll create the Top Navigation as another reusable Template Fragment. This header provides a consistent area for quick-access actions and user information.
You’ll learn how to:
By the end of the first video, you’ll have created the Left Navigation and Top Navigation as reusable fragments, and added a Logout option to the left sidebar’s interface.
In the second video, we’ll use the Logic Builder to define how the navigation behaves. We’ll configure the Logout button to clear stored login information before returning the user to the login page. We’ll also configure the Top Navigation to retrieve the stored login data and display the relevant user information when the page loads.
We’ll begin by opening the Logic Builder and reviewing the existing navigation events. The current navigation buttons already have Click events configured to navigate to their respective pages—for example, the Dashboard button navigates to the Dashboard page, and the Vendor button navigates to the Vendor page.
Next, we’ll configure the Click event for the newly added Logout button. The logout flow will remove stored login information and then navigate the user back to the login screen.
You’ll learn how to:
The resulting flow removes the logged-in user information from Local Storage, removes the relevant session information, and then navigates the user to the login page.
Next, we’ll configure the Top Navigation to populate user information dynamically. Instead of showing a fixed name, the logic will retrieve the stored login data, parse it, extract the required property, and use that value to update the selected component.
You’ll learn how to:
When the Top Navigation loads, the application retrieves loginData from Local Storage, parses the stored string, extracts the required user property, and displays that value in the selected component. This allows the navigation to show information associated with the current login rather than a hard-coded user name.
By completing both videos, you’ll learn how to:
With the interface and logic in place, the Smart Vendor and Procurement System has a reusable navigation framework, a configured logout flow, and a Top Navigation that can display the current user’s information.
#redSling #redSlingTraining #TemplateFragments #LogicBuilder #UIBuilder #NoCodeDevelopment #LeftNavigation #TopNavigation #SmartVendor