354 Lotus blogs updated hourly. Who will post next? Home | Downloads | Events | Pods | Blogs | Search | myPL | About 
 
Latest 7 Posts
XPages Configuration Framework
Mon, Jan 6th 2014 131
All the best for 2014
Fri, Jan 3rd 2014 97
5 XPages Tipps #1
Thu, Jan 24th 2013 115
Working with SAP Data in Lotus Notes: Lessons learned
Wed, Jan 16th 2013 212
How to use the OneUI V2.1 Framework without ExtensionLibrary
Thu, Apr 5th 2012 149
Get rid of the agent property “Target documents – all new & modified documents”
Tue, Jan 3rd 2012 144
Displaying fancy loading indicator while loading AJAX
Fri, Nov 11th 2011 237
Top 10
Displaying fancy loading indicator while loading AJAX
Fri, Nov 11th 2011 237
Working with SAP Data in Lotus Notes: Lessons learned
Wed, Jan 16th 2013 212
Resolve time difference in hours and minutes of two date/time values
Wed, Aug 17th 2011 185
How to use the OneUI V2.1 Framework without ExtensionLibrary
Thu, Apr 5th 2012 149
Get rid of the agent property “Target documents – all new & modified documents”
Tue, Jan 3rd 2012 144
Space in XPages Source Code: & n b s p ; does not work..
Sun, Jul 31st 2011 131
XPages Configuration Framework
Mon, Jan 6th 2014 131
Convert Number to String to Number
Thu, Aug 4th 2011 126
5 XPages Tipps #1
Thu, Jan 24th 2013 115
Accessing the Notes Session Object in the Java Backend
Wed, Aug 3rd 2011 111


Format a number in xp:link
admin    

I just came across a problem where i wanted to display formatted numbers which are links (In this case in a repeat control).
How can i format the number here? The usual way is like this: 

<xp:text escape="true" value="#{figureItem.amountRounded}">
	<xp:this.converter>
		<xp:convertNumber pattern="#,##0"></xp:convertNumber>
	</xp:this.converter>
</xp:text>

So it gives me an output like “134’222″..
When i want to do the same in clickable links (xpages xp:link tag), i tried it like this:

<xp:link escape="true" value="javascript:refreshDetails()"
	text="#{figureItem.amountRounded}">
		<xp:this.converter>
			<xp:convertNumber pattern="#,##0"></xp:convertNumber>
		</xp:this.converter>
</xp:link>

Altough Domino Designer lets me compile this, it doesn’t format the number values..

So what to do? I already posted recently a NumberConverter Function Object here: http://www.fdehedin.ch/91/convert-number-to-string-to-number
If you place that in an SSJS Library, you can format the numbers in a link like this:

<xp:link escape="true" value="javascript:refreshDetails()"
	text="#{javascript:NumberConverter.numberToString( figureItem.amountRounded, '#,##0')}">
</xp:link>


---------------------
http://www.fdehedin.ch/168/format-a-number-in-xplink
Oct 04, 2011
82 hits



Recent Blog Posts
131


XPages Configuration Framework
Mon, Jan 6th 2014 5:11a   Frederic Dehedin
By now i think every Domino/Notes developer created at least 1 or more XPages applications. Developers who are developing XPages applications on a regular basis probably using their own frameworks (or using others) as a base of all their applications. In this post i share my own configuration framework, which i use in my recent developed applications.. tweaking it here and there.. i hope it will give some of you a kick start for 2014.. So whats the benefit? Using this framework will let you eas [read] Keywords: domino lotus lotusscript notes notes client xpages application applications database interface java openntf server
97


