XPages Example: Generating Dynamic Editable Fields from a Document Collection Author: John Mackey Groupware Solutions Inc. John.Mackey@Groupwareinc.com.

Slides:



Advertisements
Similar presentations
Access 2007 ® Use Databases How can Microsoft Access 2007 help you to get and stay organized?
Advertisements

1. In the Activity Builder, you can use the Content Editor tools to create the content for activities and stimuli one at a time. Form-Based Content Editors:
London & Zurich Plc User Guide. Service Benefits Full on-line management of client accounts Paperless direct debit – no signatures required Standing orders.
Wincite Introduces Knowledge Notebooks A new approach to collecting, organizing and distributing internal and external information sources and analysis.
Access Custom Forms & Reports. Topics  Designer Skills  Tab Order (Forms)  Copying Properties  Adding a Control  Adding Page Breaks  Adding Tab.
User Guide. Service Benefits  Full on-line management of client accounts  Paperless direct debit – no signatures required  Standing orders fixed not.
Microsoft Excel 2010 Chapter 7
Creating Custom Forms. 2 Design and create a custom form You can create a custom form by modifying an existing form or creating a new form. Either way,
McGraw-Hill Technology Education © 2004 by the McGraw-Hill Companies, Inc. All rights reserved. Office Word 2003 Lab 3 Creating Reports and Tables.
Data Forms in Hyperion Planning. Data Forms are used by the business users and planners to enter, update and analyze the data. Actually, data forms.
Microsoft Excel 2003 Illustrated Complete Excel and Advanced Worksheet Management Customizing.
® IBM Software Group © 2006 IBM Corporation JSF Tab Controls This Learning Module shows how to develop server-side EGL applications with dynamic content.
Quick Start Guide: Filters Advanced Learn about: 1.What filters are and their functionality 2.How to create a filter using Samples, Equipment & Labels.
Copyright 2007, Paradigm Publishing Inc. Word 2007 Chapter 7 BACKNEXTEND 7-1 LINKS TO OBJECTIVES Create, Edit, and Format a Table Create, Edit, and Format.
Advanced SAGE Formative Adding Your Own Resources Using Common Assessments Creating Educator Groups.
© Paradigm Publishing, Inc Access 2010 Level 2 Unit 1Advanced Tables, Relationships, Queries, and Forms Chapter 4Creating and Using Custom Forms.
Website Development with Dreamweaver
Preview four Pages Click Here-----Click and Drag to Select 4 pages.
Chapter 6 Generating Form Letters, Mailing Labels, and a Directory
EContract Authoring Supplier Training Material. ‘Supplier Review’ Process.
Copyright 2007, Paradigm Publishing Inc. Word 2007 Chapter 8 BACKNEXTEND 8-1 LINKS TO OBJECTIVES Create and Merge Creating a Data Source Creating a Data.
McGraw-Hill/Irwin The Interactive Computing Series © 2002 The McGraw-Hill Companies, Inc. All rights reserved. Microsoft Excel 2002 Lesson 1 Introduction.
Microsoft Word Working with Templates, Forms, Tables, and Charts.
Drinking Water Infrastructure Needs Survey and Assessment 2007 Training.
Microsoft Access 2013 Simplify Data Entry with Forms Chapter 3.
© 2008 The McGraw-Hill Companies, Inc. All rights reserved. ACCESS 2007 M I C R O S O F T ® THE PROFESSIONAL APPROACH S E R I E S Lesson 7 – Adding and.
Home NEW INNOVATIONS Resident/Fellow Introduction NEW INNOVATIONS Resident/Fellow Introduction This presentation includes the following topics: Login Notifications.
Working with GridView Control: Adding Columns. Adding Buttons to a Bound GridView: 1. Drag the WebProduct table from Data connection to a page 2. Demo.
Access Manual 2 By Dhawala Kovuri Elham S.Khorasani Ismail Guneydas.
1 What to do before class starts??? Download the sample database from the k: drive to the u: drive or to your flash drive. The database is named “FormBelmont.accdb”
McGraw-Hill Career Education© 2008 by the McGraw-Hill Companies, Inc. All Rights Reserved. Office Word 2007 Lab 3 Creating Reports and Tables.
Microsoft Access 2010 Chapter 8 Advanced Form Techniques.
A lesson approach © 2011 The McGraw-Hill Companies, Inc. All rights reserved. a lesson approach Microsoft® Excel 2010 © 2011 The McGraw-Hill Companies,
Course ILT Forms and queries Unit objectives Create forms by using AutoForm and the Form Wizard, and add or modify form headers and footers Open and enter.
Senior Elective Tutorial MS Access Database: Student Records.
Access Forms and Queries. Entering Data in Your Table  You can add data to your table in Datasheet view, by typing in the columns and rows.  This.
CSCI 3327 Visual Basic Chapter 13: Databases and LINQ UTPA – Fall 2011.
XP. Objectives Sort data and filter data Summarize an Excel table Insert subtotals into a range of data Outline buttons to show or hide details Create.
DotNetNuke Workshop Presented by: Sara Sharick. Topics What is DotNetNuke Components Requesting a DDN Site Creating Pages Modules Adding Content Document.
1 Chapter 20 – Data sources and datasets Outline How to create a data source How to use a data source How to use Query Builder to build a simple query.
McGraw-Hill Technology Education © 2004 by the McGraw-Hill Companies, Inc. All rights reserved. Office Access 2003 Lab 2 Modifying a Table and Creating.
TRAINING SESSIONS.NET Controls.  Standard Controls  Label  Textbox  Checkbox  Button, Image Button, Image control  Radio Button  Literal  Hyperlink.
INTRODUCTORY GUIDE TO SURPLUS LINE INFORMATION PORTAL 2.0 (SLIP) CALIFORNIA’S ELECTRONIC FILING SYSTEM THE SURPLUS LINE ASSOCIATION OF CALIFORNIA Quick.
OFFICE OF INFORMATION TECHNOLOGY Frevvo Training MIDDLEWARE AND HIGH PERFORMANCE COMPUTING OFFICE OF INFORMATION TECHNOLOGY, ENTERPRISE SYSTEMS FLORIDA.
Gold – Crystal Reports Introductory Course Cortex User Group Meeting New Orleans – 2011.
Hubnet Training One Health Network South East Asia Network Overview | Public and Members-only Pages; Communicating and Publishing using Blogs and News.
Crystal Reports with MDS  Topics  Crystal Reports  Sales Analysis Reports  Export Crystal Report to different formats  Modify and Save New Reports.
Contract Invoice Guide
Excel part 5 Working with Excel Tables, PivotTables, and PivotCharts.
Microsoft Access 2000 Modifying Tables, Creating Forms and Viewing Data.
T U T O R I A L  2009 Pearson Education, Inc. All rights reserved Address Book Application Introducing Database Programming.
Prepared by the Academic Faculty Members of IT. Tables Creating Tables. Merging Cells. Splitting Cells. Sorting Tables. Performing Calculations.
XP New Perspectives on Microsoft Office Access 2003, Second Edition- Tutorial 6 1 Microsoft Office Access 2003 Tutorial 6 – Creating Custom Forms.
EContract Authoring Supplier Training Material Caterpillar Non-Confidential.
24 Copyright © 2009, Oracle. All rights reserved. Building Views and Charts in Requests.
EKTRON QUICK START GUIDEEKTRON QUICK START GUIDE Version 1.0 Copyright 2013 WebSolutions Technology, Inc. Fuller June 7, 2013.
Education And Training CTC IT DIVISION PivotLink User Training April 2010.
Excel Chapter 1 Creating a Worksheet and an Embedded Chart
COM: 111 Introduction to Computer Applications Department of Information & Communication Technology Panayiotis Christodoulou.
Introduction to EBSCOhost
ASI Table [Instructor Notes, if any, will appear here.]
Creating Oracle Business Intelligence Interactive Dashboards
Microsoft Access 2016 Simplify Data Entry with Forms
Tutorial 5: Working with Excel Tables, PivotTables, and PivotCharts
Simplify Data Entry with Forms Chapter 3
Unit I: Collecting Data with Forms
Microsoft Office Access 2003
Microsoft Office Access 2003
RPM: Basic plan data entry process A step-by-step guide for Plan Leads
Presentation transcript:

