Skip to main content

Posts

Showing posts from September, 2009

Show the user data of every response for the current Quick Poll in the campaign in a Flex Client, 3rd part

In this part, only we will focus in Flex client, also there are others parts, such as J2EE components, but here we don't consider here because they are out of scope of this blog. It includes to consider the following parts: Create J2EE Web Proyect, it will contain the flex client created with Flex Builder or Flash Develop IDE . Create EJB Project , it references to the java project created in the 2nd part of this blog. Here, you'll need to create a stateless session bean, and after to expose some method as Web Service. The NWDS has a wizard to do this taskes. Also, you could create a Web Services directly of the Java project by making use of the NWDS wizards. Create Flex Builder Project or FlashDevelop IDE, you create a flex client to consume the previuosly web services. Create Enterprise Project; finally we will add the web and ejb project modules, previously created, to this kind project for deployment our ear file on SAP Netweaver AS 7.0+. Now, you will review the MXM

Show the user data of every response for the current Quick Poll in the campaign in a Flex Client, 2nd part

Only we'll review the main part of the method "getVotesPerCampaingResponse(Map map)" in the SearchService class. Before to begin we need to consider the following items: com.sapportals.wcm.control.quickpoll.extension.QPResourceManager. com.sapportals.wcm.repository.IResourceContext. com.sap.security.api.IUser. In this operation we must take into account that the quick polls will be processed in according to the quick poll state: current and historical. Therefore, first we need to process the current quick poll and after to process the historical rapid quick polls of the requested campaign. The main class is " QPResourceManager ", internally it works with the com.sapportals.wcm.control.quickpoll.extension.QPBaseService class. For to get one instance of the QPResourceManager class, previously we need to get an instance of the com.sapportals.portal.security.usermanagement.IUser class, it'll reference to the portal service user " cmadmin_service "

Show the user data of every response for the current Quick Poll in the campaign in a Flex Client, 1st part

In this first part, we will learn the basic about the SAP portal KM library km.appl.ui.quickpoll_api.jar and its configuration for our development environment. The application that we are going to create will have: input: the name of campaign to review. output: every user vote of the current quick poll with detail information of the user. As the figure 2. Before to begin we must take in account that the following things: The repository path for the quick poll is "/document/QuickPoll". The name of the Quick Poll resource is qp.xml. It is for the current quick poll of the campaign. For the previous and closed quick poll they are located in the history directory of the campaign. The namespace of the quick poll service is " http://sapportals.com/xmlns/cm:service.quickpoll.QPService ". The name of the portal service for quick poll is "AppPropertiesRepositoryService". The name of the property is "quickpollvote" ( link ). This is the most important