Hi ,
We have a requirement to change the images on TLN in AFP such that every role has different image in TLN . So as it is not normally possible to change thorough customization . we had downloaded the com.sap.portal.navigation.afp.tln war file in NWDS through import war file option.
We have the below folder structure after importing war file
we have unzipped the above com.sap.portal.navigation.afp.tln_core.jar file and found a .class file named TLN.class decompiled it . we got the .java file.
Created a DC of portal application project type and created a abstract portal component same as the java file decompiled , created the same structure like html,css,images as is in War file in this project ,added the required .jar files ,successfully compiled the project .
took the portal app.xml content in original war file and copied all content and pasted in newly created portal dc with just the servlet class name changed to new abstract portal application class .
After deploying and previewing the iview are experiencing the java script errors saying
- Message: 'top.LSAPI.AFPPlugin' is null or not an object
- Message: 'top.LSAPI.AFPPlugin' is null or not an object
- Message: 'top.BrowserDetection.is_ie' is null or not an object
Even though we did not change any thing in code of Abstract portal component class . the DC project should behave same as the standard TLN war file
but we are getting javascript errors .Did we miss any thing here?
If the newly created project behaves in same way as the standard TLN war file . we had a plan to play around the HTML files in DC project to include our custom images in TLN.
are we following the right approach to handle this requirement.
Thanks in advance.
Regards
Prasad.