Tag Archives: XPages - Page 7

Flattr custom control released

Today I have released another custom control on openntf.org

It’s the Flattr control this control makes it simple to add a flattr buttons to your webpages created with XPages. And get micro payments from flattr users that likes what you or your customers do. 

 

 

 

 

 

 

 

QR Code Custom control is released

URL QR Codes for you web applications just got very easy.

Just drag and drop add your URL, and you got a QRCode and they work in the Client too.

Link to the Project at OpenNTF.org

 

 

 

 

 

 

 

 

 

@TextToNumber Decimal Warning

If you run this formula in traditional Domino

@Text(@TextToNumber(“20,40”)*2)

You will get 80,40 back into the field

But if you run this in some XPage Code you will get

0

Why is this you might ask, well probably because javascript do not recognize comma as a decimal delimiter

So you need to change the formula to this.

@Text(@TextToNumber(@ReplaceSubstring(“20,40″,”,”,”.”))*2)

Then you will get 40,8 back. Not that when you do @Text() on the number the comma is back 😉

xTrain – XPages seminar in Sweden

IBM in Sweden is going to host an XPages day on the 12:th of December in Stockholm.
With Ed Brill as the main speaker.

If you are interested this is the link to sign up for it.

xtrain.lotisverige.com 

Get a progressbar everytime a partialrefresh is fired

I was looking for some code today to get a wait sign when a partial refresh had fired. I found this great article at lotusnotus.com bu that wait sign had to be added to each event (Not my kind of thing 😉 ).

Then I remembered that I saw some code created by Tommy Valand to hijack all partial refresh events.

So I made a cut and paste coding and volia. Standby wait sign every time a partialrefresh fires.

I added code section one and two above and also this section into a scriptlibrary.

You could add this lib to a custom control and add the hijackAndPublishPartialRefresh() function in the onclientload client event. Also add dojox.widget.Standby as a dojo module resource.

When I started to use this I found that it was firing all the time, and I didn’t want that so I did some modifications

You’ll still need the hijack script and this last script.

Enjoy!!

Update, Latest version of this can be found here
using the designer import tool –> Link

Or XSnippet

Local XPages problem and webpreview port

I wrote about the new function that you could change the webpreview port in 8.5.3
unfortunately this gives you another problem if you change the port.

You can’t run local XPages in the client web preview works fine, if you change the port back make sure you write 80 in the field. If you just clear the field you will still get problems.

 

My top 5 things that we need in XPages


1. Better Client and OS integration
You need to be able to do things in an XPage that you are used to in an ordinary client.

  • Copy and paste images into the rt field
  • Communicate with the eclipse client framework
  • Integration with other desktop applications
  • Finally get a full integration with symphony documents.
    (Open them directly from an XPage thru code, create from template, set content in Symphony)
2. Integrated Debugger and Memory profiler
Checkout the debugger in visualstudio this is how the debugger should work in my opinion. Start debugging in client code continue over in server side code and back again. NICE ;-). Memory profiler that is built in would also be great and not just for test environments (When do you really need them ? ).
 
3. More error handling in the designer
Today in the designer you can make errors easily that you will have a hard time finding.

 

4. WebServices
In all other modern development environments webservices is used alot. We need support for Webservices in XPages both in code and as a datasource.

 

5. Integrated Extension library
We need the extension library to be integrated into the server and client install.
If it’s installed. It’s also updated like you update Firefox or Chrome, automatically!

 

This is my top 5 things, no specific order. What are yours?

 

Lotus Notes Foo or will it be XWork Client

Ed Brill talks about the roadmap for Domino, this is great customers want to know that the road continues. He has made up a name called Foo for the next version of Notes/Domino because the name is not decided yet. But he tells that there will be a 8.5.4 version and a Foo Version or as I think it will be named
XWork Client.
IBM released the new XPage server a couple of days ago and this server is called XWork Server
Link to some info regarding this (Link 1, Link 2, Link 3).
Due to the fact that IBM want to drop the Lotus Notes name, xWork will probably be used instead. I think XWork is a good new name because this describes very good what the Lotus Notes/Domino always has done it eXtends your Work. It’s a eXtra hand when your work.
It’s not just another software, it help you become more productive, it helps you and your colleagues to do more. Lotus Notes was an application framework before that was invented.

So I’m excited to see what the next step is for the XWork framework.