Search DominoPower's 11,441 Lotus-related article archive 
Home
EasyPrint
News details Click here for the RSS feed's XML code. This is not a browser URL.
Articles-only Click here for the RSS feed's XML code. This is not a browser URL.
Twitter Feed Click here for the Twitter feed.
Managing expenses with Palm and Notes (continued)

I added the field CurrSym to contain the currency symbol for all items except type 16. I always have mileage expenses credited in UK pounds, regardless of where they were incurred. This field has the value formula:

@if(type="16";"";CurrencySymbol).

I then added a new field, StgAmount, to hold the sterling amount of the claim. This field formula is as follows (with some rather repetitive bits removed):

Exchrate:=@If(currency = "1";@GetProfileField("Profile";"rate_1");
currency = "2";@GetProfileField("Profile";"rate_2");
........ as above for currencies 2 through 20 ........
currency = "21";@GetProfileField("Profile";"rate_21");
currency = "22";1;
currency = "23";@GetProfileField("Profile";"rate_23");
currency = "128";@GetProfileField("Profile";"rate_128");
1);
REM "Currency 22 is the UK";
@If(type = "16";0;amount/exchrate):

Note the exchange rate for currency 22, the UK pound, is set to 1, and the amount is set to zero for type 16 expenses, mileage. Mileage is handled with another field, Milescash, with the following formula:

t:=@GetProfileField("Profile";"Milerate");
@If(type = "16";(t * mileage)/100;"")

I also added a field called Claimed; this tells whether the item has been claimed or not. I use this to control how items appear in views.

Views
I then modified some views. The Expenses view, shown in Figure G, is the default view.

FIGURE G


The Expenses view is the default view. Roll over picture for a larger image.

It shows all expense items categorized by year, Palm category, and the currency; I also separate mileage claims in this view. The Claimed field drives an icon column showing whether the item has been claimed or not. The key items on this view are the actions.

The Recalculate action performs the following:

@PostedCommand([ToolsRefreshAllDocs])

This causes each document to be recalculated with its form, using the formulas above. In fact, I hardly ever edit an individual item, and then it's only to add a longer description than I entered on the Palm device.

The other key action is Make a Claim, but before we look at this action, there's another form to review. This is the claim form. This form was drawn to match Unipart's standard expense form layout, with twelve repeated rows in the body of the form. This is an exercise in creating Notes tables, along with split cells and lots of fields to add. I let the Notes designer name the fields as I cut and pasted them, but it was still pretty tedious going through all those computed fields and adding the formula entries. In hindsight, I should have left them as Editable fields to save the bother. Figure H shows part of this form in the Designer.

FIGURE H


Here's the Unipart expenses claim form in the Designer. Roll over picture for a larger image.


« Previous  ·  1  ·  2  ·  3  ·  4  ·  5  ·  Next »
Other articles you might like
Home > Reviews and previews (86 articles)
   Managing Notes deployments with Teamstudio Build Manager
   Using Balsamiq Mockups to create low-fidelity prototypes
   Exploring VMWare Workstation
Home > Mobile Technology > Palm OS (11 articles)
   Synchronizing Notes with Palm handhelds with Pylon 5.2
   Integrate Notes with Palm's new Tungsten T
   Top 10 support questions answered for Pylon products
Get Weekly Email Updates
Subscribe to our regular weekly email newsletter. It's packed with tips, reviews, deep analysis, and the latest news.
 
Recent DominoPower Articles
Application development, William Shatner, and the origin of the universe
Learn Domino Designer 8.5 for free
The (near) future of Sametime, Quickr, Connections, and Symphony
Inside the IBM Innovations lab
Lotusphere 2010: Hot fixes and cool news for Notes, Domino, and LotusLive
Lotusphere 2010: mobility and collaboration
2010: A Lotusphere of change
Latest Lotus Headlines
Xpages not loading? JVM errors? - Solution
How to implement an iCalendar feed into your Notes calendar with XPages
DWA Hotfixes for Domino 8.5.1FP1 - A Gotcha
IBM Adds DB2 to Lotus Foundations SMB Package
SNTT : XPages onclick Ghosts in the machine
Ports used by Lotus Sametime 8.5 servers
Exploring a Domino Date Bug
>> Read all the news
More from the ZATZ journals
Computing Unplugged: The iPad defenders have spoken
David Gewirtz Online: CNN commentary and analysis
OutlookPower: More about disappearing text
-- Advertisement --

Sophisticated Meets Simple For Document Management
Share. Control. Manage.
Documents, emails, and content in the context of how work is done. Native to Lotus Domino. The User Experience unseen for Lotus Domino. Do more with less. Really.

See the possibilities Docova unleashes for Lotus Domino.
-- Advertisement --

Struggling with exporting Notes data to spreadsheets? No More!
Try IntelliPRINT, The world's leading Reporting, Dashboards, and Analysis solution for Notes & Domino

  • Don't spend unproductive time maintaining different versions of the same spreadsheet
  • Preserve data integrity and security in multi-user environments
  • Create reports in minutes INSIDE Notes
  • Get freedom from iterative report requests, deliver self-serve capabilities

Experience Reporting, Dashboards, and Analysis INSIDE Notes.

Try IntelliPRINT NOW!

ZATZ Home  ·  News  ·  Back Issues  ·  Credits/Trademarks ·  Link To Us
Copyright © 1998-2010, ZATZ Publishing. All rights reserved worldwide.
Editor's Login