Creating jwb Menus. A snapshot of the JWB menu stucture

Similar documents
Sitecore guide building a blog

Adding Content to your Personalised Page

Installing VS Code. Instructions for the Window OS.

Adding Existing Source Code in NetBeans CS288, Autumn 2005 Lab 002

FrontPage Student IT Essentials. October 2005 This leaflet is available in other formats on request. Saving your work

PlayerLync Forms User Guide (MachForm)

Telerik Corp. Test Studio Standalone & Visual Studio Plug-In Quick-Start Guide

Accessing Your D2L

Dreamweaver MX The Basics

provides descriptions of how to fill out and submit Project Reports, and provides practical and technical information about data entry.

Lab: Relational Universe Create Predefined Filters

MockupScreens - User Guide

Frequency tables Create a new Frequency Table

Content Author's Reference and Cookbook

COMP519 Practical 5 JavaScript (1)

SPARK. User Manual Ver ITLAQ Technologies

Xerte. Guide to making responsive webpages with Bootstrap

BlueCross BlueShield of Tennessee

DbSchema Forms and Reports Tutorial

OU EDUCATE TRAINING MANUAL

What s New in Cognos. Cognos Analytics Participant s Guide

Contents. Common Site Operations. Home actions. Using SharePoint

DbSchema Forms and Reports Tutorial

Template Builder User Guide. Product Version 1.0 August 11, 2017

JMP to LSAF Add-in. User Guide v1.1

OUTLOOK WEB APP (OWA): MAIL

HTML Mashups A mashup that embeds an HTML or JavaScript based Web page directly on a screen.

A Quick-Reference Guide. To access reddot:

GoLive will first ask you if your new site will be for one individual or a work group; select for a Single User, and click Next.

Head First HTLM 5 Programming, Chapter 1: Welcome to Webville. Pages 1-34

Sticky Notes for Cognos Analytics by Tech Data BSP Software

A Guide to Quark Author Web Edition 2015

Ektron Advanced. Learning Objectives. Getting Started

Design Importer User Guide

Using Modules in Canvas

NVU Web Authoring System

MySQL On Crux Part II The GUI Client

FreeConference Desktop Sharing with IBM Sametime User Guide

Welcome to the CP Portal

Mercury LoadRunner Quick Start

QUALTRICS QUALTRICS BASIC USAGE USER GUIDE EXTERNAL DOCUMENT. Writer Date Version Celine Montigny 10/09/2010 V1.0 VALIDATION. Name Function Date

Budget DataMart. BDM Hyperion (System 9) Workspace and Interactive Reporting (IR) module

Here are the steps in downloading the HTML code for signatures:

Creating a Dashboard Prompt

µtasker Document CodeWarrior 10

Virto SharePoint Forms Designer for Office 365. Installation and User Guide

Editing the Home Page

TYPO3 Editing Guide Contents

All textures produced with Texture Maker. Not Applicable. Beginner.

Start by launching Mozilla To start making a web page, go to File -> New -> Composer Page

Introduction to Qualtrics Research Suite Wednesday, September 19, 2012

ArtOfTest Inc. Automation Design Canvas 2.0 Beta Quick-Start Guide

1 Build Your First App. The way to get started is to quit talking and begin doing. Walt Disney

Tutorial: Creating a Gem with code

What is CMS? How do I access my CMS site? How do I log into the CMS site? www1

(Refer Slide Time: 01:40)

Technical Issues: Please Contact (Teresa Saljanin)

Hands-On Lab. Authoring and Running Automated GUI Tests using Microsoft Test Manager 2012 and froglogic Squish. Lab version: 1.0.5

CREATE AN EKTRON MICRO-SITE

Website Management with the CMS

Conference Proposals Interface CPI Guidelines

Managing your content with the Adobe Experience Manager Template Editor. Gabriel Walt Product Manager twitter.com/gabrielwalt

TechBrief. New Full Width Website

CS Multimedia and Communications REMEMBER TO BRING YOUR MEMORY STICK TO EVERY LAB!

Tutorial - Creating a project template

Want to add cool effects like rollovers and pop-up windows?

Getting Started (New Accounts)

The following instructions cover how to edit an existing report in IBM Cognos Analytics.

with IBM Sametime User Guide

ELECTRONIC FORMS SYSTEM (EFS)

5.0 Admin Guide. Remote Request System Admin Guide. Toll Free Phone:

WebStore by Amazon: Quick Start Guide

WEBppliance for Windows User Administrator's Help

