Hello...
test with this:
// get the system landscape service
ILandscapeService landscapeService = (ILandscapeService) request.getService(ILandscapeService.KEY);
// get the system specified in the property File in property "SystemIdentifier"
String systemName = myProfile.getProperty(PROPERTY_SYSTEM);
// get the system information from landscape service
IEPSystem system = landscapeService.getEPSystem(systemName);
// check if system is maintained in systems.xml
if (system != null) {
// get all attribute of system defined in systems.xml
Iterator it = system.getAttributeKeys().iterator();
while (it.hasNext()) {
String key = (String) it.next();
//you can look for the attribute that you want
String str = system.getAttribute(key); // value of atribute
}
}
I hope helps you...
Thanks
Luis..
Thanks. It works. Now i can access attributes within system.xml.
However is there a way to access attributes of any custom xml file (as opposed to systems.xml) I choose to implement in Java iView. If so, using the code above how would i be able to reference this custom xml file in my java code.
Many thanks for your help
Sunil
Add a comment