SlideShare a Scribd company logo
The Ties That Bind: Examples of XPages Data Binding
Michael McGarel Blog:  http://www.bleedyellow.com/blogs/McGarelGramming/ LinkedIn:  http://www.linkedin.com/in/mikemcgarel Twitter:  http://www.twitter.com/mmcgarel Mike is a full-time developer for Czarnowski, a North American exhibit services company. A specialist in Web-based collaboration and workflow, he has been concentrating on XPages development for all new projects. Mike is an active member of the IBM/Lotus developer community and is currently the Vice President of GRANITE, the Chicago-based IBM/Lotus user group, where he is a regular presenter. He has been  playing  working with Notes and Domino for over twelve years, starting with version 4.6.
Roy Rumaner Blog:  http://rrumaner.blogspot.com/ Blog:  http://rrumaner.wordpress.com/ LinkedIn:  http://www.linkedin.com/in/royrumaner Twitter:  http://twitter.com/rrumaner With over twenty five years experience in software development, Roy has spent the past 19 years working with Lotus Notes. He has co-authored two books on Lotus Notes, taught beginning XPages classes for the GRANITE User Group, writes about Notes and local restaurants on his blogs, holds a CLP in Development and is an IBM Business Partner. He is currently working for a national bank, converting all their Notes applications into XPages.
Agenda Data Binding What is Data Binding What Can Be Bound Examples of Data Binding Steps For Form Data Binding View Data Binding Data Binding In A Repeat Resources
Data Binding
What is Data Binding? In XPages, the user interface is completely separate from the data You need a way to access the data. XPages are  tied  to traditional Domino forms and views through Data Binding.  Data Binding is the use of Server-side JavaScript (SSJS) or Expression Language (EL) to connect the backend Notes data to the XPage.
What Can Be Bound Document Field Data View Data Coding from SSJS  @DbLookup() @DbColumn() NotesViewEntryCollections NotesDocumentCollections and more...
Examples of Data Binding
Current Client Application
Steps for Form Data Binding First we need to create a blank Custom Control
Steps for Form Data Binding Step 1: Select the Data Properties Step 2: Select Add. In this case we are going to create a new form so  choose Domino Document
Steps for Form Data Binding Step 3: After selecting Domino Document, the right side of the properties opens up. The default name for your data source is “document1”.
Steps for Form Data Binding Step 4: Change the default name to something meaningful. We chose “dataDoc” for this one.
Steps for Form Data Binding Step 5: Next you need to bind the Custom Control to (in this case) a form. Every form in the database is available from this menu.
Steps for Form Data Binding Step 6: We chose the Library Reference form.
Steps for Form Data Binding Step 7: Next select the default action when this form is accessed.
Steps for Form Data Binding Step 8: We chose Open Document for this form
Steps for Form Data Binding Step 9: Now that you have identified the proper form, a list of all available fields will appear in the Data Controls box (upper right) Step 10: We want all the fields except  CheckedOut. Highlight them and drag the list to the design window.
Steps for Form Data Binding
Steps for Form Data Binding Step 11: All the fields you selected are now available for initial set up.
Steps for Form Data Binding Step 12: Change the Date field to a DateTime Picker. Material and Categories to List Boxes and Location to a Combo Box.
New Xpage  (based on previous data binding)
Setting the Date Field Step 13: Even though the Date Published field was created as a DateTime, you still need to set it to display properly.
Steps for Form Data Binding Step 14: Now the Date Published field shows as a date field.
Steps for Form Data Binding
Steps for Form Data Binding
View Data Binding
View Data Binding
View Data Binding
Data Binding In a Repeat @DbColumn(@DbName(),'ByCategories',1)
Data Binding In a Repeat
Data Binding In a Repeat
SSJS Syntax # indicates dynamic Recalculates every time the section of the page with the code reloads "#{javascript:doc.getItemValueString('Status')}" $ static after page load Calculates only on page load "${javascript:@Subset(@DbName(),1)}"
Resources XPages.info OpenNTF.org NotesIn9.com Application Development Wiki http://www-10.lotus.com/ldd/ddwiki.nsf Julian Buss' XPages Wiki htttp://xpageswiki.com XPages forum http://www-10.lotus.com/ldd/xpagesforum.nsf MWLUG 2011 Workshop (on presentations page) http://www.mwlug.com/mwlug/mwlug2011.nsf/uxpages/presentations.uxp
Summary XPages allow you to reuse your current application data and present a new UI. Remember that XPages separates data from the UI. Data binding allows for more flexibility in presenting data. You can have multiple data sources on an Xpage. It is not difficult to establish simple data binding. The code is written for you.
Thank You For Attending The authors would appreciate any feedback or comments you care to give. Please contact either one at their respective email addresses.

