Copyright 2007, Information Builders. Slide 1 WebFOCUS Maintain – Enhancing Objects with JavaScript Mark Derwin Information Builders Information Builders.

Slides:



Advertisements
Similar presentations
RightNow 8 -- Adding a new report: New > Report: ORAnalytics > Reports > New Report
Advertisements

In the top left corner of the page, click on Pages & Files. Click on the If Then Statements folder to select it. Click New – Create a Page. You can also.
Microsoft Office 2007 Access Chapter 3 Maintaining a Database.
Office 2003 Post-Advanced Concepts and Techniques M i c r o s o f t Excel Project 7 Using Macros and Visual Basic for Applications (VBA) with Excel.
Using Macros and Visual Basic for Applications (VBA) with Excel
Site Modules > Page Builder Access the Page Builder module through the Site Modules top navigation link. Access Page Builder from the Site Modules navigation.
Office 2003 Post-Advanced Concepts and Techniques M i c r o s o f t Word Project 7 Creating an Online Form.
Microsoft Office 2010 Access Chapter 1 Creating and Using a Database.
Access - Project 1 l What Is a Database? –A Collection of Data –Organized in a manner to allow: »Access »Retrieval »Use of That Data.
Creating a Visual Catalog with Maintain Mark Derwin and Mark Rawls Information Builders Information Builders Summit 2011 User Conference June 2011 Copyright.
Office 2003 Introductory Concepts and Techniques M i c r o s o f t Access Project 2 Querying a Database Using the Select Query Window.
Staff Development Daze June 27 & 28 Tony Gauvin. Schedule  Monday June 27  Monday June 27  9:00 – 12:00 Basic Excel  12:00 – 1:00 Lunch for all workshop.
Chapter Extension 6 Using Microsoft Access © 2008 Pearson Prentice Hall, Experiencing MIS, David Kroenke.
Creating Dynamic Surveys with Maintain Mark Derwin and Mark Rawls Information Builders Information Builders Summit 2011 User Conference June 2011 Copyright.
Office 2003 Post-Advanced Concepts and Techniques M i c r o s o f t Word Project 8 Working with Macros and Visual Basic for Applications (VBA)
Google Earth How to create a Google Earth Tour and place it in your Wiki.
1 Creating Icons for Commands When there is not an icon related to a command in your toolbars, you will see a question mark (?). No preview available …
Chapter 9 Macros, Navigation Forms, PivotTables, and PivotCharts
® IBM Software Group © 2006 IBM Corporation JSF Tab Controls This Learning Module shows how to develop server-side EGL applications with dynamic content.
Microsoft Visual Basic 2005 CHAPTER 12 Cell Phone Applications and Web Services.
Copyright 2007, Information Builders. Slide 1 Maintain & JavaScript: Two Great Tools that Work Great Together Mark Derwin and Mark Rawls Information Builders.
MBAC 611.  Click on the My Computer Icon  Open your private network directory  Create a new folder named lab7  Copy your lab6 Access file to the lab7.
Web Technologies Website Development Trade & Industrial Education
Project 9 Using Visual Basic for Applications (VBA) to Customize and Automate Excel Jason C. H. Chen, Ph.D. Professor of Management Information Systems.
PowerPoint Basics (for Macs) 1. Before you start your project, you need: Completed project storyboard. Files with images, sound, or video already saved.
Creating a Web Site to Gather Data and Conduct Research.
Microsoft Windows 7 Essential Introduction to Windows 7.
Using FrontPage Express. Slide 1 Standard toolbars and menus Time indicator: gives an approximation of download time of the page.
Copyright © 2012 by The McGraw-Hill Companies, Inc. All rights reserved. McGraw-Hill/Irwin TECHNOLOGY PLUG-IN T8 DECISION MAKING USING ACCESS.
Office 2003 Advanced Concepts and Techniques M i c r o s o f t Access Project 5 Enhancing Forms with OLE Fields, Hyperlinks, and Subforms.
1 Data Bound Controls II Chapter Objectives You will be able to Use a Data Source control to get data from a SQL database and make it available.
Office of Education Technology (OET) Active Directory Bulk Import Saturday March 11, 2006 /8:30 – 10:30 AM.
Office 2003 Advanced Concepts and Techniques M i c r o s o f t Access Project 6 Switchboards, PivotTables, and PivotCharts.
Microsoft Access 2000 Presentation 2 Creating Databases Part I (Creating Tables)
Teacher’s Assessment Assistant Worksheet Builder Starting the Program
Office 2003 Advanced Concepts and Techniques M i c r o s o f t Access Project 5 Enhancing Forms with OLE Fields, Hyperlinks, and Subforms.
© Paradigm Publishing Inc. MICROSOFT WINDOWS XP MAINTAINING FILES AND CUSTOMIZING WINDOWS Section 2.
Microsoft Office 2007 Access Chapter 6 Using Macros, Switchboards, PivotTables, and PivotCharts.
Copyright 2007, Information Builders. Slide 1 Enhancing Maintain Applications with HTML Mark Derwin and Mark Rawls Information Builders.
Microsoft Access 2007 Tutorial (Part II) CIS*1000*DE.
RIGHT Mouse Button Formatting Cut Copy Paste Save LEFT Mouse Button MAIN BUTTON Single clicks Double clicks Drag Highlight.
Office 2003 Post-Advanced Concepts and Techniques M i c r o s o f t Access Project 7 Advanced Report and Form Techniques.
***Adding items to your Etudes Homepage*** Log into Etudes
Copyright 2008 McGraw-Hill Ryerson 1 TECHNOLOGY PLUG-IN T7 PROBLEM SOLVING USING ACCESS.
The Next Generation. Parent Access Grade History and Attendance.
Microsoft Access 2010 Chapter 8 Advanced Form Techniques.
Chapter 2 – Introduction to the Visual Studio .NET IDE
A STUDENT’S GUIDE TO ADDING IMAGES TO NEW OR EXISTING BLOG POSTS Adding Images to Your Blog Post Presented by Michelle Krummel.
Ch. 101 Database Management An Introduction to Databases.
Fall 2003Sylnovie Merchant, Ph.D. ACCESS Tutorial Note: The purpose of this tutorial is to provide an introduction to some of the functions of ACCESS in.
Slide Show: Using Idea Machine Templates
XP New Perspectives on Microsoft Office FrontPage 2003 Tutorial 7 1 Microsoft Office FrontPage 2003 Tutorial 8 – Integrating a Database with a FrontPage.
T7-1 LEARNING OUTCOMES – ACCESS PROBLEM SOLVING 1.Describe the process of using the Simple Query Wizard using Access 2.Describe the process of using the.
Copyright 2007, Information Builders. Slide 1 Flex your Dashboard Muscle with WebFOCUS Flex Enable John Gogoly Senior Systems Engineer June, 2008.
FOCUS II Demonstration Simply click the mouse to advance through the presentation. Or; Tap the right arrow key on the keyboard to advance through the slides.
Mrs. Macias Computer Science Summer Continue on Excel Project #3 Format Column Titles and the Total Row  Click cell A3 and drag to select A3:G3.
Modify Tables and FieldsModify Tables and Fields Lesson 4 © 2014, John Wiley & Sons, Inc.Microsoft Official Academic Course, Microsoft Word Microsoft.
Office 2003 Introductory Concepts and Techniques M i c r o s o f t Access Project 2 Querying a Database Using the Select Query Window.
Access Module Implementing a Database with Microsoft Access A Great Module on Your CD.
If you don’t have Google Earth downloaded already, you can go to to get it.
Visual Basic.NET Comprehensive Concepts and Techniques Chapter 11 Creating Web Applications and Writing Data to a Database.
Integrating Office 2003 Applications and the World Wide Web
Using Macros, Switchboards, PivotTables, and PivotCharts
Chapter 2 – Introduction to the Visual Studio .NET IDE
Enhancing Forms with OLE Fields, Hyperlinks, and Subforms
Chapter 7 Advanced Form Techniques
Presentation transcript:

