DDLS82 LotusScript Advanced
Längd: 1 dag
Pris: 8.100:-
Datum Stockholm: 22 juni, 31 augusti, 12 november
Audience
This course is designed for Notes programmers well versed in using Domino Designer 8. It assumes that you have:
- extensive experience using Notes 8
- thorough knowledge of the Domino Designer 8 development environment, including Form and View design
Course design
This is a lecture/lab course in which you will closely examine demonstration code and create additional code. You will immediately apply the concepts and techniques as you work in your own project database.
This is not an introductory programming course. Its emphasis is on how to use LotusScript to manipulate Notes objects. All major concepts are reinforced with examples and exercises, during which you will code and debug LotusScript. From this experience you will have the necessary skills to build sophisticated applications. All code fragments are labeled to make talking about them and reusing them in exercises easier. The intent in labeling them is also to help build a sense of modularity, purpose, and a way of "thinking" about LotusScript.
Outline
Topic 23: Newsletter Object
- NotesNewsletter object
- Create newsletter object
- Exercise: Newsletter report
- Case study: Custom search Form
- Optional exercise: Order report
- FormatDocument method
Topic 27: Database Access Control List
- Minimum access requirements
- Best practices
- Find a known ACL entry level
- Name storage in the ACL
- ACL level constants
- Iterate ACL entries
- Other ACL permissions
- Resolve group or Organization wildcard name
- Why control the ACL with LotusScript?
- Add an ACL entry
- When to save ACL changes
- Default- special handling
- Exercise: Set ACL
- Change the level of an entry
- Rename an entry
- Delete an entry
- Exercise: ACL control
- Set permissions
- Set entry type
- Add a Role
- Associate an entry with a Role
- Role resolution
- Disassociate entry from Role
- Rename Role
- Remove a Role
- ACL and replication
- ACL, your Domino administrator, and company policy
Topic 30: Custom Classes
-Custom classes
- Derived classes (inheritance)
- Memory management
- Example: Custom helper class
- Advantages of object-oriented programming
- Learn more about custom classes
- .LSO files
- .LSX files
Topic 33: Text File Operations
- Write to a text file (Output)
- Head lines from a text file (Input)
- Read performance
- Delete a file
- Example: List Databases to File
- Exercise: Append to text file
- Export records to text file
- Easy comma delimited export
- Import records from text file
- NotesStream class
- Open, write to, and close NotesStream object
- List databases example
- MIME in email messages
- Agents and MIME/HTML
Topic 34: XML Processing
- NotesDOMParser and NotesDOMDocumentNode classes
- Example XML file
- Walk DOM Tree
- Exercise: Correlate XML file to walkTree report
- Create Notes documents from XML
- Open a NotesStream to a URL
Topic 35: Call DLL Procedures
- Declare DLL procedure
- Call the DLL Procedure
- Caveats and tips
- Win API: GetFolderName
- Win API: Read/Write INI file
- Win API: Get registry value
- Notes API: Close any Notes window
- Notes API: Run file from Notes
- Other DLL examples
- Resources
Topic 36: Use Other Product Objects
- Component Object Model (COM)
- Instantiate Excel objects
- Start and stop an application
- Product object hierarchy
- Access the object methods and properties
- Where to find object data files
- Example 1: Create Excel object from file
- Example 2: Create new Excel object and set formula
- Example 3: Create new Excel chart object
- Example 4: Export View to Excel
- Example 5: Create new Word object
- Example 6: Create new Word object (labels)
- Compound Document Container
- Example 7: Work with embedded object
- Notes and OLE
- Example 8: Create OLE object in PostOpen event
- Troubleshoot OLE problems
- Example 9: Operate on attachment
- Windows Script Host (WSH)
- Windows Management Instrumentation (WMI)
- COM access to Notes objects
- Buy versus build
- Lotus Symphony
