ask the xpages experts

36
Ask the XPages Experts Tweet about this event: #XPages and mention us: @teamstudio @TLCCLTD @MarkyRoden @Gidgerby @Eknori April 10, 2014

Upload: teamstudio

Post on 14-May-2015

401 views

Category:

Technology


4 download

DESCRIPTION

Three IBM Champions each give a short presentation, then spend the remainder of the time answering XPages questions. The brief presentations are from XPages experts: -Mark Roden on "Speeding Up Designer" -Jesse Gallagher on "Recycle: When, where, why, how and the OpenNTF Domino API" -Ulrich Krause on "Using Dojo with Multi-Lingual Apps"

TRANSCRIPT

Page 1: Ask the XPages Experts

Ask the XPages Experts

Tweet about this event: #XPages and mention us: @teamstudio @TLCCLTD

@MarkyRoden @Gidgerby @Eknori April 10, 2014

Page 2: Ask the XPages Experts

@teamstudio teamstudio.com

@TLCCLTD

tlcc.com

Courtney Carter Inbound Marketing Specialist

Page 3: Ask the XPages Experts

Who We Are • Our background is in creating tools for collaborative

computing in mid-size and large enterprises, primarily for IBM Notes

• Easy-to-use tools for developers and administrators • 2300+ active customers, 47 countries • Offices in US, UK and Japan • Entered mobile space in 2010 with Unplugged: easy

mobilization of Notes apps to Blackberry, Android and iOS

Page 4: Ask the XPages Experts

Teamstudio Unplugged • Your mobile Domino server: take your Notes apps

with you! • End-users access Notes applications from mobile

devices whether online or offline • Leverages existing skills and technology – XPages –

a replication model you already know • Unplugged 3.0 recently released

Page 5: Ask the XPages Experts

Unplugged Templates • Continuity – Mobile offline access to

BCM programs

• OneView Approvals – Expense approvals; anywhere, anytime

• CustomerView – lightweight CRM framework for field sales and field service teams

• Contacts – customer information database • Activities – customer activity log • Media – mobile offline file storage and access

Page 6: Ask the XPages Experts

• Next Wireless Wednesdays webinar: Part 4 on May 7, 2014 o jQuery Mobile

• Next Teamstudio/TLCC webinar: May 13, 2014 o It’s Not Infernal: Dante’s Nine Circles of XPages Heaven

• Promotion: o Demo the administration interface for Unplugged and be

entered to win a Galaxy Tab 3

Page 7: Ask the XPages Experts

Ask the Xpages Experts

1

#XPages

Your Hosts Today:

Howard Greenberg TLCC

@TLCCLtd

Paul Della-Nebbia TLCC

@PaulDN

Page 8: Ask the XPages Experts

TLCC Courses and Services

• The Leader in Notes and Domino Training since 1997

• Self Paced Distance Learning Courses for Notes/Domino

– XPages, Development, and Administration (user too!) • OnSite Private Classes • Mentoring/Consulting Services • Free demo courses

– Intro. To XPages Development – Application Development 1

2

Page 9: Ask the XPages Experts

Upcoming and Recorded Webinars

3

Webinar Schedule It’s Not Infernal: Dante’s Nine Circles of XPages Heaven – May 13th Bootstrap4XPages – June 17th

www.tlcc.com/xpages-webinar

View Previous Webinars (use url above)

Page 10: Ask the XPages Experts

Administrator Webinar

• Tell Your Admins! • Webinar on April 24th

– Topic: Replication – With Kim Greene and Ben Menesi

• Register at: http://www.tlcc.com/admin/tlccsite.nsf/pages/admin-webinar?opendocument

4

Page 11: Ask the XPages Experts

Asking Questions

5

Q & A at the end! Type in your questions as they come up

Page 12: Ask the XPages Experts

Your Presenters Today:

#XPages 6

Jesse Gallagher Recycle: When, where, why, how and the OpenNTF Domino API

Ulrich Krause Using Dojo with Multi-Lingual Apps

Mark Roden "Speeding Up Designer"

@Gidgerby @Markyroden @Eknori

Page 13: Ask the XPages Experts
Page 14: Ask the XPages Experts

FIRST MISCONCEPTION

• Recycling is not about memory management! • It’s more akin to managing network connections • It’s not uncommon to have both at once, but

that’s because programmers playing fast and loose with in-scope objects may ALSO play fast and loose with recycling

Page 15: Ask the XPages Experts

SECOND MISCONCEPTION

• It’s not just when writing Java! • SSJS Domino objects are Java

Domino objects and have the same rules about recycling

• Only LotusScript is safe. Still not worth it

