332 Lotus blogs updated hourly. Who will post next? Home | Downloads | Events | Jobs | Twitter | Bookmarks | Pods | Blogs | Search | myPL | About 
 
Latest 7 Posts
Arguably the most dangerous thing you could ever do in XPages – let other people use your eval() in their SSJS
Tue, Jun 18th 2013 60
EXTJS in XPages #12 – Counting categories with Grouped columns
Tue, Jun 18th 2013 61
Editing and testing your XPages CSJS “in real time” using Chrome Developer Tools
Wed, Jun 12th 2013 122
Adding a new browser to the XPages “Preview in web browser” menu
Tue, Jun 11th 2013 161
EXTJS in XPages #11 – Grids with Locked Column(s)
Sun, Jun 9th 2013 133
Getting rid of pointless white space page separators in MS Word
Wed, Jun 5th 2013 121
DCLUG – June 13 – Darren Duke – I Have a Traveler Server – Maybe I Should Secure it Some
Mon, Jun 3rd 2013 155
Top 10
Make your XPages more maintainable – JavaScript Callback functions
Sun, Apr 28th 2013 562
Coolest Error Message ever – Anti-Folder views !
Thu, Apr 4th 2013 460
Server-side HTML vs. JS Widgets vs. Single-Page Web Apps – the XPages version
Mon, May 13th 2013 412
Someone is having a laugh right?
Fri, May 24th 2013 368
Webinar – jQuery: The World’s Most Popular JavaScript Library Comes to XPages – April 23rd
Mon, Apr 1st 2013 353
Domino R9 – now FIPS 140-2 compliant – necessary for doing business with the DoD
Thu, Apr 4th 2013 325
Webcast: jQuery The World’s Most Popular JavaScript Library Comes to XPages – now on YouTube
Fri, Apr 26th 2013 307
DCLUG April 24th – Getting Started with XPages
Wed, Apr 17th 2013 297
Writing a single library for SSJS and CSJS validation – failed attempt #1
Sun, May 19th 2013 292
JavaScript variable hoisting
Wed, May 1st 2013 287


jQuery in XPages #1 – Highcharts
MarkyRoden    

I am delighted to present the first in my series of articles highlighting some extremely cool jQuery plugins and how to integrate them within XPages. During the course of the articles I will always demonstrate at least at some level, basic integration with XPages. In many cases I will not be able to cover all the examples of everything possible with each plugin, but I hope to give at least a good teaser to the possibilities and  show the myriad of possibilities.

I have to also say a HUGE thank you to David Leedy (www.notesin9.com) who is hosting my demonstration for this and the rest of this series when I get to them.

So without further ad0 – welcome to jQuery in XPages #1 :)

Highcharts

For full disclosure, Highcharts is not free for commercial use.
“Do you want to use Highcharts for a personal or non-profit project? Then you can use Highchcarts for free under the Creative Commons Attribution-NonCommercial 3.0 License.”.

But part of the reason I chose it as the #1 is because it really rocks well with an XPage environment. It has direct business applicability, unlike many other jQuery plugins which are pretty, but hardly “corporate”. The format and structure of the chart instantiation also jibes well with XPages and I was able to create a custom control which can be applied to any formatted viewPanel or dataTable.

The Demo

Here is the demonstration site

and here is the demo dataabase

Link download the demo database

In the example below you can see a simple form with a viewPanel. Adding a new value to the form refreshes the page and displays the value entered. The exact same functionality would be seen if I had a basic data table looking at the same view of data.

The Example

Initial XPages form

Initial XPages form

Submitting the form gives us our new value

XPage with new Apples value added

XPage with new Apples value added

The XPage is laid out very simply and our View control is called viewPanel1

View Panel on the XPage

View Panel on the XPage

We add the drawHighchart Custom Control to the XPage

Adding the drawHighchart custom control to the page

Adding the drawHighchart custom control to the page

And let’s refresh our webpage – et voila – a chart

A simple Highchart added to our XPage

A simple Highchart added to our XPage

Changing the chart type is as simple as selecting a new theme and/or a new chart type

Changing the Highchart style

Changing the Highchart style

For more information on how this works check out the next article

jQuery in XPages #1 – Highcharts – how does it work?




---------------------
http://xomino.com/2012/03/14/jquery-in-xpages-1-highcharts-2/
Mar 14, 2012
62 hits



Recent Blog Posts
60


Arguably the most dangerous thing you could ever do in XPages – let other people use your eval() in their SSJS
Tue, Jun 18th 2013 7:18p   Mark Roden
In this article I will discuss the power of the JavaScript method eval() and demonstrate how your inappropriate usage of such could bring down your entire organization – yeah it is THAT dangerous…. Introduction In JavaScript the eval() method has long been known as extremely powerful and also extremely dangerous. It turns a string into an executable piece of JavaScript code. It can turn string  into JSON arrays: var str = '[{marky: "genius"}, {brad: "blog monster"}]' eval [read] Keywords: xpages database interface javascript server
61


