|
|
|
|
|
|
|
|
|
|
|
|
|
|
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.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
-- 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. |
|
|
|
|
|
|
|
|
|
|