More Related Content

PPT
UML Diagrams
PDF
Software Engineering :UML class diagrams
PPTX
2 Machine design process
PPTX
Design Concepts in Software Engineering-1.pptx
PPTX
M1: Introduction to Design for Manufacture
PPTX
Software Engineering - Module 3: Lesson7
KEY
Graphs, Edges & Nodes - Untangling the Social Web
PPT
System design
UML Diagrams
Software Engineering :UML class diagrams
2 Machine design process
Design Concepts in Software Engineering-1.pptx
M1: Introduction to Design for Manufacture
Software Engineering - Module 3: Lesson7
Graphs, Edges & Nodes - Untangling the Social Web
System design

What's hot (20)

PPT
Activity diagrams
PDF
Ch_6.pdf
PDF
Collaboration diagram- UML diagram
PPT
Structure chart vs flow chart
PPT
Uml Activity Diagram
DOC
Hld and lld
PPT
OO Development 5 - Analysis
PDF
Catia File
PPTX
Software Engineering unit 3
PPTX
Dfa guidelines
PPS
PRO ENGINEER BASIC
PDF
Software engineering a practitioners approach 8th edition pressman solutions ...
PPTX
Meshing Techniques.pptx
PPTX
PPTX
Catia sketcher workbench
PPTX
Reusibility vs Extensibility in OOAD
DOCX
Training report on catia
PPTX
Nx Unigraphics
PPT
CATIA V5 Lectures.ppt
PPTX
Pro e
Activity diagrams
Ch_6.pdf
Collaboration diagram- UML diagram
Structure chart vs flow chart
Uml Activity Diagram
Hld and lld
OO Development 5 - Analysis
Catia File
Software Engineering unit 3
Dfa guidelines
PRO ENGINEER BASIC
Software engineering a practitioners approach 8th edition pressman solutions ...
Meshing Techniques.pptx
Catia sketcher workbench
Reusibility vs Extensibility in OOAD
Training report on catia
Nx Unigraphics
CATIA V5 Lectures.ppt
Pro e
Ad

Similar to XPages - The Ties That Bind (20)

PPTX
Advance Webpage Devlopment .NET
PPS
Ado.net session02
PDF
Data Binding and Data Grid View Classes
PDF
Flex3 data binding
PPTX
Databind in asp.net
PPTX
ADF Bindings & Data Controls
PPTX
Data Binding for Xamarin Forms In-Depth
KEY
WPF Binding
PDF
Presenting Data – An Alternative to the View Control
PPT
Silverlight Databinding
PPT
XPages Workshop: Concepts And Exercises
PPT
Flex3 Deep Dive Final
PPT
Chapter 10
PPS
Vb.net session 06
PPTX
Configuring Data Binding part1 ABTO Software Lecture Korotchyn
PDF
Just the Facets, Ma'am
PPTX
WPF - Controls & Data
PPTX
Soa 29 jaxb data binding
PPTX
Bccon use notes objects in memory and other useful
ODP
AD207 Presentation
Advance Webpage Devlopment .NET
Ado.net session02
Data Binding and Data Grid View Classes
Flex3 data binding
Databind in asp.net
ADF Bindings & Data Controls
Data Binding for Xamarin Forms In-Depth
WPF Binding
Presenting Data – An Alternative to the View Control
Silverlight Databinding
XPages Workshop: Concepts And Exercises
Flex3 Deep Dive Final
Chapter 10
Vb.net session 06
Configuring Data Binding part1 ABTO Software Lecture Korotchyn
Just the Facets, Ma'am
WPF - Controls & Data
Soa 29 jaxb data binding
Bccon use notes objects in memory and other useful
AD207 Presentation
Ad

More from Michael McGarel (9)