Copyright 2007, Information Builders. Slide 1 WebFOCUS Maintain – Enhancing Objects with JavaScript Mark Derwin Information Builders Information Builders Summit 2009 User Conference June 10, 2009

Copyright 2007, Information Builders. Slide 2 Presentation Information  Author: Mark Derwin  Company: Information Builders  Presentation Title: WebFOCUS Maintain – Enhancing Objects with JavaScript  Presentation Abstract: This hands-on lab shows the user how to use JavaScript to enhance Maintain objects like the Grid.

Copyright 2007, Information Builders. Slide 3 Adding an Update Flag

Copyright 2007, Information Builders. Slide 4 WebFOCUS Maintain – Enhancing Objects with JavaScript Adding an Update Flag

Copyright 2007, Information Builders. Slide 5 WebFOCUS Maintain – Enhancing Objects with JavaScript Creating a New Project  Right-click on Projects on localhost and select New Project…  Enter Maintain09 and Click Next >

Copyright 2007, Information Builders. Slide 6 WebFOCUS Maintain – Enhancing Objects with JavaScript Creating a New Project  The Movies Master and FOCUS files are already included in this directory so we don’t need to add any files.  Click Finish.

Copyright 2007, Information Builders. Slide 7 WebFOCUS Maintain – Enhancing Objects with JavaScript Creating a New Project  Double click on the Master Files folder under Maintain09 to display Master and FOCUS files.  Highlight Movies.foc and Movies.Mas.  Click on the Icon with the + to include to files into the project.