Web logs (blogs. blogs) Feed support BLOGS) WEB LOGS (BLOGS

Web-enable a 5250 application with the IBM WebFacing Tool

SCODE-CONGRA: Simple example project A + B = C

Visual Workflow Implementation Guide

Finalizing the Project

Upside Approvers Job Aid

CMS Shado 9. Quick Start Guide

Tutorial: How to Load a UI Canvas from Lua

College of Arts & Sciences

Working with Images 1 / 12

Java Program Structure and Eclipse. Overview. Eclipse Projects and Project Structure. COMP 210: Object-Oriented Programming Lecture Notes 1

My Mediasite Guide (V7.2) Create and Share Videos from Your Desktop

Contents 1. OVERVIEW GUI Working with folders in Joini... 4

It is recommended that you configure Internet Explorer to see the MLS as a trusted site.

Using Dreamweaver CS6

Creating Pages with the CivicPlus System

IBM Fault Analyzer for z/os

HOW TO BUILD YOUR FIRST ROBOT

MoCoMotion and

Here is a complete outline of the entire course as it is currently planned (contents approximate):

Active Documents User guide Dynamics GP 2013

Content Matrix. Evaluation Guide. February 12,

SAS and Outlook Appointment Push

Chapter 1. Configuring VPGO

A Guide to Blogging on Wordpress

SQL Server Reporting Services (SSRS) is one of SQL Server 2008 s

Lesson 5 Introduction to Cascading Style Sheets

Transcription:

Creating jwb Menus Introduction JBASE for web builders has integrated into it the functionality to build menus that have the same look and feel as those in Window s Explorer. The menu is a visual feature that allows a user to click on a folder icon dropping down the contents of that folder. This is similar to menus in Windows Explorer but jwb also features menu links that are not folders. These links can be clicked on and have different classes of functionality associated with them. A snapshot of the JWB menu stucture One way of creating a menu is by hard coding a menu structure with the folders and all the links explicitly declared at design time. The second way is by creating a menu structure from Creation Subroutines. A creation subroutine is called by jwb when creating a new menu, in the same way a pre-page routine is called when a page is submitted to the server. This means that it can create a menu structure based on user input or a specific files, making it a powerful means to update, change and create dynamic menus on the fly. Both these methods will be described below with an example of how to build your own. Prerequisites This white paper assumes that the user has knowledge of jbase for Web Builders, knows their way around the development environment, knows how to create a new application module and is familiar with the properties, class and design pane of an object. For creating a menu from a subroutine, you should also be familiar with BASIC code. 14/01/2015 1 Raph Weedon

IMPORTANT The following documentation shows how to create menu objects and how to get a functioning menu structure. However, this is not very useful unless the menu is on a jwb page. Putting Menu objects on a page requires the following property to be set in the properties pane of that page. (click the properties button at the top of the window) Header HTML {{script sysstdmenu}} The object that you place on the page must also be of the class sysmenumain which can be selected from the class drop down box in the properties pane. When referencing a jwb Object Editor window the following terms are used in this white paper. Construction rivet Window title Tools pane Design pane Properties pane A jwb window with details of terms used in this documentation 14/01/2015 2 Raph Weedon

Creating a simple Hard Coded Menu structure 1) After logging into jwb, create a new application module and call it Menus. Give it the description My Menus. You must click on the refresh menus link to make it show on the Development Objects menu. E.g. Jwb menu including My Menus 2) Click on My Menus and select Menu Definition. 3) Add a new object and call it HardCodeMenu. A window will appear with the title sysmenumain:hardcodemenu with various menu classes in the tools pane. These are described below: Icon Class Sysmnuitm Sysmnujs Sysmnupge Description This is menu call to another menu object This is a link to some Javascript code This is a link to a jwb page Sysmnuurl This is a link to a url. Table of menu classes, their names and their icons These icons can be selected and placed on the construction rivet(s) in the design pane Please refer to this table when building the menu described below. 14/01/2015 3 Raph Weedon

Build the Menu Page 4) Select the sysmnuitm icon and place it on the construction rivet in the design pane 5) Type AnotherMenu in the Menu Name properties pane 6) Click Edit Menu. A new window will appear titled sysmenumain:anothermenu. 7) Select the sysmnujs icon and place the construction rivet on the design pane. 8) Type the following in the properties pane: Menu Prompt Java Script Code Sub Menu Alert alert( hello again ); 9) Click Update and then close the window. 10) Select the sysmenumain:hardcodemenu window and place a sysmnujs icon on the construction rivet below the Sub Menu(AnotherMenu) that you have just been editing. 11) Type the following in the properties pane: Menu Prompt Java Script Code Alert alert( hello ); 12) Click Update 13) Place a sysmnupge icon on the next construction rivet and type in the properties pane: Menu Prompt Page Name goto logon page syslogon 14) Click Update 15) Place a sysmnuurl icon on the next construction rivet and type in the properties pane: Menu Prompt URL goto hotmail http://www.hotmail.com 16) Click Update 17) Finally, click on the Properties button above the tools pane and type into the properties pane: 14/01/2015 4 Raph Weedon

Menu Prompt Hard coded menus You should now have a window that looks like the following: How your sysmenumain:hardcodemenu screen should look 14/01/2015 5 Raph Weedon

