Yurij_Jilov
asked on
How to replace launch properties of a database by Lotus Notes C API ?
How to replace launch properties (tab "Launch properties" on "Database properties" dialog) of a database by Lotus Notes C API ? I need to change string parameters "When opened in the Notes client", "Type of navigator" and "Name". Whether I can take advantage of function NSFDbGetExtendedInfo?
There is no need of api to manipulate what is launched...Instead you can pretty much control what will be shown in the Database script open event.
If you use frames, you can pretty much calculate the content which should be and not be shown.. like bookmark db
Is there any specific application of api that I am missing.. And also as far the c api can access I have seen DBOptions that can be accessed doesn't include the above said object.
~Hemanth
If you use frames, you can pretty much calculate the content which should be and not be shown.. like bookmark db
Is there any specific application of api that I am missing.. And also as far the c api can access I have seen DBOptions that can be accessed doesn't include the above said object.
~Hemanth
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
just to concur qwal's answer , just see this :
http://www-10.lotus.com/ldd/46dom.nsf/55c38d716d632d9b8525689b005ba1c0/ca47777ebceb3d6f85256ae8006cf158?OpenDocument
Partha
http://www-10.lotus.com/ldd/46dom.nsf/55c38d716d632d9b8525689b005ba1c0/ca47777ebceb3d6f85256ae8006cf158?OpenDocument
Partha
I use this little piece of code to change the default navigator using a LortusScript agent:
Sub Initialize
' Change the Standard Navigator to Demo
Dim session As New NotesSession
Dim db As NotesDatabase
Dim note As NotesDocument
Set db = session.CurrentDatabase
' Get the Icon note
Set note = db.GetDocumentByID("FFFF00 10")
note.~$DefaultNavigator = "Demo"
Call note.Save(True, False)
End Sub
Sub Initialize
' Change the Standard Navigator to Demo
Dim session As New NotesSession
Dim db As NotesDatabase
Dim note As NotesDocument
Set db = session.CurrentDatabase
' Get the Icon note
Set note = db.GetDocumentByID("FFFF00
note.~$DefaultNavigator = "Demo"
Call note.Save(True, False)
End Sub
When I have a straight forward method , why bother hacking thru .. it worked pretty good until R4. With advent of R5 that is made simpler ... And also this method will not yield dynamic page switch as frame does. You have to close and re-open the db to see the changes
I concur hemanth's answer also :-), if u see that was my first suggetion
partha
partha
Well, kiddies, I would guess there's a good reason for wanting to change the actual launch properties... maybe some sort of installer, or changes to user's local files, or something where a design change just isn't going to be easy to manage.
ASKER
You are right, qwaletee, it's installer indeed :-)))). Thanks all answered and pgloor for code sample!
you can control the launch using database queryopen event also..
Partha