All the best for 2014
Fri, Jan 3rd 2014 5:08a   Frederic Dehedin
2013 has been a very busy year for me, that’s the reason i didn’t find time to write new blog entries. One of my goals for 2014 is to blog more, especially XPages topics.. One Framework i’m about to gonna post is coming next week, stay tuned.. For a quick start, i changed the theme of my blog, hope you like it, though it’s not 100% finished.. I’ve got it from themeforest.net, my favourite for themes, templates, etc. high quality, reasonable prices, good support (i [read] Keywords: xpages
115


5 XPages Tipps #1
Thu, Jan 24th 2013 9:15a   Frederic Dehedin
1. Extending a predefined RichText Toolbar The built-in RichText editor has some predefined toolbars.. in many cases one of them will fit the needs, but sometimes you want to extend an existing toolbar with just some of the existing tool-buttons.. In my case i wanted the Large Toolbar (not the Full), but the HTML Button was missing.. In order to achieve this, just add these lines: XPage: Client Side Javascript: XSP.addOnLoad(function (){modifyCKEditor()} ); function modifyCKEdi [read] Keywords: domino ibm richtext xpages application dojo java javascript xml
212


Working with SAP Data in Lotus Notes: Lessons learned
Wed, Jan 16th 2013 5:11a   Frederic Dehedin
“Lotus Enterprise Integrator for Domino and IBM Lotus SAP Connector” is a middleware You can use to access SAP Data from a IBM Lotus Notes Application. We’ve evaluated also other techniques, like scheduled Export in a text file (json, xml, csv, etc.), TDI, Aris for JCo, Gadgets. At the end the customer decided to use SAP Connector and LEI. As you may have red already on several marketing sites, blogs, etc. there are some statements like “you don’t have to know anyth [read] Keywords: connections domino ibm lei lotus notes xpages application database enterprise password sap server xml
149


How to use the OneUI V2.1 Framework without ExtensionLibrary
Thu, Apr 5th 2012 6:09a   Frederic Dehedin
First of all, i would love to use the ExtensionLibrary, but in the recent projects, there was no chance to use it. Either the Client or Server was not up to date (Upgrade Pack 1), or a installation on the file system was just not allowed possible.. So i needed to stick on the “out of the box” XPages Controls, but still wanted to use the OneUI.. On the provided link you can download a NSF which contains the following: setted up OneUI V2.1 Theme Layout Controls OpenLog 4 XPages imple [read] Keywords: ibm ldd lotus notes xpages application bleedyellow bleedyellow.com css profile server
144


Get rid of the agent property “Target documents – all new & modified documents”
Tue, Jan 3rd 2012 7:09a   Frederic Dehedin
First of all, happy new year 2012! I wonder what new things 2012 will bring us in therms of Domino / XWork Development.. Well the technique in this post is not really new, it does not even has something to do with XPages, in fact the technique i mention here i adopted of my menthor nearly 10years ago:-) To my surprise i’ve never found this technique anywere else so i thought it’s worth to mention here in a post, since even super sexy modern lookin XPages apps do have background sche [read] Keywords: agent domino xpages application development server




237


Displaying fancy loading indicator while loading AJAX
Fri, Nov 11th 2011 5:10a   Frederic Dehedin
XPages on Domino / XWork Server 8.5.3 are fast, very fast, but sometimes still not fast enough. If you have a large amount of data to compute things might take a while (even some seconds:-) and for the users it’s just convenient to know that something on the server is happening and to be just patient until the new infos are back on the screen…With a Full Refresh the browser itself shows a Loading Indicator, but we don’t like Full Refreshes, especially if we stay on the same con [read] Keywords: domino xpages ajax database dojo javascript server
82


Format a number in xp:link
Tue, Oct 4th 2011 6:10a   Frederic Dehedin
I just came across a problem where i wanted to display formatted numbers which are links (In this case in a repeat control). How can i format the number here? The usual way is like this:  So it gives me an output like “134’222″.. When i want to do the same in clickable links (xpages xp:link tag), i tried it like this: Altough Domino Designer lets me compile this, it doesn’t format the number values.. So what to do? I already posted recently a Numbe [read] Keywords: domino xpages apple javascript
54


Repeat-Control: Sorting a vector in java
Mon, Aug 29th 2011 6:14a   Frederic Dehedin
Use Case: Companies need to be sorted by its sales order totals. In this case i loop through all Orders and create an SalesOrderTotal Object for each Company. After that i got  a vector with SalesOrderTotal Objects, which are sorted by Company Name. In order to have the Customer with the highest Order Total first, i need to resort the SalesOrderTotal Objects. Step 1: Create the Vector with the SalesOrderTotal objects Step 2: Create a Comparator Class (for example an Util Class with an embedd [read] Keywords: java
99


Ged rid of @today and @yesterday functions in view selection and column formulas
Wed, Aug 24th 2011 1:45a   Frederic Dehedin
Who doesn’t know the request to display data depending on an actual date in Dominon Views? Well Domino has easy functions like @today and @yesterday etc and they do actually work.. but the Domino Server view indexer (and the administrator) don’t like them at all.. and in big environments with big databases with tons of data and an lots of users this simple @formulas could keep the server very very busy. So what to do? An agent which will set the today’s date in each document. [read] Keywords: agent domino lotus notes profile server




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