Read active location doc with script

Hello,I would like to read some values from the user’s active location document with either a Lotus Script or a Java Agent.

Can anybody give me a hint ?

Thanx Martin

Subject: getEnvironmentString

Hi,I think in theorie I know what to do, but it does not function.

This is my code to read the Location variable from the Notes.ini. But I do just get an empty string. What is wrong ? THis is my code:

public void NotesMain() {



	try {

		Session session = getSession();

		AgentContext agentContext = session.getAgentContext();



		String slc = session.getEnvironmentString("Location");

		if (slc == null)

		  System.out.println("No $Location");

		else

		  System.out.println("loc" + slc);



	} catch(Exception e) {

		e.printStackTrace();

	}

}

Subject: solution

Sorry my fault,I did not realy read the Help. You have to give the parameter true, that Notes does not assume a $ at the begining of the name.

String slc = session.getEnvironmentString(“Location”, true);