PPTX
Next Level Coding
PPTX
Object(ive) Thinking
PDF
Extreme Development: Pair Programming
PPTX
MWLUG2014 AD107 First Java App Tips
PDF
BP204 It's Not Infernal: Dante's Nine Circles of XPages Heaven
ODP
How To Build a Multi-Field Search Page For Your XPages Application
PPTX
XPages Workshop: Customizing OneUI
ODP
Two CCs of Layout -- Stat
ODP
Approaches to Enhancing the User Experience
Next Level Coding
Object(ive) Thinking
Extreme Development: Pair Programming
MWLUG2014 AD107 First Java App Tips
BP204 It's Not Infernal: Dante's Nine Circles of XPages Heaven
How To Build a Multi-Field Search Page For Your XPages Application
XPages Workshop: Customizing OneUI
Two CCs of Layout -- Stat
Approaches to Enhancing the User Experience

Recently uploaded (20)

PDF
Architecture types and enterprise applications.pdf
PDF
Transform Your ITIL® 4 & ITSM Strategy with AI in 2025.pdf
PDF
NewMind AI Weekly Chronicles - August'25-Week II
PPT
What is a Computer? Input Devices /output devices
PPTX
cloud_computing_Infrastucture_as_cloud_p
PPTX
OMC Textile Division Presentation 2021.pptx
PPTX
Group 1 Presentation -Planning and Decision Making .pptx
PPTX
Programs and apps: productivity, graphics, security and other tools
PPTX
The various Industrial Revolutions .pptx
PDF
TrustArc Webinar - Click, Consent, Trust: Winning the Privacy Game
PDF
August Patch Tuesday
PDF
How ambidextrous entrepreneurial leaders react to the artificial intelligence...
PDF
gpt5_lecture_notes_comprehensive_20250812015547.pdf
PDF
DP Operators-handbook-extract for the Mautical Institute
PDF
A comparative study of natural language inference in Swahili using monolingua...
PPTX
Modernising the Digital Integration Hub
PDF
Microsoft Solutions Partner Drive Digital Transformation with D365.pdf
PDF
STKI Israel Market Study 2025 version august
PPTX
MicrosoftCybserSecurityReferenceArchitecture-April-2025.pptx
PDF
From MVP to Full-Scale Product A Startup’s Software Journey.pdf
Architecture types and enterprise applications.pdf
Transform Your ITIL® 4 & ITSM Strategy with AI in 2025.pdf
NewMind AI Weekly Chronicles - August'25-Week II
What is a Computer? Input Devices /output devices
cloud_computing_Infrastucture_as_cloud_p
OMC Textile Division Presentation 2021.pptx
Group 1 Presentation -Planning and Decision Making .pptx
Programs and apps: productivity, graphics, security and other tools
The various Industrial Revolutions .pptx
TrustArc Webinar - Click, Consent, Trust: Winning the Privacy Game
August Patch Tuesday
How ambidextrous entrepreneurial leaders react to the artificial intelligence...
gpt5_lecture_notes_comprehensive_20250812015547.pdf
DP Operators-handbook-extract for the Mautical Institute
A comparative study of natural language inference in Swahili using monolingua...
Modernising the Digital Integration Hub
Microsoft Solutions Partner Drive Digital Transformation with D365.pdf
STKI Israel Market Study 2025 version august
MicrosoftCybserSecurityReferenceArchitecture-April-2025.pptx
From MVP to Full-Scale Product A Startup’s Software Journey.pdf

