Create your own @Formula

There is several ways of creating your own @Formula commands. One easy way is to create a serverside scriptlibrary and create a function that is named @MyCommand there. Include this SSJS library into your XPage / Custom Control and you have added a custom @Formula.

function @Getfirstword(data){

   return @Left(data,” “)

}

And the second way is to create your own extension to the Domino designer as Ulrich Krause has done in this new openntf project.

http://www.openntf.org/internal/home.nsf/project.xsp?action=openDocument&name=SSJS%20Extension 

There is probably serveral more ways of adding new @ commands to XPages, if you know a way make a comment.

Smile

This is the result of the debugger poll

I have a little poll Link about what the developer community want from a future debugger I had 62 people responding to the poll, Not a huge amount but anyway enough to see the direction. A future debugger of XPages needs SSJS debugging, java and client side debugging is not necessary. 

It was a close run between new debugging features that I listed  between conditional breakpoints and

backwards debugging and the backwards debugging won. It would be great to have both these functions in a future debugger. How could a backwards debugger work in Domino, well I think that it could work like this. When you start debugging every change to variables is logged the only variables that can be traced is your own variables. no objects. Then when you start to trace backwards these changes is shown in the debugger like playing a movie backwards.

Looking forward to the day when we get a debugger. 

New interesting openntf project

I found this interesting project on openntf.org yeasterday Ruby in XPages if you don’t know what this is it’s an implementation so you can write Ruby code inside an XPage. You might say I don’t know Ruby so how can this be of interest to me.

I don’t either know Ruby but I think the project it self has other interesting things because it shows how to implement another language into XPages, perhaps node.js, PHP or ASP.Net. 

Another post about the possibilites to expand XPages was posted by Sven Hasselbach awhile ago show a way to write lotusscript code inside an xpage –>Post  (use Chome or Rockmelt to get the post in english)

Debug XPages code with a debugger of your choice

It has been alot of talk about a debugger for XPages, Do we need a copy of the lotusscript debugger. Or a brand new debugger that gives us new ways to debug our code. Yes please. I think there is several new interesting ideas on how to debug code faster and better. How would you like to debug your xpage code?

What type of code do you want to debug in the debugger

  • ServerSide JavaScript (89%, 55 Votes)
  • Java Code (56%, 35 Votes)
  • ClientSide Javascript (50%, 31 Votes)

Total Voters: 62

Loading ... Loading …

If you look at other languages there is alot of interesting features in debuggers like

If you had the possibility to add two of these features what would you choose?

  • Step backwards to see how an error ocurred (look at variable recording) (61%, 27 Votes)
  • Conditional breakpoints “stop when a variable reaches a certain value” (50%, 22 Votes)
  • Visual execution display, show how the flow of the application was (36%, 16 Votes)
  • Debug Clientside and continue into serverside code and back again (32%, 14 Votes)
  • Profiling code blocks (14%, 6 Votes)

Total Voters: 44

Loading ... Loading …
 
Comment on this post if I’m missing something or if you have some ideas about what a good debugger should contain.
 
THE RESULT
 
Backwards debugging in flash
(Yes, I know flash is based on a timeline, so debugging forward and backwards is easier in flash)

Improved calendar integration for Traveler – an idea

I got an idea about how to improve the calendar integration in traveler.

Unfortunatly the idea will only work for the Android version because I don’t think you can control the phone in IOS.

The idea is that you could control settings in the phone using the calendar, this isn’t anything new if we are talking about you office phone but on your mobile phone and the change is not done in the switch board. 

What am I talking about then, in an Calendar appointment you setup a profile/Category i.e “quite meeting”

In your traveler client in the mobile phone you can specify your own profiles and you can get predefined profiles from the traveler server. when a meeting ocurr and you have a corresponding profile the settings for this profile apply to your phone i.e go to flightmode, Turn off ringtone, perhaps activate wifi.

Then you can control alot off cool stuff using your calendar. And the profile in the phone specifies what should happened when the meeting starts and what should happens when it ends. 