EXTJS in XPages #12 – Counting categories with Grouped columns
Tue, Jun 18th 2013 5:31a   Mark Roden
In this article I will demonstrate how grouping can be added to the EXTJS grid within your XPage and how the number of rows within that group can be totalled and displayed to the user. EXTJS in XPages series Here are links to all of the previous articles in this series EXTJS in XPages #11 – Grids with Locked Column(s) EXTJS in XPages #10 – Grid Row Expander plugin EXTJS in XPages #9 – Infinite scrolling rebooted and reborn – v4.2 BufferedRenderer EXTJS in XPages #8 – Selecting data fr [read] Keywords: domino notes xpages database
122


Editing and testing your XPages CSJS “in real time” using Chrome Developer Tools
Wed, Jun 12th 2013 2:23p   Mark Roden
In this article I will demonstrate how you can make live changes to your CSJS using firebug and chrome deveveloper tools and figure out where your bugs are happening before committing them to your XPages database. Introduction  First rule of thumb – put as much of your XPages Client Side JavaScript (CSJS) in a JavaScript script library as possible. The reasons are compelling and simple: Separation of code makes for much easier maintenance Changing CSJS libraries required a CTRL-F5 to v [read] Keywords: ibm script library xpages application database javascript xml
161


Adding a new browser to the XPages “Preview in web browser” menu
Tue, Jun 11th 2013 3:06a   Mark Roden
I wanted to add Chrome to my list of browsers which I could preview my XPages in and I went digging in the preferences and found out how in File > Preferences under the general section there is a “Web Browser” option where you can add a new one Then I had to find where Chrome was installed (obviously change UserName to your own path) C:UsersUserNameAppDataLocalGoogleChromeApplicationchrome.exe Added it and there you have it – now in my menu [read] Keywords: xpages application google
133


EXTJS in XPages #11 – Grids with Locked Column(s)
Sun, Jun 9th 2013 6:51p   Mark Roden
In this article I will highlight a grid column property which allows the developer to lock the columns on an EXTJS grid in a similar fashion to freezing a frame in excel. EXTJS in XPages series Here are links to all of the previous articles in this series EXTJS in XPages #10 – Grid Row Expander plugin EXTJS in XPages #9 – Infinite scrolling rebooted and reborn – v4.2 BufferedRenderer EXTJS in XPages #8 – Selecting data from the grid and opening a document EXTJS in XPages #7 – Doing an [read] Keywords: xpages database
121


Getting rid of pointless white space page separators in MS Word
Wed, Jun 5th 2013 2:17p   Mark Roden
Thank you Simon Reid ! You are looking at a word document and it is a pain to move from one page to another because of the margins and a separator between each page Simple fix – mouse over the separation and double click How did I not KNOW ABOUT THIS?? And even better with short pages with a break in them Productive !! [read] Keywords:
155


DCLUG – June 13 – Darren Duke – I Have a Traveler Server – Maybe I Should Secure it Some
Mon, Jun 3rd 2013 10:31a   Mark Roden
This month we are delighted to welcome Darren and Lisa Duke of STS Inc. in Atlanta who are travelling to DC to present at the meeting ! Not only is Darren one of the most recognized names in the IBM Notes Domino community he is also a really entertaining speaker. Even if you are not into Traveler, you should definitely come, be entertained and learn something new. For more information on Darren – check out his linkedin page and if you want to talk Traveler while him and Lisa are in town &# [read] Keywords: domino ibm lotus lotusphere notes traveler bes blogger community google iphone linkedin podcast security server
96


OpenNTF Webinar – Getting Started with XPages – Tomorrow – 06-04-2013 10:00 EST
Mon, Jun 3rd 2013 9:19a   Mark Roden
Tomorrow I have the honour of speaking with my mate Dave Leedy and presenting the second in the OpenNTF webinar series - Getting Started with XPages Dave and I are going to go through a lot of information in a short period of time. The intention is to make the transition to XPages seem less scary, provide you information you need to know when making the transition and help you through the process. This conversation is open to all developers of all skill levels and I encourage community members [read] Keywords: domino ibm xpages community openntf password




186


Writing a single library for SSJS and CSJS validation – first success
Wed, May 29th 2013 6:49p   Mark Roden
The other day I wrote about my failure to realize that CSJS and SSJS libraries shalt not cross  during my attempt to write a single library for CSJS and SSJS validation code. Not to be out done and with some great suggestions from the wonderful Sven Hasselbach I trucked on into the next attempt. Parameterized development I first met this concept a few years ago. I was working on an application created by John McCann, and all the script routines for a suite of applications were sorted in notes [read] Keywords: domino lotus notes script library application applications database development firefox java javascript password security server xml
188


The original DBIcon image path is stored in the database
Tue, May 28th 2013 7:37a   Mark Roden
I noticed the following as it popped up in my DDE search for “iPad” – something just to be aware of. Don’t upload the DBIcon from a path you would consider inappropriate – it remembers [read] Keywords: database




Created and Maintained by Yancy Lent - About - Blog Submission - Suggestions - Change Log - Blog Widget - Advertising - Mobile Edition