|
download: Profiles and UI viewer |
Profiles and UI viewer is a Small but very effective tool to help Notes designers changing/deleting fields values or Profiles. (The changes are immediately in affect). Be aware, it is easy to delete a profiles or fields. One click and the content is gone!! Important: Unpack and install the program into Notes Client program directory! Works fine with all Notes versions since 5.02b and all Windows 32/64 versions. (win 7 Ultimate 64Bit too). The program is written in VB6 and based on on the Domino objects with a lot of Win API's. Compiled it with VB6 XP Pro SP3 and VS2008 win7 64 for the attached dll. (Using Domino COM objects and Domino C API 8.5.2 reference). By developing Notes applications at a customer sites I feel helpless without using the tool.
Viewing contents: Open a document and press 'Get UI doc content', a sorted fields-list appears with the first element of fields content. To view more click on the field name. The content appears to the right. Searching: Insert a search text and click the Go button several times to get the field names or the content - containing the looking word. Here you get very quickly the answer on the very frequent question: 'The field name containing the word I am looking for'. Create new field: Insert a unique field name, choose field type and put some content in the Content field below. Click the 'Add new field' and watch the results in the field list on the left hand side. For Some field types - creating fields with content is not implemented yet.
Search and replace The action replaces all found fields with 'Eample1' content - by the text of the 'replace' input field. By clicking the 'Search replace all fields' button the results are shown immediately in the document.
Change field content Click the desired field and add some text to the content. The new field values are shown by using the 'Write/Overwrite doc' button. Reopen your UI doc without saving it in your client - than observe the changes.
Other way to view Notes documents Ever got a server log message with 'corrupt document. bad attachment (Doc ID 31950) etc.' Just open any document in the specified database, Put the decimal id into HEX/DEC NoteID field and press view. Extract or load the correct attachment back into the document. After the document is repaired the Database can properly replicate without brakes. Alternatively insert the proper UID and press View to show the required document. Lunch Server Console remote command. After several commands use the up/down keys to scroll and repeat the previous ones. Be aware not to quit the server unintentionally. In this part I use a C++ DLL (cmdRemCon.dll) that should resident in the notes program directory. Some explanations and source code is written below. You may use freely the sample or adjust the DLL for your own needs.
VB6 sample Call to Notes API C DLL: Public Declare Function W32_cmdRemCon Lib "cmdRemCon.dll"
Alias "RemoteCommand" (ByVal rcmd_server As String, ByVal rcmd_command As
String, ByVal response As String) As Integer 20 rcmd_server = Space(128) 180 Flag = W32_cmdRemCon(rcmd_server,
rcmd_command, Result) Notes API C DLL sample:
#include <windows.h> int _stdcall
RemoteCommand (char
FAR *pServerName, char
FAR *pConsoleCommand, char
result[]);
//****************************************************************************** Viewing domino profiles Ever wanted quickly to see how many profiles resides in the Database and their contents? Just press the 'Search for profiles' button. A list of all profiles appears in the 'Documents by NoteID' list. By double clicking you open the desired document. Many Domino databases are carrying a lot of old garbage profiles during the application lifecycle - no wonder that a Database is slowly loaded. Here is an example of the calendarprofile of my Mail DB. The Filed '$Cal' enables manipulating the color appearance of the calendar view. I used it to show appointments of a certain group of users in a different color. Be aware! it easy to delete Profiles by pressing the red button.
Viewing design documents Double clicking on one of the design elements provides a list of all designed docs of the chosen type. The content and the fields act like a normal regular Notes document. Below in the screenshot an Agent is selected and the $AssistAction field shows the its script (doesn't work for formulas) . $AssistInfo field displays some more information about the Agent attributes.
Copy/Move design elements After changing or upgrading a design you can copy it easily to a different database of the same kind. Some customers are not using the Domino designer task at all, so here is a way to populate some design elements quickly from one place to another. Pressing the Copy/Move button starts a form - enabling selecting a target database on the same or a different Server. For some design elements you should check the Notes designer whether the element appears twice or not. (restart the designer and see the effect of the 'Replace' option below).
Mini Explorer For the case of loading attachments I needed a small quick file system explorer - so I implemented one, allowing remove files. As an option you may lunch the application behind the file (dblClick) or view the file attributes (right mouse click). Dump fields Just a simple way to list the fields in text file (rarely used). Lotus Client toolbar adjustment Customize your universal toolbar und start the program from your Notes client as I use to do.
_______________________________________ For any comments or bugs please response the author. |
| Zurück / back |