193 Lotus blogs updated hourly. Who will post next? Home | Blogs | Search | About 
 
Latest 7 Posts
Goodbye Evernote
Tue, Jan 17th 2017 5
Merry Christmas!
Sun, Dec 25th 2016 8
Visual Studio Code Editor
Fri, Nov 11th 2016 10
Work with Rich Text from DDS
Fri, Oct 21st 2016 7
A Polymer Avatar component
Wed, Oct 12th 2016 6
MWLUG Recap
Sat, Aug 20th 2016 10
Red Pill is the MWLUG Sponsor of the Week
Fri, Aug 12th 2016 9
Top 10
MWLUG Recap
Sat, Aug 20th 2016 10
Visual Studio Code Editor
Fri, Nov 11th 2016 10
Re-usability is the Goal!
Tue, Jun 14th 2016 9
Red Pill is the MWLUG Sponsor of the Week
Fri, Aug 12th 2016 9
My first impressions of using Titanium Appcelerator
Sun, Dec 8th 2013 8
I’m speaking at MWLUG 2016
Tue, Jun 28th 2016 8
Polymer app-layout Elements
Fri, Jul 1st 2016 8
sortablejs – Drag-n-Drop without jQuery UI
Thu, Jul 21st 2016 8
Merry Christmas!
Sun, Dec 25th 2016 8
IBM Please fix Domino authentication
Tue, May 24th 2016 7


2 Days with Domino 9.0.1 Mobile Controls – And I’m not happy
Twitter Google+ Facebook LinkedIn Addthis Email Gmail Flipboard Reddit Tumblr WhatsApp StumbleUpon Yammer Evernote Delicious
Keith Strickland    

OK, so today is the 2nd day I've spent with the Mobile controls from Domino 9.0.1. I must say the lack of a 9.0.1 Beta is quite obvious. So some of the "improvements" IBM made to the mobile controls are the addition of onBeforeTransitionIn/Out onAfterTransitionIn/Out. While these events are sorely needed, the implementation IBM chose to use doesn't work is kind-of odd.

So, a brief rundown of the transition events pre 9.0.1. I posted a while back about how to implement these methods in your mobile application. Short version is do a dojo.connect to attach to the needed transition event of an appPage. Then in that function make an RPC call to do any server side processing that might be needed. This initiated the following chain of events:

  • An HTTP POST request was sent that ran the RPC Method
  • The page moved to the destination page
  • onBeforeTransitionIn fired a partialRefresh to refresh the content of the destination page

This series of events still happens, kind-of, just not in that order. The events now process in this order:

  • A partialRefresh of the destination page happens
  • An HTTP POST request is sent that runs the RPC method
  • A dojox.mobile.TransitionEvent is fired which is supposed to move to the destination page

If your content is static and not programmatically determined, this is fine. But otherwise this is all wrong. Why is a partialRefresh firing before the POST? The POST is what determines which markup is to be shown on the destination page. With the partialRefresh happening before the POST these events and almost the components are now useless and it breaks any previous implementations of these events.

There is a work around for the moment that works to a point. The only place I've found that it doesn't work is if there is a dataView on the destination page and the dataView's configuration is programmatically determined (works fine if the configuration values are static). The work around is to add a callback to the RPC call with a partialRefresh of the destination page's first child element. Don't even try and use the events defined on the appPage component. So, if you watch the network traffic you'll see a GET then a POST and then another GET. This does however introduce a pretty good performance hit.

I think it's great that IBM listened to the community and added these events. However, it seems pretty obvious that the community wasn't given the chance to find these issues before the release. I think it also shows that these events weren't tested properly in a real world scenario. I guess if the events were called onBeforeBeforeTransitionIn/Out and onBeforeAfterTransitionIn/Out it would've made a little more sense.



---------------------
http://keithstric.me/2013/10/2-days-with-domino-9-0-1-mobile-controls-and-im-not-happy/
Oct 30, 2013
5 hits



