193 Lotus blogs updated hourly. Who will post next? Home | Blogs | Search | About 
 
Latest 7 Posts
Auto-width Bootstrap Column XPages Controls
Tue, Mar 21st 2017 136
Swiper FP8 Version Beta Release
Thu, Mar 16th 2017 38
Swiper FP8 Integration Rollout
Wed, Mar 8th 2017 7
Markdown XPages UIControl
Sun, Mar 5th 2017 9
TextDiff XPages control – For visual comparison of text
Tue, Feb 28th 2017 8
XPages webmail – Using Mime Inspector to debug Mime
Tue, Feb 14th 2017 8
Pasting Images into XPages CKEditor
Sun, Feb 12th 2017 15
Top 10
Auto-width Bootstrap Column XPages Controls
Tue, Mar 21st 2017 136
Swiper FP8 Version Beta Release
Thu, Mar 16th 2017 38
Pasting Images into XPages CKEditor
Sun, Feb 12th 2017 15
Preventing pasting of remotely hosted images in CKEditor
Mon, Nov 14th 2016 11
Uploading Plugins Headlessly to Open Eclipse Update Site
Sat, Jul 18th 2015 10
Preventing Pasting of Images in CKEditor
Mon, Nov 14th 2016 9
Markdown XPages UIControl
Sun, Mar 5th 2017 9
Email Address Validator for XPages
Wed, Feb 11th 2015 8
XPages webmail – Using Mime Inspector to debug Mime
Tue, Feb 14th 2017 8
TextDiff XPages control – For visual comparison of text
Tue, Feb 28th 2017 8


Swiper FP8 Integration Rollout
Twitter Google+ Facebook LinkedIn Addthis Email Gmail Flipboard Reddit Tumblr WhatsApp StumbleUpon Yammer Evernote Delicious
camerongregor    

Notes Domino 9.0.1 FP8 is finally here and as far as I know (I have yet to download it) it includes the necessary changes which will allow Swiper to swipe whatever it wants, whenever it wants, which is good news for people who don’t like to have ‘Build Automatically’ turned on.

 

Plan of Attack for release of Swiper version 2.0.0

So, I haven’t actually downloaded FP8 yet,  so I can’t say for sure that the updated version works perfectly. Here is a bit of background, I had been working with IBM team to make sure that the necessary changes would be sufficient. I received an updated version of the ‘team’ plugin and have tested my POC successfully against that updated plugin, but I haven’t tested it fully against the full new FP8 because, as previously mentioned, I haven’t downloaded it yet.

So the plan is: I am putting a pre-release of Swiper v2.0.0 up on the Swiper Github repository.

If you have updated to FP8 and would like to test the new version I would very much appreciated it!

Here are the steps to install and ugrade:

  • Download Swiper v2.0.0-alpha release from Github and install to designer
  • ‘Remove Swiper’ and then ‘Add Swiper’ from any projects currently using swiper
    Basically, the ‘remove’ will remove the old builders that are no longer needed, then ‘add’ will re-enable the new version.
  • Check that it is swiping your metadata whenever you sync!

I will also upgrade my Notes over the next week and test. Once I have heard back from a few people that it is working well, then I will prepare the final release and update the OpenNTF Project page.

Bonus Feature!

I added a new feature: there is a ‘Sync’ toolbar button to perform a sync on the currently active project. Give it a try and let me know if useful.

Background of the Reason for new Integration point

If you are curious about why there was a change necessary to allow Swiper to perform more efficiently, here is a summary:

Swiper version 1 worked like this:

  • Designer has a ‘Builder’ which triggers the sync process of Design Elements to Disk
  • Swiper version 1 sandwiched this Builder with 2 builders of it’s own, a Pre and Post Sync builder.
  • The Pre sync builder saved some info about files that might be exported
  • The Post sync builder used Pre Sync builder to figure out if files were exported, if they were then it filtered them

The trouble with this, is that there is more than one way for the Sync process to be triggered. If it was triggered on ‘project open’ event or manually with the right-click menu, then the Swiper builders would not run.

IBM have now made a modification to provide a ‘SyncListener’ extension point, so that a class can be registered to listen to import / export / rename / delete events, and has the opportunity to run some code when those events fire.

This allows swiper to run whenever there is a sync operation, regardless of when it was called.

So Swiper version 2 simply listens for the events and then acts accordingly whenever they happen.

Other uses for SyncListener

I am also curious if there are other options to utilise this feature to correct DXL Import export errors. One example is to do with agent scheduling for all-day agents. A custom Scheduling metadata file could be created and used to save the agent scheduling info on export, and then configure the agent after import.

Feedback welcome

Let me know how you go, you can report bugs either on OpenNTF Swiper Project or the Github Repository Issues

Or maybe you just want to say it is all working well! It is nice to hear when people say thanks so if it is helping you please don’t be shy! I do get some nice comments from time to time and it is a great ego boost.

When I first learned of Source Control Enablement in Designer, I was excited and then disappointed.

It was clearly not a workable solution if you needed to do any sort of branching and merging, which is core to good source control.

I was determined to get it working property. The initial DORA solution, took me about 2-3 months in my spare time to problem solve, develop and prepare so it was robust enough to share with others. It was workable but still a bit too fiddly. Later I decided that it would be cleaner to have it integrated into Designer, and a further month or two of development to get it ready. It was much more robust to install, and almost perfect.

This latest version should complete the puzzle, and hopefully there will be no more major developments needed!