Copyright 2007, Information Builders. Slide 8 WebFOCUS Maintain – Enhancing Objects with JavaScript Creating a New Project  Right-click on the Maintain Files Folder and select New >  Select Maintain Procedure.  Name it lab1 and click Open.

Copyright 2007, Information Builders. Slide 9 WebFOCUS Maintain – Enhancing Objects with JavaScript Inside the MDE  MAINTAIN – All Maintains start with the word MAINTAIN in upper case.  END – All Maintains end with the word END in upper case.  All other commands can be mixed case.  Use -*, $$, $* *$ for comments.

Copyright 2007, Information Builders. Slide 10 WebFOCUS Maintain – Enhancing Objects with JavaScript Adding a Data Source  Right-click on lab1 and select Use data sources…  Double-click on movies to move it from Available data to Data sources to use.  You can use up to 15 data sources per procedure.  Click OK.  Notice that the MAINTAIN command line now contains the file name.

Copyright 2007, Information Builders. Slide 11 WebFOCUS Maintain – Enhancing Objects with JavaScript Loading the Stack  A stack is an array containing database and / or computed fields.  Columns are fields and rows are data.  Reads Master File to know field names, formats, lengths and position.  Load up a stack with the NEXT command.  We are loading 10 records into a stack named STK and creating a computed field named flag.  Click Save.

Copyright 2007, Information Builders. Slide 12 WebFOCUS Maintain – Enhancing Objects with JavaScript Creating a Form  Expand the lab1 folder.  Expand the Forms folder.  Double-click on Form1 to display the form.  Maximize the form.

Copyright 2007, Information Builders. Slide 13 WebFOCUS Maintain – Enhancing Objects with JavaScript Creating a Form  Select the Grid object from the Control Palette.  Click on the upper left corner of the form, drag the cursor to the lower right side of the form to create a rectangle.  Select Stk and move over: Moviecode, Title, Category and Flag.

Copyright 2007, Information Builders. Slide 14 WebFOCUS Maintain – Enhancing Objects with JavaScript Creating a Form  Double-click Moviecode and click Read Only.  We can’t update the key.  If we were doing Include then we would not protect it.  Click OK and repeat the action for the Flag column.  Click OK to return to the form.

Copyright 2007, Information Builders. Slide 15 WebFOCUS Maintain – Enhancing Objects with JavaScript Running the Application  Save and Run.  Right-click on lab1 and select Run Procedure.  Once Deployment is successful, click Close.

Copyright 2007, Information Builders. Slide 16 WebFOCUS Maintain – Enhancing Objects with JavaScript Running the Application  Click X to return to the MDE.  Double-click on Form1 to display the form if it is not displayed.  Click on the Grid to display Properties and Events.

Copyright 2007, Information Builders. Slide 17 WebFOCUS Maintain – Enhancing Objects with JavaScript Adding an Event  Every object, including the form, has Properties and Events.  Events determine when happens when an object is displayed, gets or loses focus, or when a user performs an action.  Since we want to create an Update Flag, click in the space next to OnCellChanged.  The Events page opens.  OnCellChange is when the cursor moves.

Copyright 2007, Information Builders. Slide 18 WebFOCUS Maintain – Enhancing Objects with JavaScript Adding an Event  Events can be:  Maintain procedures, JavaScripts, VB Scripts, URLs or system actions  We want JavaScript for this Event, so click the J Scroll.  Make sure the object is Grid1 and the action is OnCellChanged.  Our code makes sure we aren’t in the Flag column, sets the value to “Y” and redraws the cell.

