Flexible UI / Collaboration API
Hi
Experts!!!
can you please suggest for the solution of the below problem.
I have a created room template which consists of room info, discussions,tasks, Calender, member roles, member lists.....
using thie above room template i have created a room.
When i am creating a room, I have given a long description and when i entered into the room when i navigate to the room info iview its showing given description with horizantal bar.
My requirement is to split the description into two to three lines.
For the above problem should i develop new custom iview or is there any properties related to this problem.
If i have to develop custome iview whether i have to proceed with flexible ui or collaboration API.
can u please suggest and if any coding snippets was appreciated.
Don't worry about rewarding points!!!
Thanks in Advance
Ravi
Hi,
to get information about discussion use the Interface IDiscussion.
IDiscussionItemList getTopics()
Gets all topics that belong to the discussion.
Here is a link to the javadocs https://help.sap.com/javadocs/NW04S/current/km/index.html
Best Regards
Frank
Similar Messages
-
Flexible UI/ Collaboration Room API
Hi
Experts!!!
can you please suggest for the solution of the below problem.
I have a created room template which consists of room info, discussions,tasks, Calender, member roles, member lists.....
using thie above room template i have created a room.
When i am creating a room, I have given a long description and when i entered into the room when i navigate to the room info iview its showing given description with horizantal bar.
My requirement is to split the description into two to three lines.
For the above problem should i develop new custom iview or is there any properties related to this problem.
If i have to develop custome iview whether i have to proceed with flexible ui or collaboration API.
can u please suggest and if any coding snippets was appreciated.
Don't worry about rewarding points!!!
Thanks in Advance
RaviHI,
I added the following jars and the collaboration API's are working fine.
bc.rf.framework_api.jar
coll.shared.extension_api.jar
coll.shared.roomobject_api.jar
coll.shared.types_api.jar
com.sap.security.api.ep5.jar
kmc.util.core_api.jar
You can use the JAR Finder to find out which jar you are missing, put the class name in the jar finder and search to get the jar.
<a href="https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/2951">JAR Finder</a> -
Error while creating IViews using collaboration API
Hi
I have created one Dynpage portal component, in that i would like to utilize collaboration API.
I am keep on getting errors like "<b>The compilation unit directly references the missing type ...."</b>"
import com.sapportals.htmlb.page.DynPage;
import com.sapportals.htmlb.page.PageException;
import com.sapportals.portal.htmlb.page.PageProcessorComponent;
import com.sap.ip.collaboration.room.api.IRooms;
import com.sapportals.portal.prt.runtime.PortalRuntime;
import com.sapportals.htmlb.*;
import com.sapportals.htmlb.enum.*;
public class Sample extends PageProcessorComponent {
public DynPage getPage() {
return new SampleDynPage();
public static class SampleDynPage extends DynPage
IRooms roomsAPI = (IRooms)PortalRuntime.getRuntimeResources().getService(IRooms.PORTAL_SERVICE_ID);
Initialization code executed once per user.
I have included the following jar files:
bc.rf.framework_api.jar
coll.shared.extension_api.jar
coll.shared.roomobject_api.jar
coll.shared.types_api.jar
com.sap.security.api.ep5.jar
and also i have included com.sap.netweaver.coll.shared in portal.xml as servicesreference
Experts can you please help in the above problem
I am sure u will get reward points.
Thanks in AdvanceHI,
You have to add the following jars apart from the jars you have mentioned
1. kmc.util.core_api.jar
2. umapi.jar
To find jar files
==================
Download and install the JAR Finder. how to is mentioned in this <a href="https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/2951">Weblog</a>. see what jar is required by copying the com.sap.ip.BaseException from the error "compilation unit references................." and put the "BaseException" in the jar finder and search. from the given options select the correct jar "com.sap.ip.BaseException" right click and add to the project. You can add all the jars required by this method.
Portalapp.xml
==============
<application-config>
<property name="SharingReference" value="com.sap.portal.htmlb"/>
<property name="ServicesReference" value="com.sap.netweaver.coll.shared"/>
</application-config>
HI,
use the BaseException etc the errors you get in NWDS to search for the jar. paste the BaseException and search in jarfinder.
Message was edited by: Kirupanand Venkatapathi
Message was edited by: Kirupanand Venkatapathi -
Using KM and Collaboration API in portal component and web dynpro
Hi,
I have to develop portal components and Web Dynpros (JAVA) which have to use the following functions:
- copy, delete KM documents
- sending E-Mails
Can anyone give me some actual documentation links for the KM and Collaboration APIs ?
Which references do I need in portalapp.xml for KM/collaboration and which jar-Files do I have to add to the project?
We are using NetWeaver 7.01 SP18.Hi Yogalakshmi,
thank you for the link and the information. Now I managed to work with the KM documents.
One more Question: to get the resource Context, I use this code:
portalUser = WPUMFactory.getServiceUserFactory().getServiceUser("cmadmin_service");
IResourceContext resourceContext = new ResourceContext(portalUser);
The method getServiceUser is deprecated, also the com.sapportals.portal.security.usermanagement.IUser is deprecated. Is there an other possibility to get the ResourceContext. (perhaps with com.sap.security.api.IUser) ? -
Hello,Is it possible to retrieve a projects list with the collaboration API from only one information: the project folder where are stored these projects ?
I parsed the API collaboration reference manual. And I don't find any function allowing me to do that.Can somebody confirm or explain if such a query is possible ?
Thanks in advance,ChristianThanks Caroline. Do you know if such a feature could be available in next versions of the Collab or EDK ?If not, could this be considered as a wish for next releases ?Christian
-
Publishing Doc through collaboration api
I am looking to publish a document which is stored in collab to the Knowledge Directory from a portlet using the collaboration api. I should be able to do this using publishDocumentToPortal() method in DocumentManager however I can find no javadocs on this that will tell me what the parameters fro the method are. All I can determine is that publishDocumentToPortal(ICollaborationServerContext context, int arg1, int arg2, int arg3) has 4 parameters, 3 of which are ints but what do they represent. The package is com.plumtree.collaboration.api.CollaborationServerManager and the class is IDocumentManager.
Does anyone know how I can get hold of the javadocs for com.plumtree.collaboration.*
Using Portal 5.0.3 and Collab 4.0.2 on Windows platform
Thanks
[email protected]Hi
You include the following jar files
bc.rf.framework_api.jar
coll.shared.extension_api.jar
coll.shared.types_api.jar
kmc.util.core_api.jar
kmc.util.core_core.jar
and also include sharing reference as mentioned in the collaboration API 6.0 document. -
Hi All
Is there any collaboration API available to get the discussion topics for a particular room?
Regards,
YogaHi,
to get information about discussion use the Interface IDiscussion.
IDiscussionItemList getTopics()
Gets all topics that belong to the discussion.
Here is a link to the javadocs https://help.sap.com/javadocs/NW04S/current/km/index.html
Best Regards
Frank -
Collaboration API - project.store() error
Hi,
I am attempting to create a collaboration project via the API using C#. I have based my code on the samples from the "Extending Server Functionality with Remote APIs: Collaboration Server" documentation.
The following code all works fine:
IPortletContext portletContext = PortletContextFactory.CreatePortletContext(System.Web.HttpContext.Current.Request, System.Web.HttpContext.Current.Response);
IPortletRequest portletRequest = portletContext.GetRequest();
stringloginToken = portletRequest.GetLoginToken();
Plumtree.Remote.PRC.IRemoteSession portalSession = portletContext.GetRemotePortalSession();
ICollaborationFactory collabFactory = portalSession.GetCollaborationFactory();
projectManager = collabFactory.GetProjectManager();
IProject project = projectManager.CreateProject("NewProjectName", "NewProjectDescription");
However, the next line fails:
project.store();
The exception raised is:
"System.Web.Services.Protocols.SoapException: Server was unable to process request. --> Invalid pointer at com.plumtree.remote.prc.soap.QueryInterfaceProcedures.QueryInterface(String sLoginToken, String sInterfaceID, String sUUID) in e:\latestbuild\Release\devkit\5.2.x\prc\src\dotnet\portalprocedures\QueryInterfaceProcedures.cs:line 63 at com.plumtree.remote.prc.xp.XPRemoteSession.getCollaborationRemoteServerFromGlobalMap(IXPQueryInterfaceProcedures queryInterfaceProcedures)"
I am using the following versions:
Collaboration Server 4.02
edk.dll 5.2.0
Portal Server 5.04
Is there anything I need to install on the Portal server to make the above versions/code compatible or is there a bug in the edk.dll?
Thanks in advance for any help.
Regards,
GreigMy first question would be you are on Collab 4.0.1+, correct? Collab 4.0.0 does not have API support.
I would try hitting a URL in your browser that looks like this: http://collabmachine:port/collab/services. You should get a page back that says, "And now... Some Services" followed by a list of about 9 service names.
If you can get that, your API services are installed/registered. But your installation probably has some kind of error. So the next step would be to check your Collab logs for exceptions (located in /ptcollab/4.0/logs I think). -
Can I use Collab API powerful enough to make a portlet just like "Community Projects Portlet"? (including the funcionality to add projects through project explorer)Similarly "Community Documents portlet".Is there a function to get all the documents of all the projects added in current "Community Projects" portlet for the logged user?Is there a way/function to get all the projects of the current community and its subcommunities? (to whihc the current user has rights to)
With the community and my page task portlets you can already do that, unless there is something I'm missing.
You can view all users across all projectsIt has columns for:
Task Name, Project, Assigned To, Start/Due Date, Status (% complete).
In addition it has the added features of letting you print, and also sort by:
All Tasks
Not yet started
Completed
Overdue
At Risk
Upcoming -
Is there a way to send emails using the SMTP Channels listed in Sys Adm - Sys Config - KM - config - CM - Utilities - Channels - EMAIL?
Is there a Collaboration API for this? Javamail is one option but are there any other options?
ThanksHi Siddhartha,
you can use the ChannelFactory of the KM API.
The code would look somehow like:
IChannel emailChannel = ChannelFactory.getChannel(ChannelFactory.EMAIL);
Then use one of the <i>IChannel.sendTo</i> methods, to send the email.
Another (more complex) way is to use the NotificatorService. The <i>NotificatorService</i> can take <i>INotification</i> objects, that will be processed by our XML/XSL Pipeline. The idea is to have a XML Template in the /etc/notification folder that is attached to a specific type of notification (e.g. Subscription), and which can be processed by a XSL (also in /etc/notification) to create a HTML/TEXT email. The is more complex but also more flexible to allow customers to simply change the notifications by editing the XML/XSL files.
In this case the <i>NotificatorService</i> takes care of sending the (processed HTML) mail.
Hope this gives some ideas....
Regards Dirk -
PRC Collab Java API - external op job?
I am looking into using the PRC Collab Java API (to add calendar tasks programmatically) and want to know if that could be called as an external operation. It would probably be possible if the latest version edk.jar with the Collaboration API was on the Automation Portal Server. We have Automation Portal 5.0.4 installed and it comes with an older version of the EDK.jar.
Any comments and recommendations on on the best method way to accomplish what I am trying to do, would be appreciated.
Thanks.
VanitaCollaboration Server API support is added to the EDK since v 5.1. It provides support for Collab Project, documents, tasks and disucssions. You can use methods in com.plumtree.remote.prc.collaboration.tasklist.ITaskListManager and ITaskList to create tasklists and tasks. However, if you want to manage Collab Calendar events, you cannot use PRC Collab API, since there is currently no Calendar support in the API.
-
External Operations: which API?
Hi all..
I have a console application that uses the Server API and I'd like to run it as an external operation. However, as I look into it, it appears that the job must run on the automation server... will the server API still work? I'm guessing not... seems to just hang when attempting a Reconnect().
OK, so maybe I can use the PRC... but what value do I use for the first argument in GetTokenContext()? the URI endpoint... ????
What's the best reference for writing external operations? Can't seem to find anything via plumtree.com searching... :(JesseYour post partially answered my question. I am looking into using the PRC Collab Java API (to add calendar tasks programmatically) and want to know if that could be called as an external operation. It would probably be possible if the latest version edk.jar with the Collaboration API was on the Automation Portal Server. We have Automation Portal 5.0.4 installed and it comes with ans older version of the EDK.jar.
Any comments and recommendations on on the best method way to accomplish what I am trying to do?
Thanks.
Vanita------- HP SupportTeamLux wrote on 8/18/04 4:20 AM -------
Hi Jesse,
I'm also doing a console application that uses the PRC and is called as an external operation.
For the URI endpoint, I specify a URL in the application.config file. It contains the URL to the Plumtree Web Services, usually like http://portalserver/ptapi/QueryInterfaceAPI.asmx. Forthe second parameter, the login token, I use what the external operation passes me as parameter (). Works nicely...
HTH, Fred -
Collaboration Administration Console Access Error
Hi,
I have installed and configured webcenter collaboration but I am getting below error when I am trying to access Administration Console for Collaboration. I tried two times and get the same error.
com/plumtree/core/db/DBManager
com.plumtree.collaboration.api.portalaccess.PortalAccessManager.getGuestPortals(PortalAccessManager.java:287)
com.plumtree.collaboration.api.portalaccess.PortalAccessManager.fillMap(PortalAccessManager.java:396)
com.plumtree.collaboration.api.portalaccess.PortalAccessManager.initialize(PortalAccessManager.java:323)
com.plumtree.collaboration.api.portalaccess.PortalAccessManager.<clinit>(PortalAccessManager.java:55)
com.plumtree.collaboration.context.CollaborationContextFactory.createCollaborationContext(CollaborationContextFactory.java:72)
com.plumtree.collaboration.webui.framework.action.CollaborationController.service(CollaborationController.java:90)
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:263)
org.apache.coyote.http11.Http11NioProcessor.process(Http11NioProcessor.java:887)
org.apache.coyote.http11.Http11NioProtocol412Http11ConnectionHandler.process(Http11NioProtocol.java:696)
org.apache.tomcat.util.net.NioEndpoint412SocketProcessor.run(NioEndpoint.java:2009)
java.util.concurrent.ThreadPoolExecutor412Worker.runTask(ThreadPoolExecutor.java:650)
java.util.concurrent.ThreadPoolExecutor412Worker.run(ThreadPoolExecutor.java:675)
java.lang.Thread.run(Thread.java:595)
also collaboration diaognostic URL giving me no details on the screen.
Does anyone have clue ?
- MukeshYou might want to check that you ran all of the database scripts for Collaboration. Some scripts must be run as the collabdbuser and the others must be run as portaldbuser. It might be possible that the portal can't access the Collaboration database or vice versa.
-
Hi,
Is it possible to automaticaly create several UME groups when I create a collaboration room (one group for each collaboration role), and automaticaly assign specific permissions on KM folder to these groups ?
I have read that it's possible to do this programmaticaly with EP 6 (https://www.sdn.sap.com/irj/sdn/thread?threadID=84969 ).
Is it still the case on EP 7 ? if so, do you have some useful information on how to do that ?
Thanks
LoïHi
You include the following jar files
bc.rf.framework_api.jar
coll.shared.extension_api.jar
coll.shared.types_api.jar
kmc.util.core_api.jar
kmc.util.core_core.jar
and also include sharing reference as mentioned in the collaboration API 6.0 document. -
How do i include a calendar portlet from groupspace in my portal
hi all
i have created a portal web project and create a portal,
the domain created for the portal is normal portal domain without the groupspace/collaboratio facets,
now i want to include a calendar portlet into my application where users of my portal can use that calendar to schedule their activities,
What do i need to do integrate calendar portlets into my portal?Biren,
If you want to use calendar portlet,your domain should support the groupspace Framework configuration.
Here is steps(WLP9.2):
(1)Create a domain which support portal and groupspace(Check the groupspace checkbox).
(2)In workshop:
Create a portal EAR project(Select Collaboration API and Collaboration portlets App from weblogic portal Collaboration facet)
Create a portal web project(Select Collaboration portlets Checkbox from weblogic portal Collaboration facet)
Create a data project(if required)
(3)Now open the merged projects view in the workshop.
(4)From the portal webb project copy the portlets folder.
(5)Now create a .portal file and keep the calendar portlet on the portal file.
You can use all the Collaboration portlets(Email,Tasklist,calendar,Address Book,Discussion).It needs same configuration for every one.
In weblogic portal 8.1.4 you need to manually run the SQL scripts and update web.xml/weblogic.xml but in 9.2 while creating the domain configuarion it does all the necessary task.
Thanks
Bishnu
Regards
Bishnu
Maybe you are looking for
-
Time delay while printing PO Report with "watermark"
Hi XMLP Gurus, I have to again resort to you guys for help. Hope I will find it. I have added a watermark to the PO Report RTF template and it is taking too much time (almost 3 mins) to print the output. With out a print option the report is running
-
Problem in resource loading from a JAR file
My application requires to read a data file using single read operation. The size of the file is 42K. The datafile is packaged inside the jar file with the class files. The piece of code I used is as follows: InputStream in = Mainclass.class.getResou
-
Cannot view images in Lighroom
When I import files the files are there but cannot see the images ? Have updated and re- installed any ideas
-
I have the latest software and operating systems (Aperture, and OSX 10.9.1), and just downloaded the RAW update that Apple said to download, only to have my installation quit because it's saying I do NOT have the right Aperture program (I have the la
-
Problems with stroke thickness
Hi, I'm having a problem with my stroke tool setting in Illustrator CS5. When I try to use 0.5 for the stroke thickness I get something literally 3 times the size of THIS . So, I was wondering what I could be doing wrong, because I know that it