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.
Developing a Palm VII PQA that reads data from a Domino database (continued)

Looking at the LotusScript agent code
Now let's dig into the code a bit and discuss some of the things you should include in your Web clipping scripts.

When the form is posted to the Domino server, there is a CGI variable called REQUEST_CONTENT that contains all of the values of the fields on the form. In the sample there is only one field, called "Customer". The following code gets the value of the Customer field and stores it in Customer$:

Customer$ = Mid$(doc.REQUEST_CONTENT(0),Instr(1,doc.REQUEST_CONTENT(0),"=") + 1, Len(doc.REQUEST_CONTENT(0)))

When you generate a Web clipping, you need to put some information in the HEAD section of the resulting HTML. Since Domino likes to generate its own HEAD data, you need to tell it not to generate a HEAD section. These two lines of code prevent Domino from generating the HEAD section:

Print "Content-Type:text/plain"
Print "Content-Type:text/html"

Now that you've told Domino not to generate a HEAD section, you need to generate one of your own. Notice the meta tags in the HEAD section: palmcomputingplatform and historylistext. These two tags tell the Palm VII that the data it's about to receive is intended for it, and that the History should contain the name of the Customer entered.

Print "<head><Title>PalmBuilder</Title>"
Print "<meta name=palmcomputingplatform content=true>"
Print "<meta name=historylisttext content=" & Ucase$(Customer$) & ">"
Print "</head>"

For the sake of simplicity, use the database search method to find records in the database that contain the customer name you entered. You can refine your search using other Notes classes such as the new R5 NotesViewEntryCollection.

Set c = db.ftsearch(Customer$, 0)

The rest of the LotusScript agent is simple LotusScript document collection processing. For each document in the document collection, print the customer information from the back-end document.

You also need to provide your user with a way to navigate back to the previous page so that he or she can search for more customers.

Print "<a href=""file:Customers.pqa/Customers.html"">Back</a><p>"

Notice the reserved PQA word "file". This tells the Palm VII to load the Customers.html file in the Customers PQA when the Back link is tapped with the stylus.


« Previous  ·  1  ·  2  ·  3  ·  4  ·  5  ·  Next »
Other articles you might like
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
Home > Lotus Technologies > Domino (77 articles)
   More about Domino log files
   Why your log.nsf might not be purging properly
   Sloppy analysis at the core of another Domino vs. SharePoint report
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 --

Find unused Lotus Notes groups and clean up your address book
Have you ever wanted to get rid of old Lotus Notes groups that were cluttering up your address book, but you weren't sure if they were used? Find Unused Groups can help.

Find Unused Groups will check your ACL, mail, multi purpose and server groups to help you determine if they are used, and who uses them.

Learn how to easily clean up your address book.

-- Advertisement --

Integrate your Notes Applications with Microsoft Office and Symphony
Integra for Notes Integrates Microsoft Office and/or IBM Lotus Symphony
Requires NO change to the design of the appliation or Installations of DLL's and EXE's
  • Integra is a ready to use solution, enhance static reports with Excel data analysis, pivot tables, macros
  • User friendly aproach, using a point and click access to features
  • Reports from any Lotus Notes databases
  • Runs reports through a Notes client, web browser and scheduled basis
  • Allows use of LotusScript for advanced data manipulation
  • Enables self service reporting capabilities to end-users


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