XPages – Introduction to Custom Controls Custom Controls - Aktion ...

newjerseyshakySoftware and s/w Development

Oct 30, 2013 (4 years and 8 months ago)


XPages –
Introduction to
C Cu us st to om m C Co on nt tr ro olls s
Michael Sobczak
Aktion Associates
©2011 IBM Corporation & Aktion Associates
Aktion Associates is proud to be an IBM Premier Business PartnerAbout Me
• Developing Notes/Domino applications since ’97
• President of the DNP since ’99
• Started with Aktion Associates in Feb. 2009
• Lotus Advisor contributor
• MWLUG 2010 presenter
©2011 IBM Corporation & Aktion AssociatesWhat are Custom Controls?
• Similar to subforms
— Cannot be opened directly
— Can contain other custom controls
— Work in both the Notes client (XPiNC) and web browsers and mobile
• Create shared functionality
— Shared form header
— Shared fields
— Form actions
— View actions
• Create a user interface for your application (framework)
— Blue Print
— OneUI (IBM)
©2011 IBM Corporation & Aktion AssociatesForm Header
• One custom control for multiple XPages
• Determine the title of the Form Header at design time
• Can you do that with subforms?
— Yes, but not as elegantly
©2011 IBM Corporation & Aktion AssociatesDemo
Create a shared form header Custom Control
©2011 IBM Corporation & Aktion AssociatesForm Actions
• Close, Edit, Cancel and Save
• Similar to sharing actions by way of a subform (pre R5)
• Similar to using a subform to share links (or hotspots) across
multiple forms
• • T Th he er re e a ar re e n no o “ “s sy ys stte em m a ac cttiio on ns s” ” iin n X XP Pa ag ge es s
©2011 IBM Corporation & Aktion AssociatesDemo
Create a shared form actions Custom Control
©2011 IBM Corporation & Aktion AssociatesView Actions
• Expand, Collapse, Create New Document
©2011 IBM Corporation & Aktion AssociatesDemo
Create a shared view actions Custom Control
©2011 IBM Corporation & Aktion AssociatesShared fields
• Use a custom control to share fields on several XPages
• How you add fields depends on where you define the data source
©2011 IBM Corporation & Aktion AssociatesDemo
Create a shared fields Custom Control
©2011 IBM Corporation & Aktion AssociatesOpen Source Custom Controls
• Functionality delivered as Custom Controls
• OpenNTF.org
• Copy/paste Custom Control and associated file(s)
• • J Ju ulliia an n B Bu us ss s’’ Y Yo ou u@ @N No otte es s N Na am me e P Piic ck ke er r
©2011 IBM Corporation & Aktion AssociatesDemo
Incorporating the You@Notes Custom Control to your
XPages application
©2011 IBM Corporation & Aktion AssociatesCustom Control visibility
• Can show/hide an entire custom control with one visibility formula
• Can you do that with traditional Domino Development?
• You can use a computed subform, but that requires redrawing the
entire page
• • N No ott w wiitth h X XP Pa ag ge es s!!
©2011 IBM Corporation & Aktion AssociatesDemo
Show/hide a custom control dynamically
©2011 IBM Corporation & Aktion AssociatesXPages User Interface
• XPages do not include framesets, pages, outlines
• Use a framework to create the UI
• OneUI – the underpinning of IBM/Lotus applications (Quickr,
• • B Bllu ue e P Pr riin ntt – – o op pe en n s so ou ur rc ce e lla ay yo ou utt d dr riiv ve en n b by y C CS SS S
©2011 IBM Corporation & Aktion AssociatesBlue Pages UI
©2011 IBM Corporation & Aktion AssociatesDemo
Add a user interface with Blue Print
©2011 IBM Corporation & Aktion AssociatesQuestions
Fire away!
©2011 IBM Corporation & Aktion AssociatesContact Information
• Michael Sobczak
• Aktion Associates
• 800-425-8466 x2522
• msobczak@aktion.com
©2011 IBM Corporation & Aktion AssociatesLegal Disclaimer
© IBM Corporation 2011. All Rights Reserved.
The information contained in this publication is provided for informational purposes only. While efforts were made to verify the completeness and accuracy of the information contained in this publication, it is provided AS IS
without warranty of any kind, express or implied. In addition, this information is based on IBM’s current product plans and strategy, which are subject to change by IBM without notice. IBM shall not be responsible for any
damages arising out of the use of, or otherwise related to, this publication or any other materials. Nothing contained in this publication is intended to, nor shall have the effect of, creating any warranties or representations from
IBM or its suppliers or licensors, or altering the terms and conditions of the applicable license agreement governing the use of IBM software.
References in this presentation to IBM products, programs, or services do not imply that they will be available in all countries in which IBM operates. Product release dates and/or capabilities referenced in this presentation
may change at any time at IBM’s sole discretion based on market opportunities or other factors, and are not intended to be a commitment to future product or feature availability in any way. Nothing contained in these
materials is intended to, nor shall have the effect of, stating or implying that any activities undertaken by you will result in any specific sales, revenue growth or other results.
©2011 IBM Corporation & Aktion Associates
©2011 IBM