lotusscript - How to access domino desiger DB by java Agent in lotus notes? -


Hello I am new to Lotus script

I want to run a Java agent

I have changed my code

Below is my code:

  public class JavaAgent AgentBase {public void notesman () Try session session = m sessions (session); AgentContact AgentContact = session.getAgentContext (); // (your code goes here) Database DB = AgentContract Metadata Database (); View View = db.getView ("PetView"); View.setAutoUpdate (wrong); View.setAutoUpdate (wrong); ViewEntryCollection vec = view.getAllEntries (); System.out.println ("Parents" + vec.getParent (). GetName ()); System.out.println ("Number of Entries =" + vec.getCount ()); See Entry Tempentary; View Entry entry = vec.getFirstEntry (); While (login! = Null) {System.out.println ("Entry is in position" + Entry .getPosition ('.')); Tmpentry = vec.getNextEntry (); Entry.recycle (); Entry = Tempree; }} Hold (exception e) {e.printStackTrace (); }}}  

My Debug Console is O / P:

  The number of Parents PetView entries = 8 entry position 1 is on entry status 2 entry Position 3 is in the entry position 4 entry is at position 5 Entrance is in position 6. In entry 7 position the entry is at position 8  

Correct me if I am wrong

Thank you.

To get a local database, use getdatabase only without a serum.

Set db = notessession.getdatabase ("", "path \ dbname.nsf")


Comments

Popular posts from this blog

python - Overriding the save method in Django ModelForm -

html - CSS autoheight, but fit content to height of div -

qt - How to prevent QAudioInput from automatically boosting the master volume to 100%? -