xPages Example: Generating Dynamic Editable Fields from a Document Collection Author: John Mackey Groupware Solutions Inc. John.Mackey@Groupwareinc.com Blog: http://www.jmackey.net

Overview This example extends a previous example: “Updating data from multiple forms on a single xPage”. You can download the previous example from here: http://www.jmackey.net/groupwareinc/johnblog/johnblog.nsf/d6plinks/GROC-7FFLYJ This new example will walk you through how to use a Repeat control to generate fields dynamically for a document collection The Repeat control repeats a Panel control which binds to each Document in the collection The Panel control contains 3 editable fields bound to fields on each document A simple action “Save Datasources” handles the updates for all bound datasources

Sample Screen shot of Orders page Bound to Order Form Bound to Multiple Response Documents * Fields are generated Dynamically on page load for each response document Bound to Customer Form

First Step: Create/Modify the Notes Forms Create a new form named “OrderDetails”. Make it a Response document Here is the layout for the form: Modify the “Order” form from the previous example Add a new field named “OrderNumber” Delete the fields: ItemNumber,Price,Quantity Here is the layout for the form:

Modify the view Modify the Orders View Change the selection formula to include the new “OrderDetails” form Check off the property “Show response documents in hierarchy” Add a column for “OrderNumber”

Modify the Orders xPage Add new text for “Order Details” section Add a Button labeled “Add New Line”