Recent Blog Posts
5
Goodbye Evernote
Tue, Jan 17th 2017 5:22p   Keith Strickland
I’ve been using Evernote for a few years now and have enjoyed it’s feature set and the ability to plan and document a complex project (namely home/shop projects) with shopping lists, ideas, etc. But recently every time I attempt to use Evernote to create a quick note or maybe just jot something down, I’m presented with a request to upgrade to a pay plan, or to update or just general advertising. I can no longer just open it and create a note. Because of this, I have now backed
8
Merry Christmas!
Sun, Dec 25th 2016 10:57p   Keith Strickland
Merry Christmas!! I hope everyone is having a great holiday. I thought now might be a good time to look back over the year and review some of the technology I’ve dealt with. Surface Pro 4: Last year I got a Surface Pro 4 tablet. I started the process of switching to it instead of my aging MacBook Pro. While I REALLY like the hardware and how everything works there were just a few issues which got on my nerves so bad I couldn’t ever completely make the switch. As far as performance, I
10
Visual Studio Code Editor
Fri, Nov 11th 2016 3:42p   Keith Strickland
I’ve been using the Visual Studio Code editor for the last couple of weeks and thought I would share my experience. I’ve mainly used this in a plain ‘ole polymer application which consists of html files. Using the editor this way has shown some of it’s shortcomings. Don’t get me wrong, I think it’s a fine editor and has a lot of features I really like. However with CSS, HTML and JavaScript all residing in the same file, a lot of the typeahead features just don
7
Work with Rich Text from DDS
Fri, Oct 21st 2016 5:33p   Keith Strickland
So you’ve created your shiny new web application using DDS and everything is really cool, except for the display of rich text. You’ve figured out that there is a multipart MIME object in the JSON delivered by DDS, and it has the HTML in that, but it still looks crappy. It has tags littered throughout and just doesn’t look good. Well, I think I’ve got the solution for you. If you look at that multipart MIME Object and find the ‘text/html’ entry you’ll not
6
A Polymer Avatar component
Wed, Oct 12th 2016 5:50p   Keith Strickland
At MWLUG a lot of people seemed surprised that I would create a component just for an avatar. My response to that is why wouldn’t you build an avatar component? So, in this post I’m going to show you how to build one for your applications. Let’s start out with the use case. We want to show an avatar for a person in various locations throughout our application. This avatar should do a few different things: Should show a picture of a person if one is attached to their person do
10
MWLUG Recap
Sat, Aug 20th 2016 11:27p   Keith Strickland
I had a great time at MWLUG this year. It was great to see so many familiar faces and friends, most of which I only see at the user groups. But, I just got home and thought I would share some of my thoughts and observations about the event and my take away about the state of our beloved Notes. As usual Richard Moy put together a great conference, so many thanks to him for making that event possible. The tone of the event was that most everyone is starting to realize that the Notes client is qui
9
Red Pill is the MWLUG Sponsor of the Week
Fri, Aug 12th 2016 12:21p   Keith Strickland
Red Pill Now is the Sponsor of the Week for MWLUG. Check out our video in the top right corner of the site. .huge-it-share-buttons { border:0px solid #0FB5D6; border-radius:5px; text-align:right; } #huge-it-share-buttons-top {margin-bottom:0px;} #huge-it-share-buttons-bottom {margin-top:0px;} .huge-it-share-buttons h3 { font-size:25px ; font-f
4
Domino svg support
Fri, Aug 12th 2016 12:09p   Keith Strickland
I’ve been messing with the Polymer vaadin-grid. If you enable hidable columns, a little graphic svg icon shows in the top right hand corner of the grid that produces a drop down menu of all the columns in the grid. You click one and it’ll hide that column. This was working great when running from my local gulp server. However when I put it on Domino, the little icon wasn’t showing, but the button was there (you couldn’t see it tho) and the menu worked when clicked. I di
5
Setting up a Polymer development environment
Fri, Jul 29th 2016 11:35a   Keith Strickland
When working with Polymer you’ll need a development environment. Google has created some great tools for doing this, mainly the Polymer-CLI. This is a command line interface for creating elements, applications, building applications (though I prefer a Gulp build system), a web server and some other misc. tools. This should be your starting point for setting up your development environment. To setup the polymer-cli you’ll need a few dependencies: Git Node.js (4.x) Bower Once those a
8
sortablejs – Drag-n-Drop without jQuery UI
Thu, Jul 21st 2016 4:59p   Keith Strickland
I had a need to enable drag-n-drop for a particular part of our portal. In the past I’ve always used jQuery-UI as it’s quite easy to enable drag-n-drop. Doing some research I came across a StackOverflow question about enabling drag-n-drop with Polymer. One of the answers mentioned sortablejs. This is a very minimalist library to enable drag-n-drop. Best part about this library is that it has a port for Polymer. BONUS! But there are several ports available: Angular, Knockout, Meteor,




Created and Maintained by Yancy Lent - About - Planet Lotus Blog - Advertising - Mobile Edition