Preview your menu page You are now ready to preview your menu screen. Click Preview at the top of the window and bar any typing error, you should have a menu screen like below: Previewing your menu Moving the mouse over each of the links should cause it to turn blue and become underlined. Clicking on the links should send you to the relevant page, or cause the JavaScript code to execute. If you get any error messages, you may have mistyped some JavaScript or incorrectly spelt various properties in the properties pane of the menu objects. 14/01/2015 6 Raph Weedon

Creating a Simple Dynamic Menu Structure The following example will document building the same menu as the Hard Coded Menu structure, but this time it will be built using two Creation Subroutines. (To familiarise yourself with the terms used below, I suggest you follow the instructions for building a Hard Coded Menu). The Creation Subroutines are hard coded to produce the same results as above, but bear in mind that they could read information from a file or from user input and create menus using these dynamic means. If you haven t already done so, follow the instructions 1) and 2) in Creating a Simple Hard Coded Menu structure. 3) Add a new object and call it DynamicMenu. A window will appear with the title sysmenumain:dynamicmenu. 4) Type into the properties pane Creation Subroutine BuildDynamicMenus And hit the button next to it A new editing widow will appear with the title (PrgMain,BuildDynamicMenus). You can copy and past the subroutine titled builddynamicmenus below, but it is based on the following skeleton code: *--- parameter (menurec) is not html as per usual but an item *--- that will contain a menu record SUB skeletoncode(menurec) *--- include the common block INCLUDE sysbp syscommon *--- prepare objects for amend. Compusary code mobj = RAISE(menurec<12>) *--- loop and process FOR X = 1 TO Y *-------This is where you can loop and read details from a file *-------and then build up a menu based on these results mrec = "Any valid sysmnutype" *------ these items must be defined as per their object definitions mrec<10,1> = "menu prompt" mrec<10,4> = "menu parameter" *------ these lines are compulsory to store the object *------ lower it for storage *--- get next set of data NEXT X *--- this line is compulsory *--- restore objects menurec<12> = LOWER(mobj) *--- done RETURN Sysmnytype doesn t actually exist, but can be sysmnitm, sysmnujs, sysmnupge or sysmnuurl Details of these parameters can be found in the developer reference pages 72-75 14/01/2015 7 Raph Weedon

BuildDynamicMenus subroutine SUB builddynamicmenus(menurec) *--parameter is not html as per usual but an item that will contain a menu record *--this subroutine will build a menu structure like the Hard Coded Menu structure *--Include the common block INCLUDE sysbp syscommon *--Initialise some variables mrec = ""; mobj = "" *--this line compulsory to prepare menu opjects for amend mobj = RAISE(menurec<12>) *--The fist object is a sysmnuitm that will hold the "Sub Menu Alert". The LOWER *--line is compulsory. We store the results in mobj, and then assign this to menurec. mrec = "sysmnuitm" mrec<10,1> = "AnotherDynamicMenu" *--the following produces the alert menu mrec = "sysmnujs" mrec<10,1> = "alert" mrec<10,4> = "alert('hello');" *--the following produces the 'goto logon' menu mrec = "sysmnupge" mrec<10,1> = "goto logon page" mrec<10,4> = "syslogon" *--the following produces the 'goto hotmail' menu mrec = "sysmnuurl" mrec<10,1> = "goto hotmail page" mrec<10,4> = "http://hotmail.com" These four sections of code are the equivalent of the four menu objects that we placed on the design pane in the section Hard Coded Menu Structure *--this line is compulsory *--restore objects menurec<12> = LOWER(mobj) menurec<10,1> = "Dynamic Menus" *--done RETURN This names the menu 5) When you have copied and pasted the code above, click on the button Update and Compile and make sure that the code compiles correctly. You may have noticed that in the code above, there is a reference to AnotherDynamicMenu. This code defines another menu item that we must now define. 6) Create another menu object under My Menus and call it AnotherDynamicMenu. A window will appear with the title sysmenumain:dynamicmenu. 14/01/2015 8 Raph Weedon

7) Type into the properties pane Creation Subroutine BuildAnotherDM And hit the button next to it 8) In the editing window, paste in the following code: SUB buildanotherdm(menurec) *--instead of html, the subroutine variable is a record *--This produces "another menu" with the "Sub Menu Alert" *--Include the common block INCLUDE sysbp syscommon *--Initialise some variables mrec = "" *--Compulsary statement mrec = RAISE(menurec<12>) *--assign it as a javascript object mrec = "sysmnujs" *--assign the name and javascript to the menu object mrec<10,1> = "Sub Menu Alert" mrec<10,4> = "alert('hello again');" *--Compulsary code *--Give the "folder" object a name menurec<10,1> = "another menu" This produces the second JavaScript alert in the sub menu We name the sub menu here *--Compulsary code menurec<12> = LOWER(mrec) RETURN 9) Click on Update and Compile and make sure the code compiles OK. If you now preview DynamicMenu you should get the same menu structure and functionality as the Hard Coded menu. 14/01/2015 9 Raph Weedon