Andrew Pollack's Blog

Technology, Family, Entertainment, Politics, and Random Noise

Mixing @Formulas and Lotusscript on Web Pages?

By Andrew Pollack on 06/30/2008 at 09:34 AM EDT

Now that XPages are set to take over the world, did you think your Lotuscript skills were wasted? The short answer is absolutely not. As you can see from this image (taken from another fantastic XPages example by John Mackey), there's something funny going on here. This looks an awful lot like Lotuscript.

It isn't really Lotusscript, but instead it's JavaScript with objects created to do most of the same things you can do with both Formula languages.

Most people who program in Lotuscript mix up two distinct aspects of the language. The syntax and keywords of the language itself, and the back end object model that you use it with. They're actually two entirely distinct things. The back end object model you're used to is where you've spent most of your time getting comfortable with doing things. Most of that skill and comfort transition to XPages easily because most of that object model is right there at your fingertips.

The syntax will more closely match the back end object implementation in Java, if you're familiar with that, but the differences are fairly minor. Take a look at what's going on here.



You're seeing the Lotus back end objects -- just like you use them in Lotuscript -- being used as part of the design on an XPage for the web. This isn't in a webQuerySave agent or anything, its right on the page as part of the event for an object on the page.

Something else you should notice -- look in the top left of the picture. Notice it says "(Server Side)"? That's where much of the truly sick power of XPages comes from. I'll write more on that later.


  • text bubble icon

    Security Review

    How secure is your Domino environment? A security review doesn't have to be expensive to be helpful. If you're interested in finding out more, Contact Me.
  • There are  - loading -  comments....



    Other Recent Stories...

    1. 09/04/2008If you could pick the topic you wanted from me at LS09, what would it be?Fall is here. Lotusphere 2009registration is open now, as is the call for abstracts. If you could pick my topic, what would you want me to cover? In the past, the Security Jumpstart I do with Gab has been very well attended with a repeat and both sessions really full, so we'll update that with all the new 8.5 stuff and submit that one for sure. Other than that, there's a ton of stuff I'm thinking about. Is there one you've seen me do that you think is worth repeating? Is there a new topic you think I ...... 
    2. 09/03/2008Trendspotting: What Google is really starting with ChromeAside from being a fairly cool -- if a bit undercooked -- new browser, Chome has another lesson for us. Google has very specifically NOT created an incremental bloatware version of existing code. They've built something new from nearly the ground up, embedding the proven technologies they needed -- javascript by V8, and rendering by Webkit. Only by starting from scratch were they able to get some of the size, memory management, and security enhancements that form the core of their promising new ...... 
    3. 09/03/2008Using the management of their campaigns to learn about the candidatesSome things about these two political campaigns have struck me recently as glimpses of what to expect from an administration led by either candidate. It isn't a perfect picture, but it is telling in a way. It also matches what I think about these two men so clearly my own viewpoint is mixed in richly in the interpretation. To be clear about that bias, I should state here that I am currently planning to vote for Obama, though will not vote an entirely Democratic party ticket. We have some very good ...... 
    4. 09/02/2008Chrome - Google's new Web Browser. Super tool, still needs a few things. 
    5. 08/30/2008Notes 8.5 Public Beta 2 - First impressions 
    6. 08/28/2008Have you used the Asus EEE PC? I've got a couple of unusual questions 
    7. 08/28/2008Blogging Respite - A long couple of weeks 
    8. 08/23/2008The disturbing case of the Fridge, and cabinets built by Dr. Seuess. * Updated with pictures 
    9. 08/17/2008From Caitlin: "Dad, are the Olympic medals solid gold?" The answer is interesting... 
    10. 08/12/2008The mis-use of Twitter as a chat room - and what to do about it 
    Click here for more articles.....


    pen icon Comment Entry
    Subject
    Your Name
    Homepage
    *Your Email
    * Your email address is required, but not displayed.
     
    Your thoughts....
     
    Remember Me  

    Please wait while your document is saved.