KM document iView issue (Java Script) :(

Hi Developers,
I have following java script to call a ICWC iView .
<html>
<head>
<title>JavaScript Window Close Example </title>
</head>
<SCRIPT language="JavaScript1.2">
my_window = window ;
function closepopup()
if (my_window != window)
           if(false == my_window.closed)
                alert('Window already Open!');
                          else
my_window = window.open("http://rp1118.india.rapidigm.com/irj/servlet/prt/portal/prtroot/pcd!3aportal_content!2fVeena!2fKMDOCiview?sap-config-mode=true","mywindow","status=1,width=350,height=150");
else
my_window = window.open("http://rp1118.india.rapidigm.com/irj/servlet/prt/portal/prtroot/pcd!3aportal_content!2fVeena!2fKMDOCiview?sap-config-mode=true","mywindow","status=1,width=350,height=150");
my_window = window2 ;
</SCRIPT>
<body>
<P>
<A href="javascript: closepopup()">Open BSP</A>
</P>
</body>
</html>
I have created a KM document iView to call this HTML page in portal and assigned that iView to a role .
Now the problem is when I click the iView for second time (when one ICWC window is already open) , it reloads the java script and it initializes the value of parameters .
So next time when I click on the link  'Open BSP' it again opens a new ICWC window
instead of the warning message 'Window already Open!' .
Is there any way to acive this .
Thanks & Regards,
Amit Kade

Hi Martin ,
Thank you very much for your help , I have gone through the document for Client Data Bag API , but as you told I am not be able to clear the key value on close of child window .
Now I have thought of a different approach and written  the following code :
<html>
<head>
<title>JavaScript Window Close Example </title>
</head>
<script language="JavaScript">
  window.onbeforeunload = confirmExit;
  function confirmExit()
     if(false == my_window.closed && my_window != window)
    return "You have attempted to leave this page.  Please DO NOT click on the OPEN BSP tab again before closing the active BSP window as this will open new BSP window.  Are you sure you want to exit this page?";
</script>
<SCRIPT language="JavaScript">
my_window = window ;
function closepopup()
if (my_window != window)
           if(false == my_window.closed)
                alert('Window already Open!');
                          else
my_window = window.open("http://rp1118.india.rapidigm.com/irj/servlet/prt/portal/prtroot/pcd!3aportal_content!2fVeena!2fKMDOCiview?sap-config-mode=true","mywindow","status=1,width=350,height=150");
my_window.focus();
my_window = window2 ;
else
my_window = window.open("http://rp1118.india.rapidigm.com/irj/servlet/prt/portal/prtroot/pcd!3aportal_content!2fVeena!2fKMDOCiview?sap-config-mode=true","mywindow","status=1,width=350,height=150");
my_window.focus();
my_window = window2 ;
</SCRIPT>
<body>
<P>
<input type = "button" onclick="javascript: closepopup()" value="Open BSP Page"></button>
</P>
</body>
</html>
Here on <b>onbeforeunload</b> event I am giving an warning message to user giving them two options , OK CANCLE .
This is working fine but as I click on CANCLE tab the portal doesn't load the KM document iView . Instead it just says 'loading' forever.
Am I missing something in this code . Can you please help.
Thanks & Regards,
Amit Kade

Similar Messages

  • Java scripting-linearized PDF

    Hi, 
    I m working with Acrobat X.  I don't know how to prepare java scripts for the below desired functions. Hoever i want to import some java scripts through Acrobat X "Action Wizard" for batch processing. If you can share these scripts, pls. provide .. 
    1) Java script for setting bookmartks as "Inherit Zoom" 
    2) Java script for initial page view "Bookmarks Panel and Page" only when book marks present in the document. 
    3) Java script for enabeling the PDF files for Fast web view as "Yes" 
    With Regards, 
    B..

    Hi Johnson,
    Thanks for update. Well, i have seen some off the self plug ins or softwares available for the batch processing of PDF files for the said functions. However there may be another way (other than Java scripting) for completing the task.
    Any idea......
    Regards,
    Bhaumik

  • Javascript/vbscript functionality (java script functions are not running) issue in Internet Explorer 10 and 11

    We have developed web portal using classic ASP and java/vb script.  We used to run it absolutely fine using Internet Explorer 8.  Now we just migrated to Internet Explorer 11.  But after that no java script functionality is working in our
    web portal.
    Our web server is configured on windows 2003 server and IIS version 6.0 and has .net Framework (Microsoft.NET\Framework\v2.0.50727).  
    Could you please suggest us that is there any workaround to this? 

    Hi,
    Have you tested this web portal in compatibility mode, Tools\Compatibility view settings? or click F12 to use the developer tool, change the the document mode and user agent string to 8, check the result.
    And under Tools\Internet Options\Security\Custom level, scroll down to "Scripting", enable "Active Scripting".
    Since you're developer of the web portal, it's recommended to post issue in IE development forum
    https://social.msdn.microsoft.com/Forums/ie/en-US/home?category=iedevelopment
    Regards
    Yolanda Zhu
    TechNet Community Support

  • Not only does Adobe flashplayer continue to crash on my operating system (windows 7) but now java script is having issues .... what is wrong with firefox????

    for months I have checked the forums, and seen the same issues with Adobe Flash Player ... I have uninstalled and reinstalled too many times now and am totally frustrated with Firefox,. I just get it working again and Firefox updates and then I have the same issues ... and now my java script is screwing up and it never did before .... this all came after the latest update .... is anyone else having these issues or is my operating system under attack???

    Recent crashes of certain multimedia contents (this includes Youtube videos, certain flash games and other applications) in conjunction with Firefox are most probably caused by a recent Flash 11.3 update and/or a malfunctioning Real Player browser plugin.
    In order to remedy the problem, please perform the steps mentioned in these Knowledge Base articles:
    [[Flash Plugin - Keep it up to date and troubleshoot problems]]
    [[Flash 11.3 crashes]]
    [[Flash 11.3 doesn't load video in Firefox]]
    Other, more technical information about these issues can be found under these Links:
    http://forums.adobe.com/thread/1018071?tstart=0
    http://blogs.adobe.com/asset/2012/06/inside-flash-player-protected-mode-for-firefox.html
    Please tell us if this helped!

  • Can't add java script to Adobe 7.0 PDF document

    Hi, ran into a small problem using Adobe Pro 7.0. Created a interactive form in Adobe Designer 7.0. Want to add Java script to run when a user selects certain fields on the forms. However, when I try and use the advanced editing tools to gain access to the Java script properties for that object, the toolbar is greyed out. No document security has been configured. Can this be done? Should it be done in Adobe Prof or in Designer? Can't figure out how to add the java script to the forms.
    Any help would be appreciated.
    Thanks Michael

    Once a form is started in LiveCycle Designer, it has to be edited in LiveCycle Designer. There are very few Acrboat features that can be used.

  • WAD Java script issue after upgrade to 7.3

    Dear all,
    We have just upgraded our system from BW 7.01 to 7.3 SP4. One of the custom web templates in the system uses java script to hide few items on every screen refresh. Post upgrade, this functionality is behaving strangely, as the hidden items automatically get 'un-hidden' on page refresh.
    Please let me know if there are any known script issues in web templates in system upgrade scenarios. Any pointers would be appreciated.
    Thanks,
    Abhishek.

    Pls check out this link
    http://www.google.co.in/url?sa=t&rct=j&q=java%20script%20issue%20after%20upgrade%20bw%20to%207.3&source=web&cd=7&sqi=2&ved=0CEsQFjAG&url=http%3A%2F%2Fcsc-studentweb.lr.edu%2Fswp%2FBerg%2Farticles%2FBIIT_2011%2FBIIT_Amsterdam%2FBIIT_2011_Berg_BW_73_upgrade_v16.pptx&ei=TT7iTtLgJ8LwrQf2oLDJAQ&usg=AFQjCNEUg1EvXM82AmBaGntD4YY7FZwHXw&cad=rja
    Pls assign points if it was useful.

  • Documents in library went from English to Java Script

    The documents in my libraries was all in English,
    This changed from English into Java Script, Java Script Run Errors, and left some documents in English.
    I'd like my library/document file back in alphabetized English only

    Hello anitaworkman,
    I understand that your files have changed to java script.
    Open up command prompt and run the following command SFC /scannow.
    This will scan the system files and correct any errors that it can.
    Here is a link to command prompt.
    When you go to open command prompt, right click and run as administrator.
    If it has not been to long since the problem started, you can run a system restore.
    This will take the system back to when everything was working correctly without affecting your personal files.
    Here is a link on how to do a restore.
    Let me know how everything goes.

  • Which method is ideal to transfer Java scripts from old documents to new ones?

    I have at least eight different single pages with specific java scripts and have these options:
    Copying from the «all edit java scripts» the whole piece to paste into the same window in the new Acrobat document (sometimes some fields lost function).
    Copying the specific java script located in «Document java scripts» i into the same window in the new Acrobat document , also with problems.
    Insert the specific page with a java script into the new one Acrobat document. This method has been perfect for the moment although I don't know if it is just orthodox enough to avoid conflicts in the future.

    !. Not recommended, you will pull all including fields, and document actions as well as overwrite existing form field and document actions.
    2. Possible but could be time consuming.
    3. Best choice. I would look at inserting a blank page into the PDF with the code, copy any fields with script to the blank page, save the file and then extract the inserted page. The page will also pickup the document actions and document level JavaScripts.
    Another option would be creating an FDF file to add the document level code and actions to a PDF.

  • Java Script: Form Submit issue.

    Is there a way where I can submit two forms ?
    Thats is submit 2nd form only when the first form is submitted.
    I tried this it works.
    function formSubmit(){
    document.form1.submit(); //Submit First Form
    alert(); //This will stall the execution thus form2 will not be submitted till I click on OK
    document.form2.submit();
    }But If I dont put an alert in between, only the second form is submitted.
    If I put a delay of say 3 seconds in between then it will throw a SOCKET CLOSED error in the action event triggered due to first form submit.
    Well Basically when the Alert pop's up the parent page "STALLS" and thus the form2 does not submit till I click on OK, Is there a way I can stall the browser/Parent JSP page using JAVA SCRIPT ??

    Relax people... Ok I will move my querries else where :) ..
    But whats wrong if somebody can provide me an answer ? I am sure most of you know java script , if you dont know then don't answer simple as that.
    You do know that Sun did not create JavaScript, right? So the Sun forum sites may not be the best place to look for a JavaScript forum " {code} 
    You mean to say if something is not from sun I am not supposed to ask a question on that, I agree that this is JAVA Programming forum.
    Peace,.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • Issues accessing KM Document iviews after Enhancement Pack application

    Hi,
    There are few KM links which are having corresponding KM documents iviews. these iviews are embedded in a role. When i preview the links directly, or the iviews, i am able to see the page. But when i try to access the same through role, i am getting HTTP 400 (Bad Request) error.
    This issue was not happening before Enhancement pack was applied. NW7.0EhP1.
    Another issue that has been figured out is i am not able to create new iviews because for iview templates, i get the error message stating that "No templates to display. You are not assigned to any existing templates".
    I have super admin access on the portal, so even that is not an issue i suppose so.
    Any pointers to why htis issue is happening or if any SAP note needs to be applied, it would be of great help.
    Thanks & regards,
    Anupreet

    Anupreet Kaur Chhokar wrote:
    i am not able to create new iviews because for iview templates, i get the error message stating that "No templates to display. You are not assigned to any existing templates".
    Hi,
    Since you've just had an upgrade, db inconsistency could be the cause.
    Refer SAP Note 886596 - iViews are not displayed because of corrupt attribute values and the relates notes mentioned in this note.
    Regards,
    Anagha

  • Java Script Errors when clicking on several opened documents

    All of a sudden I started having problems shutting down
    Dreamweaver MX 6.1
    Later , when I open two or more documents I get an error when
    I click on the document in the background.
    A series of dialog boxes come after eachother and say the
    following:
    1. While executing Browse_back enabled in toolbars.xml, a
    java script error occurred
    2. While executing Browse_back enabled in toolbars.xml, a
    java script error occurred
    3. While executing Browse_forwrad enabled in toolbars.xml, a
    java script error occurred
    4. While executing Browse_stop enabled in toolbars.xml, a
    java script error occurred
    5. While executing get current value in AddressURL.htm
    enabled in toolbars.xml, a java script error occurred
    I have uninstalled and reinstalled the program several times
    and it did not help. I have also installed Dreamweaver MX 6.1
    updaters with no change.

    You can try this simple fix -
    Quit DW.
    Find this folder -
    C:\Documents and Settings\<username>\Application
    Data\Macromedia\Dreamweaver
    8\Configuration\WinFileCache-*.dat
    (these folders are normally hidden - you may have to use
    Explorer > Tools >
    Folder Options to unhide them)
    or on Mac -
    Library/Application Support/Macromedia/Dreamweaver
    8/Configuration/MacFileCache-*.dat
    and delete it.
    Restart DW. Works better?
    Troubleshooting JavaScript errors in Dreamweaver
    http://www.adobe.com/cfusion/knowledgebase/index.cfm?id=tn_19105#dat
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.dreamweavermx-templates.com
    - Template Triage!
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    http://www.macromedia.com/support/search/
    - Macromedia (MM) Technotes
    ==================
    "anabelapinto" <[email protected]> wrote in
    message
    news:emh6hq$ke5$[email protected]..
    > All of a sudden I started having problems shutting down
    Dreamweaver MX 6.1
    > Later , when I open two or more documents I get an error
    when I click on
    > the
    > document in the background.
    >
    > A series of dialog boxes come after eachother and say
    the following:
    >
    > 1. While executing Browse_back enabled in toolbars.xml,
    a java script
    > error
    > occurred
    >
    > 2. While executing Browse_back enabled in toolbars.xml,
    a java script
    > error
    > occurred
    >
    > 3. While executing Browse_forwrad enabled in
    toolbars.xml, a java script
    > error
    > occurred
    >
    > 4. While executing Browse_stop enabled in toolbars.xml,
    a java script
    > error
    > occurred
    >
    > 5. While executing get current value in AddressURL.htm
    enabled in
    > toolbars.xml, a java script error occurred
    >
    > I have uninstalled and reinstalled the program several
    times and it did
    > not
    > help. I have also installed Dreamweaver MX 6.1 updaters
    with no change.
    >
    >

  • Expand Collapse Feature in OBIEE 10.1.3.4 version using Java script Issue

    Hi All,
    Tried to implement this script in OBIEE 10.1.3.4, but throughs error. Can any one help me in this regards
    Steps followed
    1. Create an answers report pulling Top Relations, Sub Relationship and Customer from the dimension and sales amount from the Sales fact
    2. For Sub Relationship and Customer give the left padding as 25.
    3. Create a pivot table view make Top Relationship, Sub Relationship hidden and select show the total before and select labels only (no totals) in the pivot table.
    4.Add the image files in and the following code for Top Relationship, Sub Relationship columns select the data format to as HTML image and change it to custom text and add the following.
    @[html]<img onclick="ExpandCollapse(this)" src="res/s_oracle10/images/PropertyGroup_minus.gif">@H
    5. Add a narrative view and add the following java script.
    // Java Script
    function ExpandCollapse( el )
         // Grab the ROW that was clicked and the TABLE that contains it
         var tr = el.parentElement.parentElement;
         var tbl = tr.parentElement.parentElement;
         // Set the alternating display values for hiding/showing the row
         var sDisplay = ( el.src.indexOf( "minus" ) == -1 ) ? "" : "none";
         var sDisplayReverse = ( el.src.indexOf( "minus" ) == -1 ) ? "none" : "";
         //Switch the icon for the clicked row
         el.src = "C:/Manohar/HTMLTest/PropertyGroup_" + ( el.src.indexOf( "minus" ) == -1 ? "minus" : "plus" ) + ".gif";
         // Starting with the row below the clicked row, start checking each row
         for ( var i = tr.rowIndex + 1; i < tbl.rows.length; i++ )
              // Set the Current row indicator nad the left padding value
              var trCurrent = tbl.rows( i );
              var trCurrentLeft = trCurrent.cells(0).style.paddingLeft;
              // if the current row contains an IMG in it, it's a clickable level and we either have to stop processing,
              // or reset the icons to a + as it's being collapsed
              if ( trCurrent.cells( 0 ).firstChild && trCurrent.cells( 0 ).getElementsByTagName( "IMG" ).length )
                   // If the current row is at the same level or above in the tree, then stop processing,
                   // else reset all the signs below it, essentially collapsing all branches underneath the one that is beig collapsed.
                   if ( stripTrailing(trCurrentLeft , UOM_SIZE) <= stripTrailing(tr.cells(0).style.paddingLeft , UOM_SIZE) )
                   { break; }
                   else
                        if (el.src.indexOf( "minus" ) == -1 )
                             trCurrent.cells(0).getElementsByTagName("IMG").item(0).src = "C:/Manohar/HTMLTest/PropertyGroup_plus.gif";
              // Now, we determine if the row should be hidden or shown.
              if ( eval(stripTrailing(tr.cells(0).style.paddingLeft, UOM_SIZE)+ INDENT_SIZE) < stripTrailing(trCurrentLeft, UOM_SIZE) && el.src.indexOf( "minus" ) >0 )
                   trCurrent.style.display = sDisplayReverse;
              } else
                   trCurrent.style.display = sDisplay;
    Thanks,
    Kumaravel
    Edited by: 840515 on Feb 28, 2011 10:00 PM

    Since the SP is on connection pool (and looks like expecting a input value), that may causing for error.
    Column in the report, pass PS variable and hide it if it not required in the report.
    Pls mark if helps

  • Java Script in Templates issue

    I have created a help system for our new financial reporting
    system and a developer has created a template which includes Java
    scripted 'Rate this page' radio buttons and a comments field in the
    header. I have imported the template into my project and attached
    all the topics to this template. When I preview or regenerate/view
    the HTML output and click on the comments field an error is
    returned.
    Our developer can get this to work on his machine but not
    mine (I.E security setting have been set to low but it still wont
    work).
    When I generate on the developers machine, we get our Java
    script code in the headers but not when we generate on my machine.

    Sorry - v rude of me:
    Any help/suggestions would be gratefully considered

  • Issue with Java script associated with WAD template

    Hi Experts,
    I made some changes in the Java Script in Tcode SE80. I actually downloaded it, made changes, saved it and then clicked on Upload and replace in SE80. When I opened the Web cockpit, the changes were relecting as anticipated.
    But the changes are still showing up even after reverting the changes in java scripts and uploading it again.Please let me know what needs to be done to revert the changes such that it will  ot show up in the Web Cockpit.
    I think the "Upload and replace option" worked only once in my case. Kindly suggest. Thanks
    Regards,
    Kavitha Jagannath

    I would like to know how to do this process.  I would like my students to complete the module and then enter there name in the certificate line.  Then have them enter their email address so that the certificate can be emailed to them and they can print it off.  I would like to have the certificate be a PDF file so they cannot alter the name of the person who took the course.

  • Java script issue on screen rendering for all-11-otn4.js

    Hello,
    I am getting java error on screen rendering for all-11-otn4.js line no 12277 and 16073. The java script error I get is, *"A script on this page may be busy, or it may have stopped responding. You can stop the script now, open the script in debugger, or let the script continue"*. After this page stops responding, i have to close the browser and reopen it.
    I have a table inside my screen. The table is added inside a af:panelCollection and have few toolbar buttons added inside the secondayToolbar facet. This error is commng due to the table toolbar buttons.
    When i check the java scirpt using debugger, it stops at following java script at the bold line,
    AdfUIComponent.prototype.getParent= function()
    var x147=this._parent;
    if (x147===undefined)
    var x148=this._peer;
    if (x148!=null)
    x147=x148.getComponentParent(this);
    this._parent=x147;
    return x147;
    Any idean why this could be happening and any ways to tackel it?
    - Sujay

    Hi,
    did you try with a production build. Sems to me that you use Technology Preview, which is almost 2 years old
    Frank

Maybe you are looking for

  • Open periods

    I have facing the following problem during production order confirmationm 1] posting date not possible in your s& g/l account. 2] period 010/2007 is not open in s&g/l account pl.resolve the same

  • Issue with scanners beeping on over picking material code

    Hi , I have an issue with scanner beeping.User is working is Z tcode . The followings are related steps. (1)If the user does over-picking the material code , an "information" window like below is displayed, however, no beep sound is produced. Informa

  • "UTF8" or "UTF-8" ?

    Oh man, i saw several examples for UTF-8 encoding and most of them used "UTF-8" as the encoding string - but not all. At http://java.sun.com/j2se/1.4.2/docs/guide/intl/encoding.doc.html i noticed: Canonical Name for java.nio API : UTF-8 Canonical Nam

  • All my caption text went away from full screen in organizer pse 10

    all my caption text went away from full screen in organizer pse 10

  • Error installing OBIEE11G on IBM-AIX 6.1

    Hi all, I am trying to install OBIEE 11.1.1.6.0 (software only) on my IBM-AIX 6.1 server, and I have completed installing weblogic and OBIEE, but in the configuration phase i am getting failed at restarting the admin server: the error in the log is a