Page 16: Ask the XPages Experts

WHEN MUST YOU RECYCLE?

• Short answer: mostly when looping • Normal Java contexts (namely XPages) will recycle the session

at the end of execution/request • Recycling an object recycles all children, and everything is a

child of Session • Looping can create thousands of objects • Not just the documents/entries – a loop can spew Names,

DateTimes, and Items • .replaceItemValue returns an Item!

Page 17: Ask the XPages Experts

SO BASICALLY View tests = database.getView("Tests");

Document doc = tests.getFirstDocument();

while(doc != null) {

Vector<?> columnValues = doc.getColumnValues();

// do stuff here

doc.recycle(columnValues);

// as well as any DateTimes or Names otherwise created

Document tempDoc = doc;

doc = tests.getNextDocument(doc);

tempDoc.recycle();

}

Page 18: Ask the XPages Experts

OR, BETTER

• Use the OpenNTF API! • You don’t have to recycle when using the API • It hooks into Java’s normal garbage collection smarts to auto-recycle

for you • Strike an entire category of bugs off of your problem list • …plus all of the other stuff the API brings you!

• Documentation • Helper classes • New methods • Standard Java interfaces • Happiness

Page 19: Ask the XPages Experts

Ask The XPages Experts

Ulrich Krause, 10-Apr-2014

Using Dojo with Multi-Lingual Apps

Page 20: Ask the XPages Experts

Ask the XPages Experts

About: Ulrich Krause

Administrator /Developer since 1993 Senior Software Architect

Blog http://www.eknori.de Twitter: @eknori Mail: [email protected] IBM Champion 2011/2012/2013/2014

Page 21: Ask the XPages Experts

Ask the XPages Experts

Agenda

A few words about multi-lingual applications What is the issue with multi-lingual applications ? How can we fix it ?

Page 22: Ask the XPages Experts

Ask the XPages Experts

A few words about multi-lingual applications

http://de.slideshare.net/kjbrown13/bp208-pdf

Page 23: Ask the XPages Experts

Ask the XPages Experts

What is the issue with multi-lingual applications ?

Language Settings can be:

• Fixed

• Depend on browser language

• User can choose a language

Page 24: Ask the XPages Experts

Ask the XPages Experts

How can we fix it

Page 25: Ask the XPages Experts

1

Speeding Up Domino Designer

Dr. Mark Roden Senior Consultant, PSC Group LLC

10th April 2014

Page 26: Ask the XPages Experts

About Marky • Over 16 years IBM Notes Domino® work • Engagement manager at PSC Group

• Web Developer • Project Leader

• Contact Information • Blog: http://www.xomino.com • Email: [email protected] • Twitter: @markyroden • Skype: marky.roden

www.psclistens.com @pscgroup

2

Page 27: Ask the XPages Experts

Agenda • Speeding up Domino Designer

• Don’t Use Resources

• Better Use of Custom Controls

• Use Resources ! 3

Page 28: Ask the XPages Experts

Agenda • Speeding Up Domino Designer?How can jQuery

plugins solve my requirements

4

Page 29: Ask the XPages Experts

Don’t use resources • All resources are loaded into designer as you

work – slows you down

5

Page 30: Ask the XPages Experts

Better use of Custom Controls • Code looks simple enough

6

Page 31: Ask the XPages Experts

Better use of Custom Controls • Screen harder to work with

7

Page 32: Ask the XPages Experts

Better use of Custom Controls • Use Design Definition to make XPage more

readable and prevent code being loaded and rendered

8

Page 33: Ask the XPages Experts

Use Resources ! • Move your

resources to a Custom Control and using Design Definition they will not be loaded

9

Page 34: Ask the XPages Experts

• Questions and Answers

http://www.xomino.com http://demo.xomino.com

twitter: @MarkyRoden

Page 35: Ask the XPages Experts

Questions????

7

Use the Q&A pane in WebEx to ask questions We will answer your questions verbally

Page 36: Ask the XPages Experts

Upcoming Events: 4/23 Webcast on Mail Next with IBM 4/24 - Administration Webinar on Replication 5/7 – Wireless Wednesday with Teamstudio 5/13 – TLCC XPages Webinar 6/16-17 – Social Connections in Prague 8/27-29 – MWLug in Grand Rapids, MI

Question and Answer Time!

8

Teamstudio Questions? [email protected] 877-228-6178

TLCC Questions?

[email protected] [email protected] 888-241-8522 or 561-953-0095

Howard Greenberg Courtney Carter

#XPages

@TLCCLtd

@Teamstudio

@PaulDN

Paul Della-Nebbia Mark Roden Ulrich Krause Jesse Gallagher