I cannot imagine being able to manage the projects I have been working on over the past few years if I did not have source control, so I hope that my efforts have also enable you to work collaboratively with others, and also manage your own local branches as well!



---------------------
http://camerongregor.com/2017/03/08/swiper-fp8-rollout/
Mar 08, 2017
8 hits



Recent Blog Posts
136
Auto-width Bootstrap Column XPages Controls
Tue, Mar 21st 2017 1:13p   Cameron Gregor
I’ve been stuck working with OneUI Version 3 for the past couple of years, due to a regretful decision made at the beginning of my major project. OneUI was better than nothing but very frustrating at times. Finally, I have moved on to my next project and I am now using bootstrap (version 3) A common task when laying out a page using bootstrap is to divide sections up into rows and columns, and use the appropriate css styles to do so. I’m going to assume you are familiar with bo
38
Swiper FP8 Version Beta Release
Thu, Mar 16th 2017 12:50p   Cameron Gregor
Last week I released the ‘alpha’ version of Swiper which was untested on FP8 but presumed to be ok. So far I have only had good reports from the pioneers who have gone ahead and installed FP8 + the alpha version. I have since managed to ugrade my home office setup to FP8 which unfortunately has broken my ability to launch designer from eclipse but I am seeking some advice on fixing this up. In the meantime I have to test the slow way of building plugins, import plugins, restart R
8
Swiper FP8 Integration Rollout
Wed, Mar 8th 2017 12:43p   Cameron Gregor
Notes Domino 9.0.1 FP8 is finally here and as far as I know (I have yet to download it) it includes the necessary changes which will allow Swiper to swipe whatever it wants, whenever it wants, which is good news for people who don’t like to have ‘Build Automatically’ turned on. Plan of Attack for release of Swiper version 2.0.0 So, I haven’t actually downloaded FP8 yet,  so I can’t say for sure that the updated version works perfectly. Here is a bit of backgrou
9
Markdown XPages UIControl
Sun, Mar 5th 2017 11:44a   Cameron Gregor
Often when I’m designing an xpage, there might be a section of the page in which I want to explain some instructions to the user. Some options here are to: write the Instructions using html and embed directly in the xpage markup write the Instructions directly in the design pane and format using designer’s ui e.g. bold, color, size etc use some native xpage controls to achieve the desired result. Write the instructions in a richtext field on a notes document that is loaded to dis
8
TextDiff XPages control – For visual comparison of text
Tue, Feb 28th 2017 12:00p   Cameron Gregor
A few years back I stumbled across Google’s diff-match-patch project which provides some handy algorithms for text manipulation. At the time of discovery I was doing ‘classic’ notes development. Although I probably could have implemented something that worked in lotuscript with RichText or Mime, it wasn’t a priority at the time and I never bothered. Since then, I have been doing mainly XPages, and now that I have been also doing a bit of XPages Control development. I was
8
XPages webmail – Using Mime Inspector to debug Mime
Tue, Feb 14th 2017 11:12a   Cameron Gregor
In a previous post in this series I did a bit of an overview on how MIME works. We also did a little bit about how MIME works in XPages + Domino land. With this knowledge in hand we can now start to analyse the different ways a ‘Pretty words, pictures and attachments’ can be stored in the document. During development of the ‘XPages Webmail’ interface, I encountered many problems which could only be solved by investigating the MIME content in detail. To help me do this, I
15
Pasting Images into XPages CKEditor
Sun, Feb 12th 2017 10:00p   Cameron Gregor
Programs like ‘Snipping Tool’ on Windows, are super useful for users to make a quick snapshot, do some quick markup on the image, paste into chat/email and send. Unfortunately when using the default configuration of CKEditor in XPages (the inputRichText control), support for pasting images is not available for all browsers, and even for the ones that do support it, the images are only pasted as a PNG data URI. I have explained data URI images in a previous post, so check that out if
11
Preventing pasting of remotely hosted images in CKEditor
Mon, Nov 14th 2016 11:21p   Cameron Gregor
In the previous post, I showed how to prevent a user from pasting Images from the Clipboard into CKEditor. This post is of a similar nature but is designed to ensure that users don’t paste images with URLs to external / internal applications. This post is part of my XPages webmail tips series, and addresses a problem where, a user copies and pastes some HTML that includes images, from a webpage and pastes it into CKEditor for a message that is then sent via email. The recipient is then una
9
Preventing Pasting of Images in CKEditor
Mon, Nov 14th 2016 12:43a   Cameron Gregor
In the process of developing our XPages ‘Webmail’ interface, we discovered that many recipients were unable to view embedded images in the emails. After investigating, it was caused by the images being embedded using Data URIs. Support for Data URI Images is not universal, and because it is supported in IBM Notes, everything looked like it was working ok, but a quick test viewing an email in Gmail confirmed a problem when images could not be seen. What is a Data URI? You are most lik
5
Controlling the order of Script Resources (e.g. Jquery) with a Custom ViewRootRenderer
Mon, Sep 19th 2016 9:28a   Cameron Gregor
When loading Client Side Javascript libraries in XPages, sometimes the order that the libraries are ‘encoded’ (or written in HTML) in the tag is important. For example jQuery and some of it’s plugins can have some issues if Dojo is encoded first. By default in XPages you don’t have too much say in what is written out first, a nifty workaround for this has been shared by Sven Hasselbach (here and here) which utilises the lesser known tag. This workaround ensures t




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