Client Eventing Problem with URL Iview

Hi,
I am new to EP and have a basic client eventing question. We are trying to integrate a URL Iview from a partner product with a standard Iview downloaded from Iviewstudio. This standard Iview is capable of handling client events from other Iviews in the standard package. We want to re-use this Iview with the same event (same functionality) to be able to handle events from the partner URL Iview.
The partner Iview and our portal are on different servers.
We are using the following Javascript but it doesnt seem to raise the event.
EPCM.storeClientData('urn:com.sap.bor:BUS0010','objid',LocId));
EPCM.storeClientData('urn:com.sap.bor:BUS0010','AllKeys','objid');
EPCM.raiseEvent('urn:com.sap.bor:BUS0010','select','','/irj/servlet/prt/portal/prtroot/...'
We were able to debug and find that the data was being stored in the Data Bag. However the event is not being raised at all. It seems that it just gets stuck somewhere in the Raise event. We even put a javascript alert after the raise event but it doesnt seem to reach there at all.
Could you give me a few pointers as to what the problem might be.
Thanks in advance.
Message was edited by: Mayank Bhatnagar

Hi,
let's have a look at two quotes of the PDK documentation.
"Using the EPCF from your JavaScript, you can send messages to JavaScript code embedded in other iViews."
"Isolated iViews are iViews that are not inlined into a portal page, but referenced using an IFRAME. To make the EPCF available in such iViews, the EPCF JavaScript as well as the EPCF applet are included into each generated frame."
From my point of view, this only can work automatically with content provided by the portal.
Therefore, this can't work with isolated URL iViews  generated with the wizards. Imagine a google iView, running in an iFrame. Google is called by the portal, but it's simply standard google HTML output - displayed in the portal.
To provide the capability of the EPCF, the epcf javascript file has to be included in the "partner URL iView"'s source. I tried this and it worked. However, this is not a highly sophisticated solution
If the partner iView's server is running in a different domain, there are further issues to be considered (keyword: java script origin policy)
If anybody has corrections or can provide a good solution, don't hesitate.

Similar Messages

  • Problem with URL iView regarding fetch mode and SSO to non-sap webapps

    Hi,
    I have created an URL iView which opens an internal webapp. When the fetch mode is set to client-side the page is displayed for the user. But when I set the fetch mode to server-side, the page cannot be displayed by the user.
    No proxy is needed. I tried to open the wepapp direcly on the portal server without any problem. Are there any additional points to be considered?
    On the other hand I want to realize SSO to this webapp (form based authentication) with user mapping. Is it correct, that I have to user server-side fetch mode, when I want to use the POST request method?
    Thanks ahead,
    Bernd

    >
    Bernd Speckmann wrote:
    > On the other hand I want to realize SSO to this webapp (form based authentication) with user mapping. Is it correct, that I have to user server-side fetch mode, when I want to use the POST request method?
    Yes.
    >Are there any additional points to be considered?
    Have a look at System Administration - System Configuration - Service Configuration - Applications - com.sap.portal.ivs.httpservice
    This is used to do the Server side fetch.
    Have fun
    Johannes

  • Problem in Url iView creation

    Hi,
    Does anyone know how to resolve this problem.
    We have EP. 7.0 and SRM BP 5.0 installed.
    When i try to create an URLiView i got this error msg:
    <b>Portal Runtime Error
    An exception occurred while processing a request for :
    iView : N/A
    Component Name : N/A
    Could not find portal application com.sap.portal.httpconnectivity.urliviews.
    Exception id: 03:26_02/11/06_0044_8457250
    See the details for the exception ID in the log file</b>
    I can not see the log file so hope to have a hand from you!
    Thank you,
    Points will be rewarded for any help.....

    Hi,
    I have few drop down list boxes, which are displaying when I execute an url.
    ex: url like http://countrystates.com and drop down list country displays 10 countries and states will be displayed base on selection of country
    When I execute this with URL iView I am getting same content what I expected but after assigning this iView to page I am getting wrong content mean country dropdown size is 10 but with wrong data (same some text is displaying 10 times in dropdown)
    I hope u understood the problem
    Thanks

  • Problem with URL File download

    Hi every one i am facing a problem with URL File read Technique
    import java.awt.Color;
    import java.io.DataOutputStream;
    import java.io.File;
    import java.io.FileOutputStream;
    import java.io.InputStream;
    import java.net.URL;
    import java.net.URLConnection;
    import javax.swing.JFrame;
    import javax.swing.JLabel;
    import javax.swing.JPanel;
    import javax.swing.JProgressBar;
    public class JarDownloader
         boolean isSuccess = false;
         public JarDownloader(String url)
              downloadJar(url);          
         public boolean isDownloadingSuccess()
              return isSuccess;
         private File deleteExistingFile(String filename)
              File jarf = new File(filename);
              if(jarf.exists())
                   jarf.delete();
              return jarf;
         public static void main(String args[]){
              new JarDownloader("url/filename.extension");
         private void downloadJar(String url)
              try
                   URL jarurl = new URL(url);
                   URLConnection urlc = jarurl.openConnection();
                   urlc.setUseCaches(false);
                   urlc.setDefaultUseCaches(false);
                   InputStream inst = urlc.getInputStream();
                   int totlength = urlc.getContentLength();
                   System.out.println("Total length "+totlength);
                   // If the size is less than 10 kb that means the linkis wrong
                   if(totlength<=10*1024)throw new Exception("Wrong Link");
                   JFrame jw =new JFrame("Livehelp-Download");
                   JPanel jp =new JPanel();
                   jp.setLayout(null);
                   JLabel jl = new JLabel("Downloading required file(s)...",JLabel.CENTER);
                   jl.setBounds(10,10,200,50);
                   jp.add(jl);
                   JProgressBar jpbar = new JProgressBar(0,totlength);
                   jpbar.setBorderPainted(true);
                   jpbar.setStringPainted(true);
                   jpbar.setBounds(10,70,200,30);
                   jpbar.setBackground(Color.BLUE);
                   jp.add(jpbar);
                   jw.setContentPane(jp);
                   jw.pack();
                   jw.setResizable(false);
                   jw.setDefaultCloseOperation(JFrame.DO_NOTHING_ON_CLOSE);
                   jw.setLocationRelativeTo(null);
                   jw.setSize(220,150);
                   jw.setVisible(true);
                   int readlngth=0;
                   int position=0;
                   byte[] readbytes = new byte[totlength];
                   while(totlength-position > 0)
                        readlngth = inst.read(readbytes,position,totlength-position);
                        position+=readlngth;
                        jpbar.setValue(position);
                   File jarf = deleteExistingFile(filename);
                   jarf.createNewFile();
                   //FileWriter fwriter=new FileWriter(jarf,true);
                   FileOutputStream fout = new FileOutputStream(jarf,true);
                   DataOutputStream dout = new DataOutputStream(fout);
                   dout.write(readbytes);
                   dout.flush();
                   dout.close();
                   inst.close();
                   jw.setVisible(false);
                   jw.dispose();
                   isSuccess=true;
              }catch(Exception ex)
                   isSuccess=false;
    }From the above code i received the total length of the PAGE content (i.e here url is a file) when i tried to find the size of that file it return -1.
    please help me

    I think the real problem is that you don't check the return value from read (it's probably less than data.length indicating an incomplete read). Isn't there a readFully somewhere?

  • Problem with URL:s containing scandinavian characters (Office 2013 / Firefox / SP 2010)

    We are encountering problems with document opening when URL contains scandinavian characters (ä,ö). This issue occurs only with Office 2013 when using Firefox. With IE it works just fine. And Office 2010 works nicely as well.
    Error message: "We can't connect to 'https://intra.../Test powerpoint.pptx' Please make sure you're using the correct web address".
    This issue only occurs when document or document set name contains scandinavian characters. If I rename it, document opens without any problems. 
    Any idea how I could fix this?

    Hi Law, try changing the settings in the library to "open in client application." You should also read the following links for solutions:
    http://sharepoint.stackexchange.com/questions/16938/why-is-word-document-created-from-template-saved-locally-instead-of-to-the-docu
    http://social.technet.microsoft.com/Forums/sharepoint/en-US/ec048a1f-e6cc-481d-8f46-308823568b56/cannot-save-documents-to-sharepoint?forum=sharepointadminprevious
    cameron rautmann

  • EP 6 to EP 7 with URL Iview

    Hello All
    We are implementing Travel and Expense on EP 7 with ECC 6.0 as the back end. This is the Finance box. We have a separate HR box, ECC 5.0 using EP 6.0.
    We would like to have users logon to the HR/ESS portal, click on Travel and Expenses and be sent to the EP 7 portal to enter expenses. We would like for this to happen in another screen.  We are able to authenticate and display the iview in another screen which is desired. We can even do a preview of the URL Iview in EP 6 and access everything we need.
    The problem is when the user logs onto the ESS portal, clicks on Travel and expense. The new screen is generated, EP 7 with our options is displayed. When you select a Service the system hangs and nothing is displayed. I have noticed that the EP6 url is in the Address field in the browser. Can anyone give me any hints as to what we are missing? Anything would be appreciated
    Points will be awareded!!!!
    Thanks
    Ronnie

    Moved the question over here to Portal Content Development:
    /thread/2033973 [original link is broken]

  • Problems with URLs generated for My/BEx Portfolio in a FPN

    Has andone successfully configured a FPN that uses My/BEx Porfolio?
    We are facing a problem with the URLs generated when launching a BEx web query stored in either My Portfolio or BEx Portfolio after it has been saved from the BEx Web Analyzer.  After saving the KM document in My/BEx Portfolio in BEx Analyzer attempts to execute the link from the Portfolio IView result in "Page not found or not avaialble".  The KM document appears to be correct as it can be opened correctly from the BEx Analyzer template.
    Current Setup:
    Consumer Portal:  EP 7 (SP17)
    Producer Portal: EP 7 (SP17 patch 11)
    BW System: BI 7 (SPS16, BW SP18)
    SSO and Trusts are configured and working.
    WebDav is configured to store BEx Portfolio entries on the Consumer
    Currently RSPOR_T_PORTAL is configured with hostname of Producer, however it was initially configured with Consumer host, resulting in the same problem, though this should not matter, as the RDL IView is used regardless of the setup.
    Scenario:
    Existing Roles have been imported from BW System into Producer Portal, the roles are not used, only the imported IViews
    IViews of the Queries have been included in Consumer Roles using RDL
    IView has been added to this role to display local BEx Portfolio links
    RDL IView has been added to this role to display Producer My Portfolio links
    1. Launch IView of Query included in Role
    2. Use Save As functionality to store KM document in My Portfolio or Bex Portfolio
    3. Open the cooresponding Portfolio IView and click on the link
    Here's an example URL resulting from launching the link
    http://pportal.lhoist.com:50000/irj/servlet/prt/portal/prteventname/navigate/prtroot/pcd!3aportal_content!2fevery_user!2fgeneral!2fdefaultDesktop!2fframeworkPages!2fframeworkpage!2fcom.sap.portal.innerpage?BOOKMARK=D4UE3NQC7T5MUXILOGH6GV7LC&BI_TARGET_IVIEW=fpn%3AEP%2Fpcd%3Aportal_content%2FLhoist_BI%2FRoles%2FLhoist.MyReporting%2FStandardReports_2%2FSales%2FProfitability%2FSales_Quantity%2FMPXXSAP103_00000071%3AhRPQZv3B9%252BE66ckUgr9%252Fcg%253D%253D%3A1%3A&NavigationContext=fpn:EP/pcd:portal_content/Lhoist_BI/Roles/Lhoist.MyReporting/StandardReports_2/Sales/Profitability/Sales_Quantity/MPXXSAP103_00000071:hRPQZv3B9%2BE66ckUgr9%2Fcg%3D%3D:1:&windowId=WID1231315538117
    Thank you.

    In fact I have exported a master file and I have brought it into Compressor.
    Master file exported from Final Cut:
    Transcoded file:
    Compressor is not able to open the file it has just transcoded:

  • Multi-language with URL-iViews

    hi folks,
    I have the following little problem:
    Our EP is mostly based on URL-iViews to static HTML-sites in german. Now, we are planning to extend the EP with an english Version. The Users should see the portal in the language they choose in the portal personalization menu.
    My first thought was to use the portal-content-translation but this doesn't work for URL-iViews, as there is almost no text to be translated.
    Now, my idea is to put a little script between the portal and the HTML-sites that checks the chosen language and redirects the user to the specific version.
    The Problem is, I have no idea how to do that.
    It would be really nice if anyone could tell me how to do this or maybe you have a better solution for my problem.
    Thank you in advance for your efforts.
    Kind regards
    Norbert

    Hello Michael,
    unfortunately that doesn't work.
    If I put an URI like http://yourcontentserver.com/<request.language>/content1.html
    in the URI file of the URL-iView Editor and after that on preview I get the following error: page could not be found
    When I use a PHP-Script to catch the variable like http://yourcontentserver.com/index.php?lang=<request.language>
    I can't put it like that in the URI field cause I can't save it.
    When I use the URL-parameter fields and enter "lang" and "<Request.Language>" I get the following URL as an result:
    http://yourcontentserver.com/index.php?lang=%3CRequest.Language%3E
    As you can see, the variable isn't "translated".
    Maybe you could I didn't understand you right?
    Message was edited by: Norbert Stroh

  • Events problem with (Java and ActiveX)

    Hi,
    I use an ActiveX component with Java and i've got a problem with events.
    Java classes were generated with Bridge2Java (IBM).
    In order to manage events I added a listener in my application :
         javaMyActiveX = new MyActiveX();
         javaMyActiveX.add_DMyActiveXEventsListener(new _DMyActiveXEventsAdapter());
    I also added a constructor in the _DMyActiveXEventsAdapter class and I fill the body of methods.
    The ActiveX generates two types of events :
    - The ones are directly generated by methods.
    - The others are generated by a thread.
    With MS Products (VB, Visual C++, Visual J++), I catch all events.
    With java (jdk 1.4), I catch only events generated by methods.
    Can anyone help me.

    I'm not 100% sure, but the last time I used that bridge, it only worked if you ran your Java app within a Microsoft VM.

  • Problems with URLs in flash launching in IE/XP

    I am unable to launh URL imbedded in html with flash on IE
    under XP. All other platforms work fine.
    sample below;
    onClipEvent (enterFrame) {
    this.text5="<p>Lorem ipsum</p><p>Visit the
    <a href='
    http://www.url.com'
    target='_blank'><u>Link</u></a></p>";
    Scrattching my hair out on this one.
    Michael

    Are you trying to upload from individual Domain.sites files? It looks as if the redirects aren't working, and that's due to problems with index.html files--a common issue in '08 if you are trying to publish individual sites from separate/individual Domain.sites files. Moreover, the site(s) you are looking for may not show up because they may not even be on the server anymore. Domain.sites2 files, (iWeb2.0.1) will erase previously published sites on the iDisk when published.
    Your username url wants to go to a site that doesn't seem to exist anymore on the server: HerringMemorabilia.
    Best thing to do at this point is to have a look at the server itself. Use the Go menu in the Finder to navigate directly to the iDisk sites files, and see what is and what is not actually on the server:
    Go/iDisk/My iDisk/Web/Sites/SitesShouldBeHere/
    Also, while you are there, take a look at the directory that 1.1.2 used:
    Go/iDisk/My iDisk/Web/Sites/iWeb/SitesShouldBeHere/
    Once you see what is there you will be in a better position to diagnose the problem, e.g., issues with index.html files.

  • Programming Web Item. Problem with URL creating

    Hi,
    I am trying to programm a own Web Item.
    I derived from the class CL_RSR_WWW_ITEM_VIEW.
    Everything is worken fine. I just have a problem with
    the creation of links.
    In the WAD there is the very nice way of using SAP BW URLs
    like:
    <SAP_BW_URL cmd="PROCESS_HELP_WINDOW"
    help_service="ZPRINTING"
    item="TABLE_1"
    suppress_repetition_texts=""
    P_PREVIEW_MODE=" ">
    Is the a method or something similar to do the same with abap?
    Greetings
    Mike

    I found  out mayself!
    You just have to use the object CL_RSR_PARAMETER.
    There you can add parameters.
    Then use the method get_url of the object CL_RSR_WWW_PAGE to make a URL string out of it.
    Mike

  • Integration with url iview

    Hi everyone,
    I have a web application and Portal and My aim is this two systems integration using url iview but I don't want to use Application Integrator.I want to use only URL iview with url parameters. My wish is to enter URL Parameter = uname(static) and Value = portaluid(This value should be get dynamically from portal).Consequently,How can I get dynamically portal userid in the url iview value.Is that possible?

    Hi Mehmet,
    Is there a reason you don't want to use application integrator? Because it is quite simple to create what you want using application integrator.
    I don't think URL iView supports dynamic parameters...
    Check out the Howto document for application integrator here:
    http://help.sap.com/bp_epv260/EP_JA/documentation/How-to_Guides/25_HowToUseAppIntegrator_en.pdf
    Regards,
    Johan

  • EP7 SP11 new behavior with url iview launching external apps

    We have a simple URL iView that we deployed to open Lotus Notes (notes:///bookmark.nsf).  When we use this in EP7 SP10 it launches the external Notes client on the end user's PC and leaves the navigation area of the portal blank white.
    When we launch the same URL iView in EP7 SP11, we get an error page in the navigation window that says:
         Navigation to the webpage was canceled
         What you can try:
          - Retype the address.
    The Notes client still launches, but we'd like to get rid of this new error page that the support pack stack brought us.... Anyone have a suggestion?
    Thanks!
    Rich

    Hi,
    Using the url in IE works fine.  It seems to work everywhere but in the portal menu.
    I have the appintegrator in the back of my mind, and will start to have a look at it.  We are also considering a OSS message - this must be a bug in the system as far as I can see.
    Bjorn

  • Problem with DiscussionGroups iView

    Hello Yogi/Robert,
    I have a problem with my discussion groups iview.
    I am using the discussion groups iView, and layout set is DiscussionGroupsContributor. The iView is using the /discussiongroup folder to store the discussions created.
    Here's the problem: all the discussions created are stored in the same folder, and every new room created is able to view the same discussions.
    I want to be able to restrict discussions to different rooms, so that members of one room cannot view/read the discussions from another room.
    Please,how can I get this done...it is very urgent!!!
    Thanks in advance.
    Collins

    Hi Collins,
    have a look on how the room template "SAP_Standard_Template_2 (Read only)" is configured and configure your template in the same way.
    You need two Room Extensions, one for the DiscussionPermission and the second for Discussion Persistency. In the second a preconfigured room extension CM store is used (here cmDocuments with the label "Documents"). The output parameter "discussion_path" is mapped on the Path parameter of the RoomDiscussion iView on the RoomDiscussion Page.
    So the sentence "<i>For data for discussion groups inside rooms, the system determines the path to the storage folder automatically.</i>" is only correct if you work with room extensions as mentioned above.
    If you need more information on CM Room Extensions have a look at this link: http://help.sap.com/saphelp_nw04s/helpdata/en/f2/3c9041eedda009e10000000a155106/content.htm
    Hope this helps,
    Robert

  • Webservice Client deserialization problem with Vectors!

    Hello!
    I'm generating a Java Proxy Client with Eclipse WTP.
    The Client works fine with normal datatypes and own Beans. But whe the return type is a Collection with own beans an exception is thrown:
    exception: org.xml.sax.SAXException: SimpleDeserializer encountered a child element, which is NOT expected, in something it was trying to deserialize.
    So whats wrong?
    In teh Webservice Explorer everything seems to be fine, my vector is serialized in item-tags:
    - <getAktionenResponse xmlns="http://commonservice">
    - <getAktionenReturn>
    - <item xmlns="">
    <aktn_nr>a12345</aktn_nr>
    <claim>222</claim>
    <geschaeftsjahr>2005</geschaeftsjahr>
    <son>333</son>
    <special_operation_code>soc12345</special_operation_code>
    <status>ready</status>
    <vin>t123</vin>
    </item>
    - <item xmlns="">
    <aktn_nr>a6789</aktn_nr>
    <claim>567</claim>
    <geschaeftsjahr>2006</geschaeftsjahr>
    <son>555</son>
    <special_operation_code>soc6789</special_operation_code>
    <status>false</status>
    <vin>t123</vin>
    </item>
    </getAktionenReturn>
    </getAktionenResponse>
    how can i solve this problem?
    the background is that I return a vector with Java Objects. I thought apache axis deserielizes automatically the vector and the bean inside??
    I'm pretty new to webservices...
    Pleas help!
    Thanks!

    As per the below link, I assumed its better to avoid collections and go with plain array of objects.
    Please let us know if I am wrong.
    http://www-128.ibm.com/developerworks/webservices/library/ws-tip-coding.html
    Regards,
    Venkat S

Maybe you are looking for

  • Error in creating a schedule agreement

    hi friends i got an error in creating a scheduling agreement the error reads- 'zjk5(the output type ) is not defined' condition records,port definition,partner profiles everything is fine. another error that reads is 'No communication data is set for

  • New Version 4.0 Bluetooth Software (SP2)

    Found the following news.  As stated it works under SP2 as well.  Will owners of the Btoes Dongle be getting this update?  Maybie a mod, admin or someone from MSI can answer this. Quote Broadcom® Upgrades Market Leading WIDCOMM® Bluetooth® Software W

  • Creative Suite 5.5 Installed on Windows Machine. Doesn't load Acrobat Pro. Why not?

    Here's the Geek Error Message gibberish it spit out: Exit Code: 6 -------------------------------------- Summary -------------------------------------- - 0 fatal error(s), 14 error(s), 8 warning(s) WARNING: DW024: The payload: Adobe Photoshop CS5.1 C

  • Help with drop create and update table

    Sir/Madam, I have joined 5 tables and selected some columns ,then I need to update some columns in that. After updating I need to create a report with the new column values. To do this my method is to create temp table with the select statement then

  • "More like this" box - Questions with correct answer symbol

    There is "more like this" box on right hand side of the discussion page. It shows the questions which are approximately same as currect question. There are some question which has correct answer symbol but when I open that question, there is no corre