Hi There,
I am trying to add a new link in the SAP Portal 7.3 AFP masthead (in the logout_container) and facing the following issue. Steps followed,
1. Imported the war file in NWDS
2. Added the following in portalapp.xml,
<propertyname="showGoogleLink"value="true">
<propertyname="validvalues"value="4/true5/false"/>
<propertyname="plainDescription"value="Show Link in Masthead: Google"/>
<propertyname="longDescription"value="Show or hide the 'Google' link displayed in the masthead iView at runtime."/>
<propertyname="category"value="Masthead"/>
<propertyname="configattribute"value="baseLevel"/>
<propertyname="order"value="20"/>
</property>
<propertyname="googleURL"value="http://google.com/">
<propertyname="plainDescription"value="Google URL"/>
<propertyname="category"value="Masthead"/>
<propertyname="configattribute"value="baseLevel"/>
<propertyname="order"value="30"/>
</property>
<propertyname="googleURLTitle"value="google">
<propertyname="plainDescription"value="Google"/>
<propertyname="category"value="Masthead"/>
<propertyname="configattribute"value="baseLevel"/>
<propertyname="order"value="40"/>
</property>
3. Deployed the war file, which created the new properties in masthead iView. I could see the changes in Framework Page Configuration (Content Administration)
4. When I tried to read this new properties from afpmasthead.js as follows, it is always returning null values.
var bl = JSUtils.getBooleanValue(LSAPI.AFPPlugin.configuration.getClientSideAttributeValue(W,"showGoogleLink"));
var bQ = LSAPI.AFPPlugin.configuration.getClientSideAttributeValue(W,"googleURL");
var bt = LSAPI.AFPPlugin.configuration.getClientSideAttributeValue(W,"googleURLTitle");
But for properties like "show Logo Image in Masthead", the LSAPI is returning the correct value.
5. Added the link in Masthead.jsp
Did anyone go through this issue? I would appreciate if you could through me some hints please?
Note: Here are some of the deployment descriptor. Do I need to change any of the following properties?
<application name="com.sap.portal.navigation.afp.masthead">
<application-config>
<propertyname="Vendor"value="sap.com"/>
<propertyname="SecurityArea"value="NetWeaver.Portal"/>
<propertyname="PrivateSharingReference"value="SAPJ2EE::library:com.sap.portal.common, SAPJ2EE::library:tc~cmi, com.sap.portal.common.commonservices, SAPJ2EE::library:com.sapportals.htmlb, com.sap.portal.navigation.api_service, com.sap.portal.navigation.helperservice, com.sap.portal.navigation.service, com.sap.portal.productivity.resolverservice, com.sap.portal.navigation.afp.helperservice, com.sap.portal.runtime.system.favorites, SAPJ2EE::service:engine.security.facade, SAPJ2EE::library:com.sap.base.technology.facade, SAPJ2EE::library:engine.j2ee14.facade, com.sap.portal.search.provider_api, com.sap.portal.search.service, com.sap.portal.contenttaggingservice, SAPJ2EE::library:tc~epbc~pcd~gl~api"/>
<propertytname="releasable"value="true"/>
<propertyname="fail-over-enable"value="disable"/>
<propertyname="ClassLoadingPolicy"value="transitive"/>
</application-config>
<components>
<componentname="AFPMastheadV2">
<component-config>
<propertyname="ClassName"value="com.sap.portal.navigation.afp.Masthead"/>
<propertyname="ResourceBundleName"value="AFPMasthead_nls"/>
...........
<property name="com.sap.portal.navigation.afp.frameworkMode"value="Std">
<propertyname="validvalues"value="3/Std3/ByD"/>
<propertyname="plainDescription"value="Framework Mode"/>
<propertyname="longDescription"value="Display the masthead iView with specific customization of the portal framework"/>
<propertyname="category"value="Framework"/>
<propertyname="administration"value="NON-DIALOG"/>
</property>
...............
Thank you,
Shen