Portal component development-personlization

hi,
can anyone tell syntax of date ?
i  wrote some code.But  it give run time error.
in java file :
profile.getProperty("date");
profile.getPropertyAttribute("date","type");
response.write(profile.getProperty("date"));
in xml file :
   <property name="date" value="">
         <property name="personalization" value="dialog"/>
        <property name ="type" value="Date"/>
           </property>
after wrote that code it give :
  Portal Runtime Error
An exception occurred while processing a request for :
iView : com.sap.portal.appdesigner.framework.profile
Component Name : com.sap.portal.appdesigner.framework.profile
For input string: "".
Exception id: 07:46_09/01/08_0794_2739150
See the details for the exception ID in the log file

Hi Khushboo,
The "formal" way to extract data from R/3 is by calling BAPI functions. this is not wise to access R/3 tables directly, since consistent data saved on more then one table.
Therefore you should only use JCo or JCA to retrieve Data from a backend system via BAPIs or your own RFC enabled Function Modules.
Regards,

Similar Messages

  • XML toolkit or XERCES + XALAN in portal component Please HELP

    Hello,
    is there anybody that has succesfully used xalan and xerces in a portal component?
    I have an application that requires them but have found no way to have them working in the restricted classloader area of portal component developed in java.
    Best case my portal component still uses xml toolkit, worst case, when I try to add them as j2ee or irj libraries, portal does not even boot.
    Help needed !
    Thanks in advance
    Vitaliano Trecca

    Victor, Xavier is right.
    I have already tried that but does not work. Classloader still finds SAP XML Toolkit factory. I also tried forcing System properties but things go even worst: it affects portal behaviour.
    The only working way seems to be to load the parser implementation directly instead from the default factory but this is far from being a clean way.
    Any suggestion to ensure my PDK will see Default factories from xerces and xalan and keep off from XMLToolkit?
    Regards!
    Vitaliano

  • Development Tool for Portal Component

    Hi all,
    I am preparing the environment required to develop SAP NetWeaver Portal Component. I've downloaded SAP NetWeaver Developer Studio 7.2, however, I can't create a Portal Application as has been instructed in the SAP documentation. There's is no option as "Portal Application" in the new project creation wizard.
    Any help is appreciated.
    Thanks.

    Hi,
    there are many tools for monitoring different stuff on portal in different ways, but as you said you are new i would suggest you to go with manual stuff so that more things can be viewed.
    please check below links for more details:
    http://help.sap.com/saphelp_nwce10/helpdata/en/2e/30e93adccb444b871f3d4e7f905b84/content.htm
    http://help.sap.com/saphelp_nw2004s/helpdata/en/7b/86eb3f0c49f106e10000000a1550b0/frameset.htm
    http://help.sap.com/saphelp_nw70/helpdata/en/5a/84b83b3683094be10000000a11402f/content.htm
    /people/daniel.wroblewski/blog/2007/01/02/mysteries-of-the-portal-activity-report
    /people/daniel.wroblewski/blog/2007/01/17/mysteries-of-the-portal-activity-report-ii
    /people/daniel.wroblewski/blog/2007/01/23/mysteries-of-the-portal-activity-report-iii
    Regards,
    Pavan
    Edited by: Pavan Kumar on Jul 22, 2009 12:38 PM

  • Event Handling in Abstract Portal Component

    Hi Friends,
    I am using HTMLB Classlib in an Abstract Portal Component to develop a Dropdownlistbox. Now I want to handle the event of change of selection in this dropdown. However, this event is not getting captured. Sample code is as follows:
    public class dropdownsimple extends AbstractPortalComponent
                           public void onClick(Event event)
                           public void doContent(IPortalComponentRequest request, IPortalComponentResponse response)
                                                    IPageContext myContext1 = PageContextFactory.createPageContext(request, response);
              Form myForm = myContext1.createFormDocument("CRMForm");
              GridLayout myGrid = new GridLayout();
              DropdownListBox drp = new DropdownListBox("drp");
              drp.addItem("Key 1","Item 1");
              drp.addItem("Key 2","Item 2");
              drp.setOnSelect("onClick");
                                                     myGrid.addComponent(1, 1, drp);
              myForm.addComponent(myGrid);
              myContext1.render();
    I am able to see the dropdown box along with values when I preview the PAR iView created from this component. Please let me know how to capture the event of change of selection in the dropdown?
    Edited by: Shetul Chothani on Jun 21, 2011 6:37 AM

    Hi,
    Change this line
    drp.setOnSelect("onClick");
    to
    drp.setOnSelect("click");
    and leave the line
    public void onClick(Event event)
    as it is, and it should work just fine.
    I.e., if you name your event "fooBar", the event handler should be named "onFooBar"
    Cheers,
    Robin

  • Difference between Abstract portal Component and JSPDyn page.

    Hi Experts,
    What is the difference between Abstract portal Component and JSPDyn page.
    Thanks,
    Jay.

    Hi,
    The PDK provides two methods for creating a portal component:
    Abstract Portal Component
    The Abstract Portal Component class offers a lean method for writing HTML commands to the Web client as well as for basic event handling. It is an implementation of the IPortalComponent, which is the central abstraction of the Portal Component API.
    DynPage
    The Page Processor Component, which extends the Abstract Portal Component, returns a DynPage. It provides more sophisticated event handling. Controls that produce events (such as buttons and checkboxes) have an event attribute that contains the name of the event handling method. This event handling method is invoked by the DynPage when it occurs.
    The JSPDynPage is an implementation of the DynPage and allows the use of the DynPage in combination with JSP (Java Server Pages).
    The PDK documentation and examples focus on the DynPage. Easier event handling and the separatation of content development (JSP) from application development (Java) make the DynPage a better choice for components with interaction and changing content.
    For more details, Refer thes thread,
    https://fortress.wa.gov/dop/portal/irj/portalapps/com.sap.portal.pdk.basic.portalcomponentimplementation/docs/jspdynpage.html
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/f0b3e9d5-b2af-2a10-20ba-9f6ce6b1a27f
    Hop it helps..
    GS
    Edited by: Sathishkumar GS on Apr 14, 2008 2:07 PM

  • Creating iViews Based on Remote Portal Component iViews

    Hi,
         Does anybody know if Portal 7.0 EHP 2 supports creating a local iview for a remote transactional iview? I saw this SAP Help link, but it is not really clear on Transactional iviews.
    http://help.sap.com/saphelp_nw70ehp2/helpdata/en/f7/34fe8694c84512a2c62cc6d145736e/frameset.htm
    Thanks
    Sathish

    Hi Prasanna,
    this needs some clarifying concerning wordings:
    1.) An iView is an "instance" of a portal component. Within the Portal, you have deployed different applications, each app consists of one ore more components (and/or services, but services are faceless).
    2.) The "traditional" way to implement such a component is to do it directly via HTMLB, JSPDynPages etc. Deploy this app within the portal and then you can create an iView build directly on this component.
    3.) Alternatively, you have components at hand, which import other applications / or web stuff. The most simple for example is an URL-iView. This is an iView using a component which just retrieves the content from some URL given. A more complex example is the ApplicationIntegrator, which does the same plus passing login params etc.
    4.) One possibility is to integrate WebDynpro-Applications via a specific WebDynpro iView. The combination of this has the added value that from WebDynpro Applications you are able to use the Portal Services, so you have a far more tight integration.
    5.) With all this at hand, the rest should be self declaring: Yes, you can develop "normal" J2EE-Apps, based on "good old JSP/Servlet + EJB" technology and integrate it via URL/AppIntegrator iViews. But you can also use WebDynpro for your frontend and EJB's for your backend with the advantage of tighter integration.
    Hope it helps
    Detlev

  • Urgent Please help me... How to access BAPIs from abstract portal component

    I am developing an application in Abstract Portal Component (in
    PDK).
    In that application I can able to acess BAPIs from my Componets
    using the code like
    inputPopSearchBapi = new Zad_Bapi_Pop_Search_Form_Input();
    outputPopSearchBapi = new Zad_Bapi_Pop_Search_Form_Output();
    popSearchBapi = new DropBox_PortType();
    colorList = new Tjj12Type_List();
    inputPopSearchBapi.setIm_Agencyid("0010000001");
    try {
    jcoClient.connect();
    outputPopSearchBapi =
    popSearchBapi.zad_Bapi_Pop_Search_Form(inputPopSearchBapi);
    colorList = outputPopSearchBapi.get_as_listIt_Color();
    request.getComponentContext().putValue("color",colorList.iterat
    or());
    jcoClient.disconnect();
    But I am not able to Access the data that is comming from the
    BAPI in my JSP Page. Pleeeeeeease help me. If you want any
    clarification about my problem then ask for further
    clarifications

    Hi,
      You can refer this link, to connecting the BAPI from Abstract Portal Component <a href="http://www.huihoo.org/openweb/jco_api/com/sap/mw/jco/JCO.html">JCo Tutorial1</a>
    <a href="http://www.apentia-forum.de/viewtopic.php?t=1962&sid=9ac1506bdb153c14edaf891300bfde25">JCo Tutorial2</a>
    With Regards,
    Venkatesh. K
    /* Points are Welcome */

  • Using JDO in a portal component.

    Hi!
    I've tried using JDO in a portal component (DynPage), but it just won't work for me (WAS 6.40).
    What I've tried is this:
    - Looking up a PersistenceManagerFactory using the name "java:comp/env/jdo/defaultPMF"
    This does not work ... I get a NameNotFoundException: Path to object does not exist at java:comp, the whole lookup name is java:comp/env/jdo/defaultPMF
    - After reading this forum I tried with the name "deployedAdapters/jdo/defaultPMF/shareable/jdo/defaultPMF" although this is probably not the correct way
    This did return a PersistenceManagerFactory object, however I wasn't able to cast to the PersistenceManagerFactory interface that I had. It must have been different versions of the interface - I tried downloading the jdo.jar from Sun and compiling the portal component against that, but still the ClassCastException occured. I used the reflection API to determine that the object returned did in fact implement the interface named javax.jdo.PersistenceManagerFactory. I even tried using the jdo.jar libraries from the server, but to no luck.
    So ... my question is: Is JDO not available from a portal component? Must I develop a J2EE application to make it work? If so, I'd rather use Hibernate in my portal components, but it seems stupid when JDO is available?
    Thanks,
    Thomas

    Hi Thomas,
    In order to be able to use JDO in a Portal component, you have to add a Private Sharing Reference to the application sap.com/com.sap.jdo. This is a standard application provided with the SAP WebAS Java installation.
    For more info on how to do that, please refer to <a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/ep/g-i/how%20to%20access%20an%20ejb%20from%20a%20portal%20component.mht">this</a> tutorial -> Accessing the EJB -> New Portal Component -> scroll to the section "Add PrivateSharingReference".
    Hope that helps!
    Vladimir

  • Calling and executing a function module in the Portal iview development

    Hello Portal development gurus...
        I am very new to portal iview development and am learning a lot of stuff.. I now have a requirement to do the following:
      1. I need to use the NWDS to create java code in developing an iview
      2. I need to call and execute a function module and display the parameters pulled in from the function module onto a Jsp.
    3. I need to create an iview based on this deployed component.
    Could anybody please explain me how to do the coding on this front?
    I appreciate if anybody can share documentation about this kind of a development.
    As always, points galore for useful and helpful suggestions.
    Regards,
    ~~~LB

    Hi,
    Firstly Have you searched in SDN for the same, anyhow please go through the link to work on the requirement
    [/docs/DOC-8061#15|/docs/DOC-8061#15]
    Go through the thread which will talk in detail
    [https://forums.sdn.sap.com/click.jspa?searchID=19551584&messageID=6348955|https://forums.sdn.sap.com/click.jspa?searchID=19551584&messageID=6348955]
    Hope this helps.
    Cheers-
    Pramod

  • Abstract Portal component - KM Html

    Hi,
    We are developing an external facing portal wherein the Home page has 6 components. In that 5 components are static components which refer to the HTML file in the KM repository. For that I have made KM document iview and given the path of the HTML file.
    But as it is an internet page and as its loading time should be less, we planned to make each component as an abstract portal component which refers the HTML file in the KM and displays the same.
    Can somebody tell me as to go about it?
    Thanks & Regards,
    Ganesh N

    solved

  • How to use UI elements in abstract portal component

    hi all
    i am new to portal development..i want to use different UI elements such as textbox,buttons using abstract portal component.can anyone telme how to use them.

    Yes Asusha
    You can use JSP , JSPDyn pages in Abstract portal component.
    You can call a Jsp file from the abstract portal component.
        public void doContent(IPortalComponentRequest request, IPortalComponentResponse response)
         com.sapportals.portal.prt.resource.IResource somePage =          
                   request.getResource("jsp", "pagelet/test.jsp");
                   response.include(request, somePage);
    Then you can made your desired UI in JSP.
    Hope this helps..
    Cheers
    Chinmaya
    Reward for helpful answers

  • Redirecting to external website from abstract portal component?

    Hi,
    I have developed an abstract portal component and trying to be redirected to an external website ex : www.google.com
    here is the code...
    public void doContent(IPortalComponentRequest request, IPortalComponentResponse response)
    HttpServletRequest req = request.getServletRequest();
    String queryString = req.getQueryString();
    String redirectURL = queryString.substring(queryString.indexOf("=")+1);
    HttpServletResponse resp = request.getServletResponse(true);
    resp.sendRedirect(redirectURL);
    OR
    RequestDispatcher rd = req.getRequestDispatcher("www.google.com");
    rd.forward(req, resp);
    But couldn't able to redirect in either ways ..
    exception was ... iView not found: www.google.com.
    Any help?
    Thanks
    MMK

    Hi Mohan,
    When you do a redirect you need to provide a URL. From javadocs
    Sends a temporary redirect response to the client using the specified redirect location URL. This method can accept relative URLs; the servlet container will convert the relative URL to an absolute URL before sending the response to the client.
    Thus when you provide just "www.google.com" the converted complete URL will be something like http://portalserver/irj....www.google.com whcih of course does not exist as a portal component. Thus you get the error iview not found.
    Hence you need to give a full URL and not a relative URL.
    Akhilesh

  • Call jspdynpage or Abstract Portal Component from SAPUI5

    Hi,
    I am new to SAPUI5, so might ask basic and dumb questions.
    I am trying to develop an application in sapui5 which should have the functionality to read and write a file to the server. It is different from file upload as the user wont be selecting any file, rather the data in the form should be written to a file in the server on a click of a button. After doing some research I figured out that sapui5 doesn't give an option to read/write a file to the server.
    So, as an alternative I thought of developing a service, an SAP portal application (jspdynpage, WDJ, abstract portal component - or if you can suggest any other app) that can be called from the sapui5 for reading/writing purpose. The data can be received/sent as an xml, and in the sapui5 application I can parse the data and do the needful.
    Now my question is how to call the portal application (that would be a url) without redirecting, and pass the necessary parameter? Sapui5 should just call that url and data should be passed or received as a parameter. I am not sure if OData model call will work, as I am getting an exception. Can you please provide a solution to this?
    Ps: We are on SAP EP 7.3 and would like to stick to SAP apps, and no additional database etc.
    Regards,
    Piyush.

    Hi All,
    I found a way to do that. I created an Abstract Portal Component application that accepts data through url parameters. Used the regular java APIs to read/write files to the server.
    Now the challenge, at least to me, was to call this application from SAPUI5 application. I used ajax call.
    var response = $.ajax ({
         url: "<url>",
         type: "POST"
    Next, will also try to find if I could use any of the models provided by SAPUI5 to call the portal application.
    Note: Make sure both your sapui5 app and the portal application is deployed on the same server, else it wont be able to authenticate (SSO wont work) and you may receive exceptions.
    Regards,
    Piyush.

  • Difference between abstract portal component ,dynpages and jsp dynpage

    Hi All,
    I am new to the SAP world.Can you help me out in finding the difference between abstract portal component ,dynpages and jsp dynpage in Portal development.Please send me  any information.

    Hi,
    Welcome to SDN Community
    This blog will brief you the differences between them,
    Java development methodologies (Part II)
    Regards
    Srinivasan T

  • Refreshing a Abstract Portal Component in Specific Intervals

    Hi All,
    I have developed an Abstract Portal Component which reads Data from an XML File which is stored in KM.
    Requirement :
    I need to REFRESH this iView for every 5 Minutes-Automatically (Just like Websites showing Live Cricket Scores), to read the Updated Data from that XML File. The XML File will be updated every 5 mins.
    If anybody has Idea on this, Please Guide me..
    Thanks in Advance.
    Regards||
    Ashok Kumar M.

    Here are the instructions for Client-Pull method using meta tag
      1. Use META in the HEAD section of your document.
       2. Write HTTP-EQUIV and CONTENT in META to accomplish client-pull.
    Examples
    To reload the document itself:
    HEAD
    META HTTP-EQUIV=REFRESH CONTENT=5
    HEAD
    CONTENT=5 means wait for 5 seconds to reload the page.
    To load visitors to another page:
    CONTENT=5 means wait for 5 seconds to reload the page.
    To load visitors to another page:
    HEAD
    META HTTP-EQUIV=REFRESH CONTENT="5;URL=http://mbiz.co.th/tips_tricks/"
    HEAD
    URL=...... This is the URL of the page you want to load a visitor to.
    using java script window location you can refresh the page
    like window location equals your location
    and call the method which contains window location in body onload
    Edited by: Supraja Koganti on Nov 17, 2008 10:08 AM

Maybe you are looking for

  • Question regarding Authorizations in SAP CRM 7.0

    Hello, The problem is this: We have a client who will use two ways of accessing SAP CRM 7.0 data - 1. CRM Web UI 2. Mobile devices via standard SAP CRM BAPIs Now the situation is that the client wishes to control display authorizations based on the B

  • To search the app

    Hi, If I see that there's one statement in the java class like import org.apache.myfaces.trinidad.component.core.input.CoreInputFile; How can I search the whole app for the place at which the object "CoreInputFile" has been created? Best Regards

  • ITunes update will not install because of Bonjour

    I am trying to update iTunes 9.2 but it tells me it cannot install because older version of Bonjour cannot be deleted, How do I fix this?

  • Internal data error when uploading images

    I have had no problem uploading files and images. Now, I can upload files, but when I try to upload an image I get FTP error - internal data error. I also connected directly to my server and tried to transfer images, but that didn't work either. Does

  • Wildcard charcters in strings

    I need to write a program to search a bunch of strings from user input, which can include the wildcard characters '?' and '*' '?' matches a single character, and '*' matches zero or more characters. For eg, "bi?" returns "big", "bin", etc. And "ant*"