cancel
Showing results for 
Search instead for 
Did you mean: 

Fetching System Alias for Portal System in Web Dynro Application

Former Member
0 Kudos

Hello Experts,

I want to fetch system Alias list for a particular portal system.Can someone provide me sample code for that?

Thanks & Regards,

Balaram Naidu Bankuru

Accepted Solutions (0)

Answers (2)

Answers (2)

former_member192434
Active Contributor
0 Kudos

Hi

Use this

Hi,

IEPSystem system = landscapeService.getEPSystem("systemAlias",user);

Enumeration keyEnum = system.getAttributeKeys().elements();

while (keyEnum.hasMoreElements())

{

String attributeName = (String) keyEnum.nextElement();

if(attributeName.equals("ashost"))

{

ashost = system.getAttribute(attributeName);

}

else if(attributeName.equals("sysnr"))

{

sysnr = system.getAttribute(attributeName);

}

else if(attributeName.equals("SystemType"))

{

type = system.getAttribute(attributeName);

}

else if(attributeName.equals("client"))

{

client = system.getAttribute(attributeName);

}

lang = "EN";

}

Thanks

Former Member
0 Kudos

Hi Balaram,

go through this.

/message/284123#284123 [original link is broken]

Regards,

Sandeep.