on 11-13-2012 10:59 AM
Hello @ll,
i have some simple questions about Ajax Framework Page and i hope somebody can help me.
I have already search in "Wiki for Ajax Framework Page", SAP Help Portal 7.3 and in this forum part without results of my questions.
1. Question (Download):
How can i download the AFP Masthead (com.sap.portal.AFPMasthead)from my SAP Portal 7.3.
My intention is to move "Welcome <User Fistname. User Lastname>" message from the Menu Bar row
into the Masthead (On the Top beside of Log On/Log Off) and i'm sure to change this in source code.
The same intention in this thread: http://scn.sap.com/thread/3251956
2. Question (Change):
If I have understood correctly, i get after downloading a *.war file?
Afterwards import into SAP NWDS? And which perspective?
3. Question (Deploy/Import):
How can i import/deploy my change File (AFP Masthead) into my SAP Portal?
I think that are simple questions but i need little approach.
Thanks in advance.
Best regards from germany
Armin
Here we go - my solution and it works
The steps for AFP Masthead modification on SAP NetWeaver 7.3 EHP1 (SAP NW 7.31) with SP05. I should be work on SAP NW 7.3, too.
The steps:
Screenshots for each step:
Regards
Armin
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
I found all .jar files, but not the common.jar.
Can you tell me, where i Can found it?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
1. Get the com.sap.portal.navigation.afp.masthead.war file from Basis. Hope that shouldn't be an issue.
Import that war file as SAP war file into your NWDS.(Recommendable 7.3 ver).
In the scripts folder, you'll find afpmasthead.js file. Make the following value MastHeadBean.isShowLoggedAsMessage() == true.
In jsp folder, you'll find MastHead.jsp.
All the elements such as Logo, Logged in User name, Logoff, Collabation Link etc., are present in containers.
Include this welcome_message_container in between the Logo and Logoff or where ever you need.
2. You can make the changes very well in EP perspective only.
3. Once you build without any errors, export as an SAP war file. Go to deployment perspective and deploy the war file.
Regards,
Jay.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
The place holder for Logoff you will on line 64 in masthead.jsp, see screenshot 1
The Logoff coding you will find in Javascript file afpmasthead.js, see screenshot 2.
for nice coding views for Javascript.
Check this variables:
var ay = JSUtils.getBooleanValue(LSAPI.AFPPlugin.configuration.getClientSideAttributeValue(W, "showLogInLogOffValue"));
var aH = JSUtils.getBooleanValue(LSAPI.AFPPlugin.configuration.getClientSideAttributeValue(W, "isShowLoggedAsMessage"))
But for your scenario i think reduce your timeout for user sessions.
regards
armin
Thanks Armin.
I want to implement same logoff functionality in AjaxFrame work form Ep 7.3 in my custom code.
I just want to know how this logoff is working in 7.3 AFPmasthead.
Can you give me some idea if I need to implement this logoff functionality in custom code how can I achieve that .
Any kind of input will help me to go forward.
The block of code you mentioned is to create logoff link and message box with Yes an No button.
But I need to know which method or function doing the session killing task.
I tried below line of code , but it doesn't work; it is not ending the portal session .
EPCM.subscribeEventReliable('urn:com.sapportals:navigation',
'AFPisLoaded',
function _afpLoaded() {
alert('Into the EPCM event');
//Script writen here.
EPCM.getSAPTop().LSAPI.getSessionPlugin.logoff();
}
)
Thanks and Regards,
Sambaran Chakraborty
Hello @ll,
i have still a problem.
Below my procedure:
I think there are a problem with JAR files or dependencies. I don't know which and how
JAR files i have to put in my portal application.
In the original Portal Application "com.sap.portal.navigation.afp.masthead" there are dependence, see screenshot.
In my own Portal Application there is no dependence. How can i put this dependence in my
own portal application?
Please could somebody help me how can i solve this issue?!
Thanks a lot.
Save SAP.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Armin,
can you try to convert your loacl application in a DC.
After this was done, have a look at this doc:
Create a new DC and put the external Jar´s in it.
check also this link:
br,
fabian
Hi Fabian,
i already done my portal application convert as DC and add there Dependence. After deployment in "Deployment Perspective" there no entries dependence and additional i don't find all dependence in SAP NWDS 7.3 SP04 from the original portal application "com.sap.portal.navigation.afp.masthead".
Dependence from com.sap.portal.navigation.afp.masthead
For example:
And i don't understand why i don't get a build error in NWDS. I'm confused. Never ending story. And the big problem, which JAR Files i needed for AFP Masthead.
We work with SAP Portal 7.3 SP04.
br
armin
Hi Armin,
what is the status here?
Futhermore have a look at this nice blog about the jar locator function 7.3 sp08 from today: http://scn.sap.com/community/netweaver-portal/blog/2012/11/20/nw-730-sp08--adding-class-jar-locator-...
br,
fabian
Hi Armin,
1 > The *.war file should you fin in the following folder "com.sap.portal.navigation.afp.masthead" located at you server e.g. E:\usr\sap\EPL\J00\j2ee\cluster\apps\sap.com.
2 > The right NWDS perspective should be the "Java EE Perspective"
3 > You can "deploy" the changed *.war at the "Deployview"
http://help.sap.com/saphelp_nw73ehp1/helpdata/de/4a/f03bbb1e4268c5e10000000a421937/content.htm
Please check also the following links:
http://scn.sap.com/thread/1978620
http://scn.sap.com/docs/DOC-23058
best regards,
fabian
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.