In this example, pushbuttons are used to change the current directory. This means the location of where the LiquidUI will look for the scripts will change when the button is clicked. This is useful for testing and even is used when implementing if the user wants to keep the scripts separate based on scenarios.
LiquidUI Code:
C:\GuiXT\Tutorials\Forum\
clearscreen();
dirMain = 'C:\\GuiXT\\Tutorials\\Forum';
dirSalesOrders = dirMain + '\\SalesOrder\\';
dirNotifications = dirMain + '\\Notifications\\';
dirMaterials = dirMain + '\\Materials\\';
box([0,0], [4,109], "");
pushbutton([1,1],'@2V@Sales Orders','/nsession_manager/d1='+dirSalesOrders,{'size':[2,33]});
pushbutton([1,38],'@2Q@Notifications','/nsession_manager/d1='+dirNotifications,{'size':[2,33]});
pushbutton([1,76],'@2Z@Material Management','/nsession_manager/d1='+dirMaterials,{'size':[2,33]});
C:\GuiXT\Tutorials\Forum\Materials
clearscreen();
title("Material Management");
box([0,0], [5,109], "");
pushbutton([1,1],'Create Material', '/nmm01',{'size':[2,33]});
pushbutton([1,38],'Change Material', '/nmm02',{'size':[2,33]});
pushbutton([1,76],'Display Material','/nmm03',{'size':[2,33]});
pushbutton([4,38],'BACK','/nsession_manager/d1='+dirMain,{'size':[1,33]});
C:\GuiXT\Tutorials\Forum\SalesOrder
clearscreen();
title("Sales Orders");
box([0,0], [5,109], "");
pushbutton([1,1],'Create Sales Order', '/nva01',{'size':[2,33]});
pushbutton([1,38],'Change Sales Order', '/nva02',{'size':[2,33]});
pushbutton([1,76],'Display Sales Order','/nva03',{'size':[2,33]});
pushbutton([4,38],'BACK','/nsession_manager/d1='+dirMain,{'size':[1,33]});
C:\GuiXT\Tutorials\Forum\Notifications
clearscreen();
title("Notificaitons");
box([0,0], [5,109], "");
pushbutton([1,1],'Create Notification','/niw21',{'size':[2,33]});
pushbutton([1,38],'Change Notification','/niw22',{'size':[2,33]});
pushbutton([1,76],'Display Notification','/niw23',{'size':[2,33]});
pushbutton([4,38],'BACK','/nsession_manager/d1='+dirMain,{'size':[1,33]});