cancel
Showing results for 
Search instead for 
Did you mean: 

How to implement digital clock on AFP masthead in portal 7.4

0 Kudos

Hi All

How to implement digital clock on Ajax frame work page on masthead layout in portal 7.4

Best Regards

Raju

Accepted Solutions (0)

Answers (2)

Answers (2)

vdurgarao09
Contributor
0 Kudos

Hi Raju,

Masthead customization and configuration are available in this liks

Sap portal 7 30 - change portal masthead and libraries that you need to start customization - Netwea...

In Masthead HeaderiView.jsp is available,In that you need to try this below code for clock.

<TABLE >

<TR><TD>

<FORM NAME="clock_form">

<INPUT align="right" TYPE=TEXT NAME="clock" SIZE=35>

</FORM>

<SCRIPT LANGUAGE="JavaScript">

<!-- Hide from non JavaScript browsers

function clockTick()

{

currentTime = new Date();

document.clock_form.clock.value = " "+currentTime;

document.clock_form.clock.blur();

setTimeout("clockTick()", 1000);

}

clockTick();

// End of clock -->

</SCRIPT>

</TD></TR>

</TABLE>

i hope it helps.

Best Regards

Durga.

0 Kudos

Hi Durga

Thank you for giving the links & Code

Now my digital clock is working fine in masthead page

Best Regards

Raju

vdurgarao09
Contributor
0 Kudos

Hi Raju,

Good Work.I think this thread is not closed,Need to close the thread and I was shared information and Hamendra shared information is helped means mark as help ,otherwise share you solution it will help for others.

Best Regards

Durga.

former_member193379
Active Contributor
0 Kudos

Hi Rajesh,

You can do that by changing the Masthead war. It can be achieved either by java script or jsp changes.

Pleae check your requirement and make the changes accordingly.

Thanks,

Hamendra

0 Kudos

Hi Hamendra,

can you please tell me step by step configuration of implement the digital clock

I am downloading the war file com.sap.portal.navigation.afp.masthead

And i did not found any of the  jar files in this location

\usr\sap\<SID>\<Instance>\j2ee\cluster\apps\sap.com

can you please let me know  the exact location of the jar files

Best Regards

Raju

former_member193379
Active Contributor
0 Kudos

Hi Raju,

Please go through the below steps please

Download  the WAR File: com.sap.portal.navigation.afp.masthead.war from the below path

C:\usr\sap\<SID>\<Instance>\j2ee\cluster\apps\sap.com\com.sap.portal.navigation.afp.masthead\servlet_jsp\ com.sap.portal.navigation.afp.masthead

Download the below JAR Files as well:

common.jar
com.sap.portal.useragent_api.jar
com.sap.portal.search.service_api.jar
com.sap.portal.search.provider_api_api.jar
com.sap.portal.runtime.system.favorites_api.jar
com.sap.portal.productivity.resolverservice_api.jar
com.sap.portal.pcd.glservice_api.jar
com.sap.portal.navigation.service_api.jar
com.sap.portal.navigation.helperservice_api.jar
com.sap.portal.navigation.api_service_api.jar
com.sap.portal.core.utils_api.jar
com.sap.portal.contenttaggingservice_api.jar
com.sap.portal.common.commonservices_api.jar

I hope most of the above jar you will find in server itself or you can get the relevent jar from masthead war file as well under lib folder.


Import the WAR File (com.sap.portal.navigation.afp.masthead.war) in your NWDS and please do it EP Perspective.

Right click on the project and import the jar files (or copy paste these files under lib folder).

Implement you clock changes in Masthead.jsp file.

Recreate you war after the changes and deploy to EP.

Thanks,

Hamendra

0 Kudos

Hi Hamendra

Thank you for giving step by step process of this

now my digital clock is working fine.

Best Regards

Raju