Copyright 2007, Information Builders. Slide 19 WebFOCUS Maintain – Enhancing Objects with JavaScript Adding a Case  Double-click on lab1 to display the code.  Enter the case Updater to update the database.  Create stk2 and copy only the updated records into it.  Update the database from stk2.

Copyright 2007, Information Builders. Slide 20 WebFOCUS Maintain – Enhancing Objects with JavaScript Adding a Button  Double-click on Form1 to display the form.  Select the Button object from the Control Palette.  Draw a rectangle under the grid and change the text to update.  On the Button’s Events list, click on the space next to Click.

Copyright 2007, Information Builders. Slide 21 WebFOCUS Maintain – Enhancing Objects with JavaScript Assigning a Function  Make sure Button1 and Click and displayed.  Adding Maintain function so do not change selection.  Drag and drop Updater from Project Explorer into Case.  Save and Run.

Copyright 2007, Information Builders. Slide 22 WebFOCUS Maintain – Enhancing Objects with JavaScript Adding an Update Flag

Copyright 2007, Information Builders. Slide 23 WebFOCUS Maintain – Enhancing Objects with JavaScript One Click Edit  Click on the X to re-display the MDE.  Click on Form1 and Click on the Grid to display Properties / Events.  Click on the space next to Focus and the Events form opens.  Add a JavaScript function for Grid1 Focus so edit is only 1 click.  Save and Run.

Copyright 2007, Information Builders. Slide 24 Adding Validation

Copyright 2007, Information Builders. Slide 25 WebFOCUS Maintain – Enhancing Objects with JavaScript Cell Validation

Copyright 2007, Information Builders. Slide 26 WebFOCUS Maintain – Enhancing Objects with JavaScript Cell Validation  Click on Form1 to redisplay the form.  We want to embed the checkVal.js file onto the form.  Click on Window and Select Exploring – Developer Studio Desktop.

Copyright 2007, Information Builders. Slide 27 WebFOCUS Maintain – Enhancing Objects with JavaScript Cell Validation  Open the ‘Other’ folder.  Right-mouse click on checkVal.js and select Add to Project.

Copyright 2007, Information Builders. Slide 28 WebFOCUS Maintain – Enhancing Objects with JavaScript Cell Validation  Reduce the size of the Developer Studio Desktop window so both it and the form are displayed.  Drag the checkVal.js file onto the form and select Embed Script.  Expand the + next to Form1 and the file name should be displayed.

Copyright 2007, Information Builders. Slide 29 WebFOCUS Maintain – Enhancing Objects with JavaScript Cell Validation  Click checkVal to display the JavaScript file.  The OK list can be changed depending on your needs.  Click on Form1 to redisplay the form.

Copyright 2007, Information Builders. Slide 30 WebFOCUS Maintain – Enhancing Objects with JavaScript Cell Validation  Click on the Grid and select OnEditFinish from the Events list.  Click on the the J Scroll and enter the validation code.  SetCancelFlag can be 0 (No action), 1 (re-entry), 2 (prevent entry).

Copyright 2007, Information Builders. Slide 31 WebFOCUS Maintain – Enhancing Objects with JavaScript Cell Validation  Save.  Right-mouse click lab1 and Run.

Copyright 2007, Information Builders. Slide 32 Homework – Drop Down Lists

Copyright 2007, Information Builders. Slide 33 WebFOCUS Maintain – Enhancing Objects with JavaScript Drop Down Lists

Copyright 2007, Information Builders. Slide 34 WebFOCUS Maintain – Enhancing Objects with JavaScript Drop Down Lists  Double-click on the Grid and add Rating to the columns.  Expand the width of the Grid to display the field.  Click on the OnRowChange event to open the events screen.

Copyright 2007, Information Builders. Slide 35 WebFOCUS Maintain – Enhancing Objects with JavaScript Drop Down Lists

Copyright 2007, Information Builders. Slide 36 WebFOCUS Maintain – Enhancing Objects with JavaScript Drop Down Lists  Create a static list of values using \n as a line break.  List can also be dynamic and come from a field on the form.  QuickSetCellType tells Maintain this cell is a list.  QuickSetLabel assigns the list to the cell.  Add code to Focus trigger as well.  Have to remove StartEdit command.  Save and Run.

Copyright 2007, Information Builders. Slide 37 WebFOCUS Maintain – Enhancing Objects with JavaScript Drop Down Lists