XPages - The Ties That Bind

  • 1. The Ties That Bind: Examples of XPages Data Binding
  • 2. Michael McGarel Blog: http://www.bleedyellow.com/blogs/McGarelGramming/ LinkedIn: http://www.linkedin.com/in/mikemcgarel Twitter: http://www.twitter.com/mmcgarel Mike is a full-time developer for Czarnowski, a North American exhibit services company. A specialist in Web-based collaboration and workflow, he has been concentrating on XPages development for all new projects. Mike is an active member of the IBM/Lotus developer community and is currently the Vice President of GRANITE, the Chicago-based IBM/Lotus user group, where he is a regular presenter. He has been playing working with Notes and Domino for over twelve years, starting with version 4.6.
  • 3. Roy Rumaner Blog: http://rrumaner.blogspot.com/ Blog: http://rrumaner.wordpress.com/ LinkedIn: http://www.linkedin.com/in/royrumaner Twitter: http://twitter.com/rrumaner With over twenty five years experience in software development, Roy has spent the past 19 years working with Lotus Notes. He has co-authored two books on Lotus Notes, taught beginning XPages classes for the GRANITE User Group, writes about Notes and local restaurants on his blogs, holds a CLP in Development and is an IBM Business Partner. He is currently working for a national bank, converting all their Notes applications into XPages.
  • 4. Agenda Data Binding What is Data Binding What Can Be Bound Examples of Data Binding Steps For Form Data Binding View Data Binding Data Binding In A Repeat Resources
  • 6. What is Data Binding? In XPages, the user interface is completely separate from the data You need a way to access the data. XPages are tied to traditional Domino forms and views through Data Binding. Data Binding is the use of Server-side JavaScript (SSJS) or Expression Language (EL) to connect the backend Notes data to the XPage.
  • 7. What Can Be Bound Document Field Data View Data Coding from SSJS @DbLookup() @DbColumn() NotesViewEntryCollections NotesDocumentCollections and more...
  • 10. Steps for Form Data Binding First we need to create a blank Custom Control
  • 11. Steps for Form Data Binding Step 1: Select the Data Properties Step 2: Select Add. In this case we are going to create a new form so choose Domino Document
  • 12. Steps for Form Data Binding Step 3: After selecting Domino Document, the right side of the properties opens up. The default name for your data source is “document1”.
  • 13. Steps for Form Data Binding Step 4: Change the default name to something meaningful. We chose “dataDoc” for this one.
  • 14. Steps for Form Data Binding Step 5: Next you need to bind the Custom Control to (in this case) a form. Every form in the database is available from this menu.
  • 15. Steps for Form Data Binding Step 6: We chose the Library Reference form.
  • 16. Steps for Form Data Binding Step 7: Next select the default action when this form is accessed.
  • 17. Steps for Form Data Binding Step 8: We chose Open Document for this form
  • 18. Steps for Form Data Binding Step 9: Now that you have identified the proper form, a list of all available fields will appear in the Data Controls box (upper right) Step 10: We want all the fields except CheckedOut. Highlight them and drag the list to the design window.
  • 19. Steps for Form Data Binding
  • 20. Steps for Form Data Binding Step 11: All the fields you selected are now available for initial set up.
  • 21. Steps for Form Data Binding Step 12: Change the Date field to a DateTime Picker. Material and Categories to List Boxes and Location to a Combo Box.
  • 22. New Xpage (based on previous data binding)
  • 23. Setting the Date Field Step 13: Even though the Date Published field was created as a DateTime, you still need to set it to display properly.
  • 24. Steps for Form Data Binding Step 14: Now the Date Published field shows as a date field.
  • 25. Steps for Form Data Binding
  • 26. Steps for Form Data Binding
  • 30. Data Binding In a Repeat @DbColumn(@DbName(),'ByCategories',1)
  • 31. Data Binding In a Repeat
  • 32. Data Binding In a Repeat
  • 33. SSJS Syntax # indicates dynamic Recalculates every time the section of the page with the code reloads "#{javascript:doc.getItemValueString('Status')}" $ static after page load Calculates only on page load "${javascript:@Subset(@DbName(),1)}"
  • 34. Resources XPages.info OpenNTF.org NotesIn9.com Application Development Wiki http://www-10.lotus.com/ldd/ddwiki.nsf Julian Buss' XPages Wiki htttp://xpageswiki.com XPages forum http://www-10.lotus.com/ldd/xpagesforum.nsf MWLUG 2011 Workshop (on presentations page) http://www.mwlug.com/mwlug/mwlug2011.nsf/uxpages/presentations.uxp
  • 35. Summary XPages allow you to reuse your current application data and present a new UI. Remember that XPages separates data from the UI. Data binding allows for more flexibility in presenting data. You can have multiple data sources on an Xpage. It is not difficult to establish simple data binding. The code is written for you.
  • 36. Thank You For Attending The authors would appreciate any feedback or comments you care to give. Please contact either one at their respective email addresses.