1 Context:
In this step, we will integrate the first screen into our app's view. To do this, we will utilise menu functions and the menu structure once again. First, we will create functions and then add them to the menu structure. Then, we will look at how the application looks like from the user's perspective. To achieve this, we will create a dedicated user and start the application with their account.
2 Result:
3 Step by step guide:
3.1 Create a menu function
- Navigate to the section âLogicalizeâ -> âActionsâ and click on â+ Create Actionâ
- âFunction Nameâ -> âLaunchOrderOverviewâÂ
- âFunction Type â -> âAkioma.Swat.Studio.Menu.Actionâ
- âFunction Codeâ -> âLaunchOrderOverviewâ
- Icon -> âfad fa-cart-arrow-downâ
- âModuleâ -> âMyAppModuleâ
- Once created, in the Action designer (after closing the screen that is being opened after the creation of the action):
- âType of Actionâ -> âLaunchâ
- âScreen to be launchâ -> âOrderOverview_yourNameâ â ď¸ (Name of your screen)
- Select âSaveâ and close the window
Here you define which screen will be launched
3.2 Create a menu structure
- Navigate to âDesignâ -> âMenusâ click on âShow root menusâ and select the âBuildOne Applicationâ
- Select your app folder in the folder structure, then click on âAdd as sublevelâ, call it âMySidebarâ and fill in the Menu Structure Code âMySidebarâ
- Select your newly created group âMySidebarâ in the section âNew Entryâ in the dropdown âItemâ and click on âAdd as sublevelâ
- Call it âOrder Overviewâ and select your âActionâ -> âLaunchOrderOverviewâ
- Select âSaveâ and copy the âMenu Structure Codeâ of your folder âMySidebarâ.
- Close the menu screen
3.4 Configure your app object and launch your app
- To change the sidebar we need to modify the App object, to do so, navigate to âDesignâ â âAll Objectsâ
- Search for the âMyAppâ and open the Object Designer for it
- Change the attribute value of âMainMenuCodeâ to the menu structure code of your screen group âMySidebarâ
- Go to âDesignâ â âApplicationsâ , select your application and click on âLaunch Appâ
4 Explanation:
It is possible to create and manage multiple apps in B1. What we just did was to integrate our screen into its own app and then start the app.