Modify the Orders xPage When the button is clicked we want to add a new response document and then reload the page. Note: the reloading of a page will be easier with Beta 2 by using context.reloadPage() The onclick() event for the button should be the following:

Modify the Orders xPage Drag a Table control and then drag a Repeat control to the table Set the Options for the repeat control as below:

Modify the Orders xPage For the Iteration formula for the repeat control, enter the following:

Modify the Orders xPage Drag a Panel control to the Repeat Control On the Data tab for the Panel, create a new datasource named “OrderDetails” Set the form to “OrderDetails” Set the action to “Edit document”

Modify the Orders xPage Set the “Document ID” to computed The document id will be the “Collection name” variable for the Repeat control. So as the Repeat control iterates through the response documents it will pass the NoteID in the variable “docid” to each Panel

Modify the Orders xPage We need to set a property on the Panel control so that the Panel ignores any request parameters for the Orders page. For example: the page receives and uses parameters such as “editDocument” and “documentID”. For this use case we calculate the documentID for the Panel and so we want to ignore the page parameters. Click on the All Properties on the Properties tab for the “CustomerData” Panel Expand Data and set “ignoreRequestParams” to true

Modify the Orders xPage Add a 3 column by 1 row table to the Panel Add a ComboBox control to the first column Bind it to the OrderDetails - ItemNumber field

Modify the Orders xPage On the ItemNumber Values tab, Add some values: Add 2 EditBox controls and bind them to Price and Quantity

Recreate Orders View Control Open up the “ViewCustomers” xPage Click on the Orders tab Delete the view and drag a new view control to the tab (I just find this easier then adding new columns) Select “vOrders” view for the source Select “Indent Responses” for the CustomerName column properties tab On the “Order Num” column properties tab, select “show values in this column as links”

Here’s a screen shot of the updated view

Test the Application Create some Orders and click “Add New Line” button numerous times You can also still update the Customer information from the Order This simple action handles all the updates:

Questions?? Contact me if you have any questions John.Mackey@Groupwareinc.com or comment on my blog: http://www.jmackey.net The Domino 8.5 discussion forum is: http://www-10.lotus.com/ldd/nd85forum.nsf