10 Things You're Not Doing [IBM Lotus Notes Domino Application Development]
Report
Share
Chris TooheyAuthor / Speaker / Consultant at dominoGuru.com
Follow
•0 likes•994 views
1 of 13
10 Things You're Not Doing [IBM Lotus Notes Domino Application Development]
•0 likes•994 views
Report
Share
Download to read offline
My Lotusphere 2011 SpeedGeeking session - 10 Things You're Not Doing!
Gave this presentation in 5 minutes 13 times [in a row, back to back], and had a blast!
Chris TooheyAuthor / Speaker / Consultant at dominoGuru.com
10 Things You're Not Doing [IBM Lotus Notes Domino Application Development]
1. GBS Presents 10 Things You're Not Doing A Developer's Guide to Simple Yet Overlooked Techniques & Resources for the IBM Lotus Domino Application Developer Chris Toohey Guru, GBS
18. “ Progressive Enhancement” for Software Development Design for “base” functionality across all clients, but provide enhanced features & functionality based on User Agent/Client Device capabilities. Leveraging GPS via JavaScript < script > var clng = getLongitude(); var clat = getLatitude(); var message = document.getElementById("message"); message.innerHTML=" < li > Longitude: " + clng + " </ li > "; message.innerHTML+=" < li > Latitude: " + clat + " </ li > "; </ script >
19. Cloud Services Integration Most “Cloud Services” expose their solution via integration APIs... but are often even more simple to employ. REALLY Simple: < iframe width = "425" height = "350" frameborder = "0" scrolling = "no" marginheight = "0" marginwidth = "0" src = "http://maps.google.com/maps?f=q&source=s_q&hl=en&q=dolphin+hotel, +disney&aq=&sll=28.367235,-81.559539&sspn=0.006278,0.011362&ie=UTF8 &rq=1&ev=zo&split=1&t=h&radius=0.41&hq=dolphin+hotel,+disney &hnear=&ll=28.369057,-81.560633&spn=0.003738,0.005783&output=embed" > </ iframe >
24. Controlling the XPage Content Type One-click Microsoft Excel (or Symphony Spreadsheets) via XPages and SSJS <? xml version = "1.0" encoding = "UTF-8" ?> < xp:view xmlns:xp = "http://www.ibm.com/xsp/core" rendered = "false" > < xp:this.afterRenderResponse ><![CDATA[ #{javascript:var exCon = facesContext.getExternalContext(); var writer = facesContext.getResponseWriter(); var response = exCon.getResponse(); var projects:NotesView = database.getView('projects') var viewNav:NotesViewNavigator = projects.createViewNav(); var viewEnt:NotesViewEntry = viewNav.getFirst(); var output:string = ""; while (viewEnt != null) { output += "<tr>"; output += "<td>" + viewEnt.getColumnValues()[0]; + "</td>"; output += "<td>" + viewEnt.getColumnValues()[2] + "</td>"; output += "<td>" + viewEnt.getColumnValues()[1] + "</td>"; output += "<td>" + viewEnt.getColumnValues()[3] + "</td>"; output += "</tr>"; viewEnt = viewNav.getNext(viewEnt); } response.setContentType("application/vnd.ms-excel"); response.setHeader("Content-disposition", "attachment; filename=projects.xls"); response.setHeader("Cache-Control", "no-cache"); writer.write("<table>"); writer.write("<thead><tr>"); writer.write("<td><b>Project</b></td>"); writer.write("<td><b>Developer</b></td>"); writer.write("<td><b>Estimate ( Hours )</b></td>"); writer.write("<td><b>Estimate ( Budget )</b></td>"); writer.write("</tr></thead>"); writer.write(output); writer.write("</table>"); writer.endDocument();} ]]></ xp:this.afterRenderResponse > </ xp:view >
25. Leveraging Pass-Thru Markup in XPages Inline Markup including HTML, CSS, JavaScript, XML combined with native XPages markup: <? xml version = "1.0" encoding = "UTF-8" ?> < xp:view xmlns:xp = "http://www.ibm.com/xsp/core" createForm = "false" pageTitle = "iPages" > < xp:this.data > < xp:dominoDocument var = "thisdoc" formName = "document" ></ xp:dominoDocument > </ xp:this.data > < xp:this.resources > < div id = "topbar" class = "transparent" > < div id = "leftnav" > < a href = "index.xsp" > < img alt = "home" src = "images/home.png" /> </ a > </ div > … Easily adopt Frameworks and extend the RAD [Rapid Application Development] output and “perceived capabilties” of the IBM Lotus Notes Domino Platform!
26. Dev.Opera HTML, CSS, JavaScript, XML, and more! The premier destination to learn HTML5, CSS3, SVG, JavaScript, and other cutting-edge technologies and techniques from the browser with the Open Web at its core. http://dev.opera.com
27. The Lotus Online Community Connect with your fellow Lotus IT Professionals online and across the various social networks! http://greenhouse.lotus.com [sametime.lotus.com Sametime] http://bleedyellow.com [community Sametime] http://planetlotus.org [Lotus-themed blogger community] http://twitter.com/LotusTechInfo [Official LTIE Twitter] http://facebook.com/LotusTechInfo [Official LTIE Facebook Fan & Events Page] http://linkedIn.com Groups: Lotus Notes Professionals Lotus Professionals (3500+ Members)
28. For more... Contact Me Chris Toohey Guru, GBS http://www.gbs.com My blog: dominoGuru.com Social Networking Facebook.com/christoohey Twitter.com/christoohey LinkedIn.com/christoohey
Editor's Notes
Three pillars & strategy Live PaaS for ISV’s (Public Cloud) Corporate Cloud (Infrastructure & PaaS) Application Framework Business applications Cont. merger Freedom of choice for the market (Saas-ified or client/server-based) Framework Corporate Cloud (PaaS) Services Hosting & Infrastructure Upgrades Administration Development (xPages) using framework 3