359 Lotus blogs updated hourly. Who will post next? Home | Downloads | Events | Pods | Blogs | Search | myPL | About 
 
Latest 7 Posts
My top 5 wishlist for IBM Notes / IBM Domino Designer, which ones are yours?
Wed, Aug 6th 2014 366
Creating a test environment: the easy way
Tue, Jun 3rd 2014 152
3 XPages hints #2
Wed, Apr 30th 2014 176
XPages Configuration Framework
Mon, Jan 6th 2014 167
All the best for 2014
Fri, Jan 3rd 2014 137
5 XPages Tipps #1
Thu, Jan 24th 2013 209
Working with SAP Data in Lotus Notes: Lessons learned
Wed, Jan 16th 2013 301
Top 10
My top 5 wishlist for IBM Notes / IBM Domino Designer, which ones are yours?
Wed, Aug 6th 2014 366
Get rid of the agent property “Target documents – all new & modified documents”
Tue, Jan 3rd 2012 310
Working with SAP Data in Lotus Notes: Lessons learned
Wed, Jan 16th 2013 301
Displaying fancy loading indicator while loading AJAX
Fri, Nov 11th 2011 269
Resolve time difference in hours and minutes of two date/time values
Wed, Aug 17th 2011 259
5 XPages Tipps #1
Thu, Jan 24th 2013 209
Convert Number to String to Number
Thu, Aug 4th 2011 195
Ged rid of @today and @yesterday functions in view selection and column formulas
Wed, Aug 24th 2011 190
How to use the OneUI V2.1 Framework without ExtensionLibrary
Thu, Apr 5th 2012 184
3 XPages hints #2
Wed, Apr 30th 2014 176


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
143 hits



Recent Blog Posts
366


My top 5 wishlist for IBM Notes / IBM Domino Designer, which ones are yours?
Wed, Aug 6th 2014 6:10a   Frederic Dehedin
Notes Client and Designer are very powerful piece of software, but there are some issues, which could make them even better. In my daily work i always bump into the following things. As for the Notes Client related parts: That’s not only me, I heard these topics from nearly every experienced Notes Client user I’ve met… 5. Beloved Workspace: friendlier design and opening applications with a single click. The workspace and it’s tiles is around for over 10 years now, and a [read] Keywords: domino ibm notes notes client policies xpages applications community development microsoft server workspace xml
152


Creating a test environment: the easy way
Tue, Jun 3rd 2014 8:14a   Frederic Dehedin
Testing without proper data can be quite annoying and sometimes even impossible. I’m working on an application which consist of more than 5 different NSF files. All data are related to each other and linked with an unique ID. Manually copy / paste all the data is not an option, the chance to forget data and have resulting inconsistencies are too big. Another problem: productive data can grow very big (attachments, rich-text fields and so on), simply copy paste the nsf files may result in [read] Keywords: agent lotus lotusscript notes notes client rich-text application database server
176


3 XPages hints #2
Wed, Apr 30th 2014 6:09a   Frederic Dehedin
I wrote the first post for some XPages tipps several months ago (5 XPages hints #1). I actually planned it to do it as a series, but soon got very involved into customer projects so i did not have the time to describe 5 tipps in detail, so i downsized it to 3. Anyway, i hope they will help .. 1. Getting the session as signer Sometimes you need to get document information (e.g. for a website) with higher access rights, than the logged-in user (or “Anonymous”). For this case, you can g [read] Keywords: agent domino ibm lotusscript R6 xpages application development interface javascript reservation xml
167


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
137


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
209


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




301


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
184


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
310


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
269


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




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