Solved

How to replace launch properties of a database by Lotus Notes C API ?

Posted on 2004-03-30
9
620 Views
Last Modified: 2013-12-18
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?
0
Comment
Question by:Yurij_Jilov
  • 3
  • 2
  • 2
  • +2
9 Comments
 
LVL 14

Expert Comment

by:p_partha
ID: 10715612
Can u little clear on what u are trying to do? All i know is nsfdbgetextendedinfo is undocumented.

you can control the launch using database queryopen event also..


Partha
0
 
LVL 24

Expert Comment

by:HemanthaKumar
ID: 10715637
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
0
 
LVL 31

Accepted Solution

by:
qwaletee earned 50 total points
ID: 10715814
Those values are stored in the database icon note.  The easiest way to figure out what you want to do is to take a snapshot of all the current values on the icon note, make your changes using the UI, then take another snapshot and compare.  Please note that $Flags is a series of characters, each of which represents some database setting, so you need to look at what letters are being used/not used between the snapshots.

Armed with this knowldge, you will be able to figure out how to chnage another database's icon to have the same launch settings.
0
3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

 
LVL 14

Expert Comment

by:p_partha
ID: 10716192
0
 
LVL 5

Expert Comment

by:pgloor
ID: 10716665
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("FFFF0010")      
      note.~$DefaultNavigator = "Demo"
      Call note.Save(True, False)
End Sub
0
 
LVL 24

Expert Comment

by:HemanthaKumar
ID: 10716800
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
0
 
LVL 14

Expert Comment

by:p_partha
ID: 10716815
I concur hemanth's answer also :-), if u see that was my first suggetion

partha
0
 
LVL 31

Expert Comment

by:qwaletee
ID: 10717063
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.
0
 

Author Comment

by:Yurij_Jilov
ID: 10721458
You are right, qwaletee, it's installer indeed :-)))). Thanks all answered and pgloor for code sample!
0

Featured Post

Back Up Your Microsoft Windows Server®

Back up all your Microsoft Windows Server – on-premises, in remote locations, in private and hybrid clouds. Your entire Windows Server will be backed up in one easy step with patented, block-level disk imaging. We achieve RTOs (recovery time objectives) as low as 15 seconds.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

For users on the Lotus Notes 8 Standard client, this article provides information on checking the Java Heap size and adjusting it to half of your system RAM in attempt to get the Lotus Notes 8.x Standard client to run faster.  I've had to exercise t…
Problem "Can you help me recover my changes?  I double-clicked the attachment, made changes, and then hit Save before closing it.  But when I try to re-open it, my changes are missing!"    Solution This solution opens the Outlook Secure Temp Fold…
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …

831 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question