cancel
Showing results for 
Search instead for 
Did you mean: 

How to call organize favorites functionality from custom iview

former_member192283
Participant
0 Kudos

Hi All,

I am using the sap Portal 7.31 using AJAX framework page. In the Tool bar level, SAP provided the functionality for "Favorites" -> organize favorites link.

If you click on this link "Organize Favorites" will show the external popup to Add, delete, rename the favorites.

so i have one custom iview which has link , click on that link i want to launch the same "Organize Favorites" popup.

Can any body tell me, how i can achieve this.

thanks

vijay

Accepted Solutions (1)

Accepted Solutions (1)

saar_dagan
Employee
Employee
0 Kudos

Hi Vijay,

It is very simple to acheive, all you need to do is create a link with the following href:

http://hostname:port/irj/servlet/prt/portal/prtroot/pcd!3aportal_content!2fevery_user!2fgeneral!2faf...

Hope this helped,

If so please consider rewarding points for this answer.

Best regards,

Saar

former_member192283
Participant
0 Kudos

Saar,

Thanks for the reply,

I think you have given this url by right clicking on the "organize Favorites" copied the url.

when i tried that way it showing the normal desktop only. I think we may need to pass some of the information to show this popup.  like user id extra to show the logged user favorites information in the respective popup.

Please let me know if you have tried in your end.

Thanks

saar_dagan
Employee
Employee
0 Kudos

Hi Vijay,

It works great for me, if the user is logged in and you follow that link you receive the favorites page

just like in the "Organize Favorites".

if it doesn't work for you try using the EPCM.doNavigate in that link

http://help.sap.com/saphelp_nw73/helpdata/en/4a/2a0113ab9247dbe10000000a42189c/content.htm

BR,

Saar

former_member192283
Participant
0 Kudos

Saar,

Thanks for your quick response, When tried the same it is opening the same page not the Organize Favorites page also it is opening in the new window with the address bar,  but i need to open the new window as same as standard "Organize Favorites" link open's the window with out any address bar. Can you suggest how to achieve this.

Please share your code which you tried in your end.

Thanks

saar_dagan
Employee
Employee
0 Kudos

Hi Vijay,

Sorry, when I used it with the portal as a link it did not work as I explained but I did fix it .

use the following code

// this button can be a link or whatever of course

<button id="testButton" style="position: fixed; bottom: 10px; left: 10px; z-index: 3000;" onclick="EPCM.doNavigate('ROLES://portal_content/every_user/general/afpFavorites',1)">hello</button>

this will work and open it in a new window.

if you whish to remove the URL bar or change window height and stuff follow the API of EPCM.doNavigate

BR,

Saar

former_member192283
Participant
0 Kudos

Hi Saar,

Thanks for the reply, It helped me to correct where i have error. Thanks lot for you help and rewarded the points

Answers (0)