That’s my idea for the future of Traveler.

Remember where you read about it first  Ha Ha

IPad Magic about Stockholm

Checkout this IPad magic show

http://www.youtube.com/watch?feature=player_embedded&v=53_qvMQfvOE

Results of my poll

I did a poll some days ago 300 people answered the poll

http://www.xpagedeveloper.com/2012/3-quick-questions-about-xpages-and-domino

88% of the people who responed has atleast one server with 8.5.2 or 8.5.3 interesting 

29% Is seeing an increase in mobile applications and 43% is seeing an increase in web vs client.

55% is still doing 50% XPages and traditional Domino development. But one of the big things is that 24% of the people voating is not doing any XPage development at all that is almost equal to the amount that is doing only XPage development.

This small poll is no science at all 300 people of the hole IBM customer base of Domino ;-)

But from this small amount of people 88% of these companies can run XPage Applications.

Client applications is still here so IBM will probably need to increase the investment in XPages Client integration. or perhaps just buy the XPages2Eclipse product from Mindoo. If that product was integrated as a part of the XPage offering from IBM we would get a big jump forward in Client/Eclipse integration and that is needed. 

One might wonder if the 24% part that is not investing at all is customers that is moving away from the Domino platform. What can be done to make them believe in the platform again?

1. IBM need to show that Domino still is the leading platform for corporate applications.

   (the Domino Server needs it’s own appstore, openntf.org we just need a packager perhaps.)

2. IBM needs to create a demand for Domino, make everybody aware that is a platform that is alive!!!

    (Marketing Marketing Marketing and ROI )

3. The platform will need a more modern look that isn’t traditional Notes.

    (I’m sad perhaps I’m one of the few that like it)

4. IBM needs to invest alot more money into the Eclipse platform to get the stability that we had before

    Eclipse. (Perhaps a way to move to newer releases of Eclipse faster is the answer, I don’t know) 

Yellow forever and ever!!!!!

Donate to Mozilla and get a T-shirt

Donate a buck to Mozilla so they can continue to do their great work and get a Official T-Shirt for free.

https://donate.mozilla.org/page/contribute/mozillatshirt/

Quick tips: if you are importing data in an LS agent

If you are importing data in Lotusscript and the imported files is in utf-8 so you have specified in the open command charset=utf-8 make sure that were you are getting the files from don’t suddely produce an ordinary ANSI ascii file. Then you will probably get a server crash, because there is not check if the file is utf-8 so it tries to read the ordinary file as a multibyte file. That will corrupt arrays, lists and eventual crash the client/server.
So make sure the file format is what you think it is. One great tool to do so with is NotePad++ 

3 Quick questions about XPages and Domino

Update! Results of the Poll

I’m doing a lite poll to see what the future looks like. You don’t have to be an admin or a developer.

If you don’t know the answer on one of the questions don’t answer that question ;-)  

What version of Domino are you / your customer using?

  • Domino 8.5.3 (80%, 78 Votes)
  • Domino 8.5.2 (36%, 35 Votes)
  • Pre Domino 8.5x (11%, 11 Votes)
  • Domino 8.5.1 (11%, 11 Votes)
  • XWork Server (6%, 6 Votes)
  • Domino 8.5 (3%, 3 Votes)

Total Voters: 98

Loading ... Loading …

How much do you / your customers invest in XPage technique?

  • We invest 50/50 in XPages and traditional Domino (55%, 50 Votes)
  • We do not invest anything (24%, 22 Votes)
  • We build everything in XPages (21%, 19 Votes)

Total Voters: 91

Loading ... Loading …

Are your applications Client / Web / Mobile?

  • Web (63%, 60 Votes)
  • Client (44%, 42 Votes)
  • Client but more and more on web (43%, 41 Votes)
  • Mobile (29%, 28 Votes)
  • Mobile is increasing (29%, 28 Votes)
  • Web but more and more on client (3%, 3 Votes)

Total Voters: 96

Loading ... Loading …

I’m thanking you for your answers, stay tuned for the results!!