Ajax with Portal 8.1

Has anyone implemented any AJAX functionality within Portal 8.1. If so, could you please provide some examples.
Kunal Mittal

Hi,
I have recently used AJAX in the portal environment. The following link provides you with an example for an Ajax implementation within a portal:
https://codesamples.projects.dev2dev.bea.com/servlets/Scarab/remcurreport/true/template/ViewIssue.vm/id/S188/nbrresults/185
Further I found some interesting examples on http://www.openrico.org
Hope that helps...
Cord

Similar Messages

  • Ajax with portal 8.1 sp5

    do we know we can use ajax with portal 8.1 sp5 , If so do let me know what all i need to make ajax works with our application
    Mathew

    I am using ajax in both sp3 and sp5. I haven't followed any standard framework. I have written a servlet to handle ajax requests more like
    http://www-128.ibm.com/developerworks/library/j-ajax1/
    to do this you need not add any extra library to portal.
    hope this helps..

  • AJAX with WebLogic

    Hi,
    I am currently implementing AJAX to our weblogic application. As you know, AJAX will simply call one of the Java method and the method should return some response back to AJAX. However, currently I am using DB Control and JPF so there is no servlet, EJB or etc.
    What should I use? Currently, I use PageFlow controller and each of the method in the PageFlow return null and it works fine :)
    Is this the correct way to do?
    * @jpf:action
    * @jpf:forward name="success" path="index.jsp"
    public Forward getParkingCode() throws Exception {
    HttpServletRequest req = this.getRequest();
    HttpServletResponse res = this.getResponse();
    String parkingName = "";
    if (req.getParameter("parkingName") != null) {
    parkingName = req.getParameter("parkingName").toString();
    StringBuffer response = new StringBuffer("");
    response.append(parkingName);
    // send to the AJAX back
    PrintWriter out = res.getWriter();
    res.setContentType("text/xml");
    res.setHeader("Cache-Control", "no-cache");
    if (response.toString().length() == 0) {
    res.setStatus(res.SC_NO_CONTENT);
    else {
    out.println(response.toString());
    out = null;
    response = null;
    return null;
    }

    I don't have an exact answer, yet, about what is happening when in a Portal. There is a dev2dev article about using AJAX in WLS 8.1 with Portal at http://dev2dev.bea.com/pub/a/2006/01/ajax-portal-1.html and http://dev2dev.bea.com/pub/a/2006/03/ajax-portal-2.html. That may explain why you are getting the whole page rather than just the XML that you want - I haven't had a chance to read it yet. In my brief skim, I did see some information in the second one about using a proxy servlet - I imagine that is the bit that you need.
    Sorry about the delay - there may be some details in http://forums.bea.com/bea/forum.jspa?forumID=2044 if you are interested in looking around a little.

  • Ajax with Peoplesoft

    Can any body worked on Ajax with peoplesoft. I just want to know how we will impliment Ajax with peoplesoft.

    Karthik T, start here: http://15daysofjquery.com/ and http://jquery.com. Then go here: http://www.google.com/search?q=peoplesoft+ajax. This will give you some background, but won't tell you how to implement Ajax in PeopleSoft. To implement Ajax with PeopleSoft, you need a good Ajax library. I suggest you download the jquery Ajax library and put it in a publicly accessible folder on your web server (...peoplesoft/applications/peoplesoft/PORTAL/scripts). Now, add the Ajax library to a PeopleSoft page. To do this, add an HTML area to a page. Double-click the HTML area to set the content to static with the following content:
    <script type="text/javascript" language="javascript" src="/scripts/nameofjqueryfile.js"></script>From your browser, load the page you just modified and ensure that it contains your jquery.js file. If you use Firefox with Firebug, then you will be able to click the net tab and ensure that your browser was able to find your jquery javascript file (no 404, etc).
    Before going further, you should test your Ajax installation. To do this, add an html file to your web server root named "ajaxtest.html" with the content:
    Hello World!<br/>
    Greetings from <b>Ajax!</b>This file should go in a directory on your webserver like .../peoplesoft/applications/peoplesoft/PORTAL.
    From App Designer, open the page that contains your HTML area and edit that HTML area (or add another HTML area to the end of the page). Make sure the type is set to static and add the following text:
    <script type="text/javascript" language="javascript">
    $(document).ready(function(){
      $("#ajaxcontent").load("/ajaxtest.html", null, function() {
        $("#ajaxcontent").fadeIn("fast");
    <script>
    <div id="ajaxcontent" style="display: none;">
    <!-- comment to keep PS from removing this empty div -->
    </div>Reload your customized page in your browser. If you see your HTML file's contents appear after the page loads, then you have Ajax working properly. Now the fun part... using Ajax to display PeopleSoft data. To load PeopleSoft data into a page using Ajax, point the load method at an IScript rather than a static HTML file. Go here to learn more about IScripts: http://www.google.com/search?q=peoplesoft+iscript. I have an IScript/WEBLIB tutorial on my blog as well: http://jjmpsj.blogspot.com/2008/02/what-is-iscript.html and http://jjmpsj.blogspot.com/2008/04/what-is-weblib.html. Start small by creating an IScript that contains %Response.WriteLine("Hello from an IScript"); and load that into your custom div.
    Once you have the basics of Ajax with PeopleSoft, take a look at http://extjs.com/. At this site, you will find JavaScript components that support Ajax. By combining these components with IScripts, you can create popup windows, sortable/editable tables, etc.

  • Oracle9iAS R2 - Virtual Hosts with Portal and SSO with OIDDAS application

    Hi!
    I have installed a the machine with name minsk.discover.local. The machine have installed Infrastructure and Portal. The instalation is sucessfull and i work fine. But i have publish Portal to WEB with name intranet.discover.com.br. The Oracle describe:
    1 - Create the virtual hosts in SSO and PORTAL - OK
    2 - run ptlasst to create SSO Partners Applications - OK
    After this steps iwork fine with Portal and SSO, but when i click in portlet to create user to access the application OIDDAS, the Portal redirect to login page of SSO in address mct.com.br, the internal name, when then name not responde in the internet.
    I need a help!!!!
    Marcio Mesti

    I just spoke to the Oracle App server admins, the two servers in question are clustered.
    So my question changes slightly to:
    What is the best way to install and configure a webgate for clustered Oracle App servers with mulitple virtual hosts, that are residing behind a load balancer (Traffic Manager)?
    Thanks,
    Andy

  • Open and close RFC connection with portals...

    Hi Experts,
    I created a RFC having a query which is taking a long time to execute. So i want to close RFC connection with portals which is via java connector(JCO)  before that query and open the connction again after that query.
    Please advice is it possible to achieve this. If yes, then how.
    Regards,
    Guddan

    Hi Guddan,
    I created a RFC having a query which is taking a long time to execute. So i want to close RFC connection with portals which is via java connector(JCO) before that query and open the connction again after that query.
    I guess i will need to understand your requirement a little more in detail, as i understand you have an RFC which has a query within to fetch some data and is taking a long time to do so. In the meantime you don't want to keep the connection open?
    My question would be, Is the role of this RFC to only execute the query and fetch the data or does it do something else?
    If it does other things and these are independent of the query execution, then you can span a parallel call within the RFC to execute the query and in the meantime the RFC does the other things (or vice versa) hence reducing the overall time taken.
    If the sole purpose of this RFC is to execute the query, then you will not be able(i mean to say there is no simple and direct way of doing this) to close the connection after the Query is started and re-establish the connection after its execution, for a simple reason that - how will you know if the query has completed it's execution, so that you can establish the connection back.
    Alternate solutions, make this a two way asynchronous call, 1) You invoke the RFC asynchronously and close the connection, the RFC in turn will execute the query and transfer the data to JCO via another RFC call.
    If this needs to be a synchronous call, then you will need to optimize the query to its best.
    Regards,
    Chen

  • What's the right way to start up with Portal's dev?

    Hi to all Portals experts,
    I am really struggling to start up learning Portals and more specific their development.Here is the problem - I am a bit new in the NetWeaver  but not new in J2EE environment. I went trough all WebDynpro tutorials and really the documentation was written nice.Good hands-on approach with lots of examples and that is what I found with WebDynpro - everything well explained step by step.
    But when I started the Portal’s Tutorials I was  a bit disappointed.
    1.First of all, there is no explanation which tools one needs to start up with Portal Dev?
    I only have  SAP Netweaver Development Studio SP15 installed on my PC and I don’t have any access to R/3, CRM or other system. Is this enough to at least start to learn Portal Development or not?
    2. I realize well that at some point I will need real system to play with but , until than what useful practice I can do on my own and how?
    - Even within the WebDynpro tutorial , the very first Part :’ Define a system’ - (http://help.sap.com/saphelp_nw04/helpdata/en/cb/f4bc3d42f46c33e10000000a11405a/frameset.htm) -‘In the portal, navigate to System Administration - System Configuration - System Landscape’
    Which Portal ? I don’t have System Administration on my NWDS SP15?Is is something I should install?unclear?
    3. My understanding is that NWDS SP15 contains EP , within its J2EE local engine , but is this EP.6.0, is this enough to develop complete Portal Application A-Z or not - unclear ?
    4.  PDK. Somewhere I read that Portal Application can be developed with either WebDynpro or with PDK. I’ve read about PDK but It is not clear if  it is Dev Kit as its name says , should it be downloaded , installed or imported into NWDS, again? And bottom line do I need PDK as a  Portal Developer, and at which point?
    I only need the starting point for Portal Develop. or some guide that should set milestones 1st ,2nd .. I would prefer the hands-on approach. If some of you  has already taken this path and can help me with your directions, links, at least how to get started, I will highly appreciate it! Thanks in advance!Regards, Bob

    Hi Bob,
    The below reply is as per my experience with Development so far:
    1> It is not necessary to have access to R/3 or any other SAP/non SAP application unless you are writing an application in connection to them.
    Example: An application which is reading data from R/3 and displaying the same in a table. Yes, in this scenario you would require access to R/3.
    2> System Administration is a role just like Home, User Administration, etc in Portal itself.
    It contains all the configuration related to System Landscape, Knowledge Menegement, etc
    If in case you have not been given this role, you may ask your System Administrator to create the required system (PCD Object). You may then use this system from your Profile (Personalize Portal) link directly.
    3> NWDS resides over Portal so you may create your own standalone application or application thats talking to the underlying Portal.
    WebDynpro is used to create UI & likewise you may build Web applications or EJB applications.
    4> PDK stands for Portal Development Kit. YUou may ask your administrator to download and assign the same to you. This would appear as a "Java Developer" named role in your portal. It contains all APIs required for Java development.
    If you do nto have this, you may still use the Javadocs provided on SDN itself.
    Depending what custom developmetn you do, depending upon the type the .par (portal archieve), .ear (Enterprise archieve), .war (web archieve) needs to be deployed in portal, so that users may access/view the custom created data.
    Hope this helps
    All the best!
    Warm Regards,
    Ritu

  • How  to integrate File Server with Portal??

    Hi all,
    can any one tell me that how interegate the File Server With Portal Server??
    In my portal server under home tab i have sub tab (second level navigation) of File server.Whe i click this tab it throws an syntax error
    ie
    System Error
    An exception occurred during the program execution. Below you will find technical information pertaining to this exception that you might want to forward to your system administrator.
    Exception Class  :: class com.sapportals.wcm.repository.NotSupportedException
    Exception Message  :: Not Implemented
    thease are the steps that i have taken
    >created HTTP System..
    >created WebDAV Repository.
    >Created Cache.
    >Created KM WebDAV System.
    >Created Iview and in iview i have to specify the <b>Path to Initially Displayed Folder</b>
    i have specified the folder of file server that i want to display..
    but i get the same syntax error ..
    infact i dint get that folder in KM.
    But when i specify the folder that is present in KM its Work fine..
    Now the Scnerio According to me is that File server is not integrated properly
    if it would be integrated properly i would be able to see the folder of File server in  KM...
    am i correct ??
    please Guide me to integrated the File Server Properly??
    Points will be given for any help..
    Regards
    Vinit

    Hi Vinit,
    if you want some Windows File Server integrated into Portal, please do not use a WebDAV Repository, but use the File System Repository instead. Therefore you need to configure the according Repository Manager. Please refer to this documentation:
    <a href="http://help.sap.com/saphelp_nw70/helpdata/en/ed/b334ea02a2704388d1d2fc3e4298ad/frameset.htm">Integrating Documents from a Windows System into KM</a>
    HTH,
    Carsten

  • How to deal with Portal, Workshop, and non-BEA software?

    Hi,
    I'm really new to working with portal, and have looking into integrating a single sign-on software (RSA ClearTrust) into existing portal code.
    The ClearTrust installation involves installation of a bunch of software that integrates with the portal software, but I found that if the portal code was developed with Workshop, that if Workshop is run again after the ClearTrust integration has been done, that Workshop appears to overwrite some of the XML configuration files (e.g., web.xml).
    The result of this is that the WebLogic server won't start.
    So, I was wondering if anyone here has had to deal with this kind of situation, not necessarily with ClearTrust specifically, but maybe with other products?
    I'm not looking forward to re-doing the integration everytime someone makes some portal code changes :(...
    Thanks in advance,
    Jim

    There are really two types of Graphic Styles - Object level styles and Group level styles. There is no way to tell which style is which. So if you have an Object level Style and try to apply it to a group of objects or often a compound shape, you get each individual object having the style. If you have a Group level style and try to apply it to only an object, you often get nothing applied.
    It perhaps sounds like you have an Object level style and are trying to apply it to a group.
    There's no way to convert an Object level style to a Group level style or vice versa. The best (and pretty much only) way I've found to get around this is to apply the style to teh correct level then make a note of all the style settings, select the other level and recreate the style for that level.
    Whether or not a style applies correctly has a great deal to do with specific aspects of the style in addition to what level the style was generated from. This is a frustrating aspect of Graphic Styles.

  • Issues with portal integration of Web dynpro for ABAP application

    Hi,
    I have the following issues when i integrate a Web Dynpro for ABAP application with portal.
    1. the iview does not contain some images, such as table scroll button images, maximize and close buttons of popups etc.
    2. the iview loads properly, but there is an error in the status bar that says "Access denied"
    3. is it possible to do absolute navigation from
       role1->folder1->iview1 to role1->folder2->iview2?
       when i fire this navigation from the webdynpro
       application, the navigation does not happen in the
       portal.
    thanks,
    Kavitha

    >
    sridhar vadaga wrote:
    > Hi Experts,
    >
    >
    > CALL FUNCTION 'SCMS_STRING_TO_XSTRING'
    >   EXPORTING
    >     text           = url
    >  IMPORTING
    >    BUFFER         = content .
    >
    >
    > Thanks & Regards
    > Sridhar
    I think you are overestimating the power of the SCM_STRING_TO_XSTRING function module.  By supplying a URL as the value of the input text, it isn't going to magically go read the content from the remote location and convert that to a binary string.  It is going to take whatever value you supply in th importing TEXT parameter convert that to binary.  In other words it is literally converting the string http://xxx/test.xls to binary.  You will need some other mechanism to read the content from the remote location into ABAP memory before you can process it.  You will need to use the CL_HTTP_CLIENT class or call some sort of web service to retrive the content.

  • HTTPS with portal only for logon ?

    Hey,
    Is it possible to have the portal logon procedure secured by HTTPS but to have all further data transfers with portal done on the HTTP protocol ?
    So - i see a HTTPS page to log on, but after logon (exactly after a SAP Logon Ticket has been sent to user) i get switched to HTTP.
    Can i do it ? If yes, how ?

    Basically, I want to switch after the SAPLogonTicket is assigned back to HTTP, because I only need to secure the exchange of the User/Password. After that, I don´t want to waste performance for securing not so interessting portal pages.
    So, do you know how to achieve this?
    Tobias

  • Calendar Integration with Portal Server 6.0

    Hi,
    I have installed Calender Server 5.1.1 with portal server6.0..When click the Launch Calendar channel link in my portal page,it takes me to login page for Calendar Server on.I expected it to take me to the calendar page .I donot want to re-authenticate every time i launch a calendar.Any ideas??
    Thanks,
    Ramnath

    Quickest path to success...
    stop the cal server
    cd to Install Path/cal/bin/config
    edit ics.conf
    change "service.htttp.ipsecurity" from yes to no
    save you changes
    restart the server
    hope this helps

  • Integrate Sun ONE Messaging and Sun ONE Calendar server with Portal 6.0

    We need to integrate (implement a Single Sign On solution) Sun ONE/iPlanet Messaging and Calendar servers with Portal 6.0. The Msg and Cal. servers do not use Portal Profile server as their DS and have a different DS.This directory server is the external DS for Portal. After users login to Portal, they should be able to access Msg and Cal. servers without login to them again.
    1. How do we do this without writing a java code/servlet ?
    2. Is there any way that we could configure DSAME to create the URL,add userID and password to it and forward that URL to above servers ?

    Hi,
    The SunOne communication providers for version 6.0 will be released soon.
    (you can get beta versions from early access program)
    Like in the portal version 3.0 these channels
    are enabling SSO for messaging and calendar servers.
    (I tested them with iMSG5.2 and Calendar5.1.1)
    Cheers,
    Alex :-)

  • Integrating weblogic server with portal

    Hi  Friends,
    Can any one tell me the procedure how to Integrate application server like weblogic with portal.
    Thanks

    Hi Venigalla,
    FPN is the solution!
    Setting up a federated portal network is comparable to connecting your portal to a u201Cnormalu201D backend system. The steps of configuring a FPN in a nutshell are:
    -->Setting proxy settings
    -->Creating trust / single sign-on between portals in the federation
    -->Creating a producer system on the consumer portal
    Depending on your overall portal landscape the complexity of configuration steps might vary.
    Kindly go through the guides (PDF documents) in the links below:
    1. How to set up Landscape for Federated Portal Network:
    Content Sharing in SAP NetWeaver Portal
    2. SAP NetWeaver Portal WSRP Support:
    Content Sharing in SAP NetWeaver Portal
    3. Activities for Implementing Federated Portal Network - Step by Step (Blog):
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/70191d1e-2bd1-2a10-d9b7-ba19500da527
    4. SDN page on WSRP Application Sharing:
    /docs/DOC-8384#section6
    5. SDN page on Configuring a Federated Portal Network:
    Configuring a Federated Portal Network
    These links provide all information on FPN.
    Hope it helps you.
    Regards,
    Anagha

  • AJAX with tabular form

    Hi,
    Can anyone help me ..
    I need to implement the AJAX with select list in a tabular form but I am not able do it . It is possible to do it in a normal form , but while implementing the same thing in a tabular form i am getting error (here it uses 2 dimensional arrays to identify a cell).
    The problem is I am not able to get the value from the select list .
    Can anyone help me..
    My application is "http://apex.oracle.com/pls/otn/f?p=23480:6" . The thing I need is when I select the 'Product name' corresponding 'List price need to be displayed.
    Thanks

    Hi Carl,
    Sorry for that..
    I requirement is in my application (http://apex.oracle.com/pls/otn/f?p=23480:6) , When I select the 'Product Name' from the select list the value should be populated automatically in the 'List Price' according to the product name.
    Hope the reqirement is clear ,
    My javascript is as follows
    ==============================================
    <script language="JavaScript1.1" type="text/javascript">
    var g_table;
    function va_GetCellPos(p_cell,p_what)
    for (var j=0;j<g_table.rows.length;j++) {
    var column=g_table.rows[j]
    for (var k=0;k<column.cells.length;k++)
    if (column.cells[k]==p_cell) return p_what=="row"?j:k
    function f_getfetch (p_input)
    var td=html_CascadeUpTill(p_input,'TD');
    if (!g_table) g_table=html_CascadeUpTill(p_input,'TABLE');
    var rownum=va_GetCellPos(td,"row");
    var get = new htmldb_Get(null,html_GetElement('pFlowId').value,'APPLICATION_PROCESS=getfetch',0);
    get.add('PRODUCT_NAME',g_table.rows[rownum].cells[va_GetCellPos(html_GetElement('PRODUCT_NAME'),"column")].getElementsByTagName('input')[0].value);
    gReturn = get.get();
    if(gReturn)
    {   g_table.rows[rownum].cells[va_GetCellPos(html_GetElement('LIST_PRICE'),"column")].innerHTML = gReturn }
    else
    {  g_table.rows[rownum].cells[va_GetCellPos(html_GetElement('LIST_PRICE'),"column")].innerHTML = 'null' }
    get = null;
    </script>
    ===============================================
    Here I am not able to get the value from the select list , its taking null (g_table.rows[rownum].cells[va_GetCellPos(html_GetElement('PRODUCT_NAME'),"column")].getElementsByTagName('input')[0].value) )
    If u need to have a look into the application ,I can give you my login details.
    with regards,
    Dilip.

Maybe you are looking for