Last week, when preparing for the XPages Mobile Controls session at BLUG, Eamon Muldoon introduced me to a useful tip when testing on iOS. The problem is that many browsers such as Firefox and Safari use, by default, webkit styling, so use Android stylesheets.
But Safari has an option to change the user agent.
The first step is to enable the Develop menu. Go to Edit – Preferences. Then on the Advanced tab, check Show Develop menu in menu bar.
This will enable the Develop menu. From here you can go to the User Agent submenu and change the user agent to e.g. iPhone, iPad, or choose Other… to set up a custom user agent.
Now you can use the browser to see the iOS stylesheets and simulate functionalityfor a specific user agent.
The Perils of getColumnValues().get(0)
Sun, Jul 20th 2014 4:12p Paul Withers Bill F posed a good question on StackOverflow about the issue of object.recycle and when to use it. It’s un understandable question and one I hit years ago after crashing a server looping through 20,000 documents in a search. I raised a PMR, got a response directing me to technotes on recycling in Java. Searching help, wikis and other places gave me no documentation on recycling in SSJS, which gave me reason to believe I was the first to hit the problem in XPages. So I blogged about it at [read] Keywords: agent
XPages Build Project Investigations Improvement
Wed, Jul 9th 2014 7:15a Paul Withers Some time ago I wrote about how you have to build twice if you have Build Automatically switched off, then open an application in Designer and make a change – the first build was incremental.
Just to revisit, I would always recommend having Build Automatically switched off unless you’re in an instance of Designer that can only ever have access to a local Domino server or local applications. Building a database remotely is not quick. Building a database has been known to break it if t [read] Keywords: domino
Triggering an EventHandler from Another Button
Tue, Jul 8th 2014 7:15a Paul Withers Today there was a question on StackOverflow about how to trigger an eventHandler of control A from control B. I knew I’d done it before, but couldn’t remember where and couldn’t find where I’d blogged on it. So here is the way I originally did it and the better way.
The Padawan’s Way
Once you start going to the source pane, you see much more than you do in the Design pane. One of those things you see is that you can click on an xp:eventHandler component and you see [read] Keywords: xpages java
What Happens When An XPage Loads?
Wed, Jul 2nd 2014 4:11p Paul Withers There have been a few questions lately on StackOverflow trying to troubleshoot activity during the initial page load. So I thought I’d write a post to try to clarify the process. This certainly helps me pre-empt some functionality and provides an explanation for some of the questions I’ve seen. Using code from Jesse Gallagher’s XPages Scaffolding in projects has really helped give me this understanding, so I’d like to give Jesse a shoutout for his work.
ViewHandlers and C [read] Keywords: xpages database
Document Wrappers, Combo Boxes and Blank Fields
Fri, Jun 13th 2014 7:12a Paul Withers In a recent project I’ve extended the document wrapper Tim Tripcony showed in his NotesIn9 series on XPages and Java. Previously I’ve just used the dominoDocument datasource on the XPage. Today I was battling with a problem when editing a document that had been created in Notes. I was getting the very helpful message “Validation Error: Value is not valid”, with no help on which field it was referring to.
I eventually tracked it down to a Combo Box. On the underlying docum [read] Keywords: notes
10 Steps to deploying a successful social business platform Step 7: Roll out in phases
Wed, Jun 4th 2014 8:15a Paul Withers There is no definitive ‘live date’ for a social business platform. With both 1st and 2nd wavers it is necessary to develop it in stages. After all, these people will be busy with their respective jobs and the time that they can devote to the platform in the early stages will vary enormously. This is the art of the community manager – the ability to work with users to identify a few simple business tasks that can be performed solely in the platform. They should then assist the business to c [read] Keywords: collaboration