cancel
Showing results for 
Search instead for 
Did you mean: 

Help required on Brodcast messages to logged on users in Portal- Weblogs

Former Member
0 Kudos

Dear all

I was trying to do broadcasting of messages to logged on users in portal using Prakash singh weblog. Steps i have done...got some errors.

1. Created project called com.pradeep.broadcast

2.created a portal service called alertreceiver

-->In this i got errors...

import com.sapportals.portal.prt.service.notification.INotificationService;

import com.sapportals.portal.prt.service.notification.ITopicListener;

import com.sapportals.portal.prt.service.notification.TopicData;

import com.sapportals.portal.prt.service.notification.TopicDataContainer;

These imports canot be resolved.

Can u help me in this regard. Appreciate with points

rgds

pradeep

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

hi,

As given in the weblog, did you include prtcoreservice.jar in the build path?

Use jar class finder as given in weblog to locate the jar

Regards,

Ganesh N

Former Member
0 Kudos

Hi all

I done what u all suggested. i.e, Added jar file in Portal-inf ->lib folder.

but still it shows errors. Does it require any plugins for KM?

rgds

pradeep

Message was edited by: Pradeep Reddy

Former Member
0 Kudos

Hi Pradeep,

Add the jar to the Project Build path. Rebuild the project and check if it works.

Regards,

Harini S

Former Member
0 Kudos

Hi Harini

How to add jar file to project build path. B'z even if u add directly to PORTAL-INF->lib. does it make any diff.

rgds

PRadeep

Saravanan_SD
Advisor
Advisor
0 Kudos

Hi Pradeep,

Right click your project. Goto properties -> Java Build path -> libraries -> add external jar.

Browse and add the required jar in the project.

Regards,

Saravanan

Former Member
0 Kudos

hi,

Right click the project select properties - > java Build Path. Select Libraries tab in it . Click Add External Jars Button and include the particular jar and then rebuild the project again.

Regards,

Ganesh N

Former Member
0 Kudos

Hi Pradeep,

Right click your project -> Properties -> Java Build Path -> Libraries -> Add external jars. Add the jar. Check it out. I think there is some difference in both. Portal-inf -> Lib files will be available for runtime and build path files for designtime. Not sure of that.

Regards,

Harini S

Former Member
0 Kudos

Hi

Thank you so much...now its error free...i got few doubts after 4th step in that weblog.

4. Portal Application->Create a new portal application object ->com.pradeep.broadcast->portal component->JSPDynpage

In the JSPWizard...

Name : display

Location: Core

JSPdynpage Class name : display

JSPdynpage Package name : src.api or src.core

JSPfile name : displayalert

clicked on "next" button..

There i can get Bean information exchange

1.Do not generete any bean statements

2.Generate bean statements..

Can u please tell me which on i need to select.

Help appreciated

rgds

pradeep

Former Member
0 Kudos

hi,

You need to select 2.Generate bean statements because there is a separate java class for including those codes in .

Class Name : alertinfo

package com.ust.broadcast.bean;

public class alertinfo

{

public String url;

public String no_message;

public String geturl() {

return url;

}

public String no_message() {

return no_message;

}

}

Regards,

Ganesh N

Former Member
0 Kudos

Hi Pradeep,

That is the 3rd step. Here are the steps.

1)Portal Application->Create a new portal application object ->com.pradeep.broadcast->portal component->JSPDynpage

2)Name : display

Location: Core

JSPdynpage Class name : display

JSPdynpage Package name : com.ust.broadcast

JSPfile name : displayalert

clicked on "next" button..

2.Generate bean statements..

Bean name: myBean

Bean scope: application

Generate bean class

Location:Core

Class name:alertinfo

Package name:com.ust.broadcast.bean

Regards,

Harini S

Former Member
0 Kudos

Hi Harini

Thanks for ur inputs...

After that i created two iviews based on the par file..like publishmessage iview and displaymessage iview.

After that i copied the displaymessage iview to Defaultframework page ->desktop inner page -> In the desktop innerpage i was unable to move to workarea panel.

Its not dragging into that...

Kindly help me

rgds

pradeep

Former Member
0 Kudos

hi,

You cannt just drag and drop iview into page.

In the right hand side keep the desktop innerpage open. Now right click on the displaymessage iview in the Portal content and select add iview to page. Now you ll see it gets added to desktop innerpage.

Hope it helps...

Regards,

Ganesh N

Former Member
0 Kudos

Hi Pradeep,

As Ganesh has told, open the desktop innerpage and rightclick the iViews and add them to the page. Desktop InnerPage is a 2 column layout page. So u can drag the iViews to any column. For that, click on Page Layout radio button of desktop innerpage and drag the iViews to the required workarea column. Refresh the browser window. U can see both the iViews added.

Hope this helps.

Close the thread if solved.

Regards,

Harini S

Former Member
0 Kudos

Hi Harini

Iview added to Desktop innerpage...but its not dragging to workarea column.

What would be the problem?

Kindly suggest me

rgds

pradeep

Former Member
0 Kudos

Hi Pradeep,

Try adding the iViews and dragging from Administrator account or from users with superadmin role. That may be the problem.

Reward points for helpful answers.

Regards,

Harini S

Former Member
0 Kudos

Hi

It is working even, if dont add it to work area panel.

Anyways thanks for support.

Can broadcasting is user Specific user level? If so where do i need to change the code.

Kindly suggest me

Rgds

Pradeep

Former Member
0 Kudos

Hi Pradeep,

Ya.It will work if the iView is in the desktop innerpage. I thought u wanted it to be in the work area as per some requirement. Anyway, happy that it is working. Now What do u mean as user specific user level?

If u want broadcasting i.e., publishing to be done only by administrator or some specific user, then u can create a new portal desktop for that user alone and put the publish iView in the desktop innerpage of that new desktop's framework page. The display iView for the published message can be added to all desktop framework pages. No code change is required.

Hope that helps.

Regards,

Harini S

Former Member
0 Kudos

Hi Harini

Thanks for ur Swift reply. I want to broadcast the message to the User Specific level.

Rgds

PRadeep

Former Member
0 Kudos

Hi,

I have successfully implemented all theb steps mentioned in the blog. Dragged and dropped the display iview in workarea. But I am not able to see anything on portal. What excatly should be the output?

Former Member
0 Kudos

Hi Anagha Bhat

I have the same issue and not able to see any content on Display page.It is just blak page but i can see the text on popup page.

did you get resolved?

appreciate your reply!

Thanks

Gopi

Answers (3)

Answers (3)

Former Member
0 Kudos

Hello,

I'm trying to aplly this blog to our system,but it shows error.

can anyone send me please the PAR file to mohamed373@gmail.com

Former Member
0 Kudos

Hi Pradeep,

It is available in 2 jars in these paths.Check out for the appropriate one.

1)eclipse/plugins/com.sap.ep.applicationDevelopment/prtcoreservice.jar

2)eclipse/plugins/com.sap.tc.ap/comp/SAP_JTECHS/DCs/sap.com/epbc.petapi_coreservice/_comp/gen/default/public/default/lib/java/prtcoreservice.jar

Regards,

Harini S

Saravanan_SD
Advisor
Advisor
0 Kudos

Hi Pradeep,

Include the <b>prtcoreservice.jar</b> in your project.

Hope it solves your problem.

Regards,

Saravanan