JavaScript III - window.open()

Hi,
Can somebody share a sample program for the following scenario -
Pass values and display values in a new window, basically using the function window.open(); Appreciate it.
Regards,
V M.

here is some details for the web scripting:
DataQuery getQueryObject()
Obtains a reference to the underlying query object that supplies data to the applet. Once a reference is obtained, its properties can be manipulated.
void refresh()
Updates the query to the current time and redraws the applet.
void setPropertyValue(String propertyName, String newValue)
Sets a named value that can be accessed by any applet during the browser session. Once the browser is closed, the value is no longer available. This can be used to create properties that can be passed between Web pages. For example, if you select a batch on one Web page, a new Web page with a detailed list of the materials consumed in the batch could appear. The batch number could be placed in a session parameter on the main page and picked up by the dialog box. These properties can also be used to pass values to SAP xApp Manufacturing Integration and Intelligence (SAP xMII) reports.
String getPropertyValue(String propertyName)
Gets a named value that was set using the setPropertyValue method. This value can be used to set the applet.
void showDetail()
Displays an HTML page in which the raw data associated with the current applet is displayed in a table.
void showHelp()
Displays the applet help.
void saveAsCSVFile()
Initiates a transfer of the raw data associated with the current chart to a local CSV file.
void showXMLDetail()
Displays an HTML page that contains an XML view of the raw data associated with the current applet.
void showDetailUsingGet()
Displays an HTML page in which the raw data associated with the current applet using HTML Get is displayed in a table.
String saveImage()
Gets the URL reference to the GIF representation of the image displayed by the applet; it is only supported by iGrid, iChart, and iSPCChart.
void showStatistics()
Displays an HTML page that contains the statistical metrics associated with the chart. It is only available when the underlying query is from a Tag connector.
void showCurrent()
Displays an HTML page that contains the values associated with the chart. It is only available when the underlying query is from a Tag connector.
boolean getSelectionEventEnabled()
void setSelectionEventEnabled(boolean newValue)
Gets and sets the property that enables a selection event on an applet. This method enables or disables the event through Web page scripting.
boolean getUpdateEventEnabled()
void setUpdateEventEnabled(boolean newValue)
Gets and sets the property that enables an update event on an applet. This method enables or disables the event through Web page scripting. You can use it to synchronize the scrolling of multiple applets.
Object createColor(String strColor)
Controls colors at runtime. The value of the strColor parameter can be a color name or an HTML color string in the format #RRGGBB. The returned color object can be assigned to a color property in an applet.
String colorToString(Color cColor)
Controls colors at runtime. A color property of an applet property can be converted to a string and used in HTML.
String encodeURLItem(String strItem)
Takes a string as an input and the URL encodes the string so it can be passed over the URL command line. The returned string has spaces and other unrecognized attributes replaced with URL codes.
String formatDate(String strDate, String fromFormat, String toFormat)
Reformats date/time strings. The parameters include the incoming date/time string, the incoming format (so the string can be properly parsed), and the outgoing format. The resulting date/time string is returned.
String formatNumber(double dValue, String sFormat)
Returns a string for the value in the specified format.

Similar Messages

  • SSRS Action URL via javascript:void(window.open doesn't work in IE

    Hi,
    I am using the following code to open "google.com.au"
    in a pop-up window through SSRS Report -> Action -> URL 
    ="javascript:void(window.open('"+
    "http://www.google.com.au/" +
    "','_blank','scrollbars=true,status=true'))"
    The script work fine in Chrome and FireFox but not IE ( we are using IE 11.0 ), any idea what's going wrong?
    ( When we click on it ; Nothing appear in IE )
    Thanks.

    Hi Yu,
    1. We are using SQL Server SSRS 2008 R2 in IE 11.0.9600.17501 environment ( Means we already have the latest IE 11 Patch )
    2. Did you try put in Javascript in SSRS Cell -> Placeholder Properties -> Action -> URL?     
        i.e. ="javascript:void(window.open('"+ "http://www.google.com.au/" + "','_blank','scrollbars=true,status=true'))" 
    3. All reports are having the same phenomenon.
    4. I used F12 and tried IE7, IE8, IE9, IE10 all same ( ALL couldn't  POP UP window ).
    5. Please refer to attachment, I found out that when I go to Cell -> Right click -> Inspect Element & change
    target="_top" to
    target="_self" then the problem gone.
        BUT... how to set target="_self" in SSRS? 
    Regards,
    Frank

  • Why doesn't the replace option of JavaScript's window.open method work with FireFox 3 or 4?

    The photo html files on the Fanac Fan History project's website are now setup to be displayed properly when JavaScript is disabled and reformatted by a php script when JavaScript is enabled. The reformatting adds some features and positions each photo's caption and credits based on the width of the photo and the browser's page width. This worked well except that when a photo page was accessed the browser's back button wouldn't work properly. This was because I had failed to include the replace option in my windows.open statement. The statement now reads fileWindow = window.open(fileURL, "_self", "", true); and this has cured the problem with IE and the other browsers but it still doesn't work with FireFox.
    PS: You need to add "Always" to "This happened".

    We're sorry to hear that your Firefox seems to be crashing when you open it. Please perform the following steps to give us a crash report ID that helps us find out more about the cause of the crash.
    #Press the following shortcut to get a Run window: [Windows] + [R]. This should bring up a window that contains a text field.
    #In that text field, enter %APPDATA% and press Enter. An explorer window should open.
    #From that explorer window, double-click on the ''Mozilla'' folder, then double-click on ''Firefox'' and then on ''Crash reports''. Double-click on ''submitted''.
    #Now, you should see a list of files that contain reports. Go to ''View'' > ''Arrange Icons by'' > ''Modified'' to get the most recent files at the top of the window.
    #Open the most recent 5 files with a text editor and copy the IDs.
    #Paste each ID with '''bp-''' into the reply window on the forums.
    Thanks in advance!
    You can find more information and troubleshooting steps in the [[Firefox crashes]] article.

  • Javascript popups that open in same window causing focus problem

    I have been using javascript popups in actionscript buttons
    for some time with no issues. However, on a specific movie I have 2
    button links, each of which opens a pdf file. I need each pdf to
    open using the same new window to avoid multiple new windows
    opening.
    This works fine on the first link I open - the new window
    appears on top of the main window. The second link, however, opens
    underneath the main window despite the focus() code. This only
    happens in IE - works fine in Firefox.
    Code used:
    link3_btn.onRelease = function() {
    getURL
    ("javascript:NewWindow=window.open('docs/first.pdf','newWin22','width=700,height=500,left =1
    0,top=10,toolbar=No,location=No,scrollbars=Yes,sta
    tus=Yes,resizable=Yes');NewWindow.focus();void(0); ");
    link4_btn.onRelease = function() {
    getURL
    ("javascript:NewWindow=window.open('docs/second.pdf','newWin22','width=700,height=500,lef t=
    10,top=10,toolbar=No,location=No,scrollbars=Yes,st
    atus=Yes,resizable=Yes');NewWindow.focus();void(0) ;");
    Any help would be appreciated. Thanks.

    This is how the code should look:
    link3_btn.onRelease = function() {
    getURL
    ("javascript:NewWindow=window.open('docs/first.pdf','newWin22','width=700,
    height=500,left=10,top=10,toolbar=No,location=No,scrollbars=Yes,status=Yes
    ,resizable=Yes');NewWindow.focus();void(0); ","_self");
    link4_btn.onRelease = function() {
    getURL
    ("javascript:NewWindow=window.open('docs/second.pdf','newWin22','width=700,height=500,lef t=
    10,top=10,toolbar=No,location=No,scrollbars=Yes,st
    atus=Yes,resizable=Yes');NewWindow.focus();void(0) ;","_self");
    }

  • Can't Cut & Paste In JavaScript Editor Window

    Can anyone help? Can't cut & paste inside JavaScript Editor Window.
    I'm using Windows XP Home Edition & Adobe Acrobat 8 Pro

    I've had this happen sometimes while having a JavaScript console window open. IT happens after I've had the console open and switched to another application. Then when I switch back to Acrobat, the console is unresponsive. The solution I found was to close the console and open it up again from the menu. Then it's back to working as expected.

  • Is window.opener still supported in FF 11 and 12?

    Is the javascript function window.opener still working in FF12? I get a reference to the popup window itself instead of the window that opened the popup.
    Thanks a Bunch,
    B.

    hello, i think it should still be supported, since it's listed on MDN without caveats [https://developer.mozilla.org/en/DOM/window.opener]
    for detailed questions about web developement you can also consult the [http://forums.mozillazine.org/viewforum.php?f=25 mozillazine forum] (probably best with a sample of your code), since the folks there will probably know more about it than we do...

  • Window.opener question

    Hello,
    I understand that the windeo.opener reference the parent window. My question is, if I have a parent page and this page calls page2 and page2 calls page3, how can I reference the parent page from page3?
    I am using window.opener."the applet name" but I get an error:
    Something like:
    The callee server is unavailable and has disappeared.
    Can anyone help me solve this problem??? Please let me know if I can provide more information..

    When working with javascript in multiple windows like this, it is very easy to get lost.
    I think what you missed in accessing your applet was a "document" object.
    There are a couple of hints for writing javascript:
    1 - you can type javascript into the address bar like so:
    javascript:alert(window.opener)
    You then follow the path to the object you want as long as you can. Build it up slowly, so you see where the chain breaks.
    javascript:alert(window.opener.opener)
    javascript:alert(window.opener.opener.document)
    javascript:alert(window.opener.opener.document.applets)
    javascript:alert(window.opener.opener.document.applets.length)
    2 - General design: Don't reference stuff on other pages - call functions on the page only.
    Rather than calling window.opener.opener.document.applets[0]. (ie referring to the applet from window 3)
    do this
    window.opener.opener.saveApplet() (from window 3 call the saveApplet function on window1)
    and on the first page have
    <script>
    function saveApplet(){ 
    document.applets[0]. ...
    </script>
    This provides a sort of interface for other pages to use, so they don't have to refer to details on the page.
    If you change the layout of the page, or the name of the applet etc etc, you only have this one place to modify it. It can save you a nightmare in javascript errors later on.
    Good luck,
    evnafets

  • Command Windows.open only works once

    Hi all,
    Iu2019m using javascript command window.open to open a new browser window from a html link webui and is working fine.
    The issue I have is this only works once. If you close the window that you had opened, and click again in the link it doesnu2019t work. It only works if you call another link before. It seems there is a kind of cache in somewhere.
    Do you have any idea?
    Thanks in advance.
    Fernando.-

    Fernando,
      Change ur mywindow name every time.Kindly go through following code. 
    CALL FUNCTION 'GENERAL_GET_RANDOM_STRING'
      EXPORTING
      number_chars        = 3
      IMPORTING
      RANDOM_STRING       = mywindow
    var lr_window;
    lr_window = window.open("<%= lv_id%>","<%= mywindow%>","resizable=1,width=1100,height=674,fullscreen=yes");
    if (window.focus)
    {lr_window.focus()}
    lr_window.moveTo(0, 0);
    <%
      clear lv_id.
    %>
    <%-- delete lv_window; --%>
    <%-- mywindow.close(); --%>
    <%
      endif.

  • Window.open SSRS & Sharepoint problem

    I want to open a new window when I click a hyperlink on my text box.  Now I have seen the following javascript on a lot of posts:
     ="javascript:void(window.open('http://www.google.com/','_blank'))"
     it works fine in SSRS 2005 ( report server and report manager)
    but when I published this report on SharePoint2007 as WebPart - it is not working
    When I click the link in that environment, it knows it's a hyperlink but it does nothing.  If I change it to just the url ("'http://www.google.com/"), it works fine but it doesn't open a new window or tab but instead uses the
    current window or tab. 
    any ideas ?

    Hi,
    The SharePoint will strip the JavaScript out automatically.
    For the samples about adding JavaScript into SharePoint page, please refer to:
    http://blogs.msdn.com/sharepointdesigner/archive/2007/06/13/using-javascript-to-manipulate-a-list-form-field.aspx
    http://www.sharepointkings.com/2008/06/using-simple-javascript-in-sharepoint.html
    http://social.msdn.microsoft.com/Forums/en-US/sharepointdevelopment/thread/941940cb-acef-434f-830f-233713773b99/
    Hope it is helpful!
    Seven

  • GetURL - javascript - popup window

    Hi!
    I need to get a button to open a new, fixed-size, pop-up
    window.
    This is what I used:
    on (release) {
    getURL("javascript:window.open('ponuda_tjedna.html','Ponuda
    tjedna','width=350,height=250')");
    It works just fine, opens a new window etc. but the main
    window where the button is (where the site is) goes blank, white..
    and in the upper lef corner it says: [object Window]. If I click
    BACK, it restarts the entire site.
    What can I do to keep the main window where it is?
    I've also tried writing a function in javascript directly
    into the <head> tag of index.html and call the function from
    within Flash, using getURL. That did open a new window and the main
    site didn't go blank, but in IE nothing happened.
    Thanks,
    Igor

    > on (release) {
    >
    getURL("javascript:window.open('ponuda_tjedna.html','Ponuda
    > tjedna','width=350,height=250')");
    > }
    >
    > It works just fine, open a new window etc. but the main
    window where the
    > button is (where the site is) goes blank, white.. and in
    the upper lef corner
    > it says: [object Window]. If I click BACK, it restarts
    the entire site.
    You need void(0) with window.open because it returns stuff
    and if you don't void
    the request it will do exactly what it does to you. Not the
    case if you are using
    NewWindow function. Anyway, try this instead:
    getURL("javascript:n_name=window.open('ponuda_tjedna.html','Ponuda_tjedna','width=350,heig ht=250');void(0);");
    Best Regards
    Urami
    !!!!!!! Merry Christmas !!!!!!!
    Happy New Year
    <urami>
    If you want to mail me - DO NOT LAUGH AT MY ADDRESS
    </urami>

  • Avoid multiple window open

    hai friends
    in my menu is treeview.
    in that menu i click a form that open new window.
    and also i click another form that also open another one newwindow
    i click already opend form that also open new window. i want avoid the already opened form is not open again .
    i use target ="_blank"

    This is how the code should look:
    link3_btn.onRelease = function() {
    getURL
    ("javascript:NewWindow=window.open('docs/first.pdf','newWin22','width=700,
    height=500,left=10,top=10,toolbar=No,location=No,scrollbars=Yes,status=Yes
    ,resizable=Yes');NewWindow.focus();void(0); ","_self");
    link4_btn.onRelease = function() {
    getURL
    ("javascript:NewWindow=window.open('docs/second.pdf','newWin22','width=700,height=500,lef t=
    10,top=10,toolbar=No,location=No,scrollbars=Yes,st
    atus=Yes,resizable=Yes');NewWindow.focus();void(0) ;","_self");
    }

  • Javascript window.open needs to always open in a new window

    I am tring to create a menu system. When the user selects an item, then clicks Open Application, I want them to be able to open the application in a new browser window with specific window prefs.
    I have added this javascript to my page html header
    function launchAbout() {
    about = window.open("&P2_URL.", "CAT", "&P2_WINDOW_PREFS.");
    return false;
    I then have a html region with the source as:
    A HREF="&P2_URL." onClick="return launchAbout()" <img src=/i/ocpa/open_app.jpg></A>
    When I click on open app, the first time the app will open in a new window, but the second time it will just change the already open window to the new app. If I create new function then the new function call will open in the new window, but the next time it will just refresh.
    It seems like this function only opens a new window the first time it is called. Does anyone have any ideas how to open a new window every time?
    Edited by: user531645 on Sep 24, 2009 7:33 AM
    Edited by: user531645 on Sep 24, 2009 7:38 AM

    I was able to fix my problem. I had to change the java script to this:
    function launchAbout() {
    about = window.open("&P2_URL.", "_blank", "&P2_WINDOW_PREFS.");
    return false;
    }

  • Javascript Issues with 'javascript:window.open'

    Hi guys,
    Really hoping someone can help out here. To set the scene I have detailed a similar example from the OEHR Schema based on the EMP table.
    I have a page defined with a classic report with all the contents of the EMP table, for example :
    HIREDATE | SAL | COMM | DEPTNO | MGR | JOB | ENAME | EMPNO |
    I have edited the column EMPNO report attribute so i can create a link from the EMPNO column, in the Column Link section i have defined the following attributes :
    Link Text : #EMPNO#
    Target : URL
    URL : javascript:window.open('f?p=&APP_ID.:28:&SESSION.::NO::P28_EMPNO:#EMPNO#');
    So in the URL i call the javascript function to open a new window, passing the Application ID, Page 28, Session ID and a parameter for the EMPNO.
    So far this all works fine, the new page opens which is also defined with a report region, however this time i pass the parameter item P28_EMPNO into the SQL to return just that row. I understand that from a security stand point this is probably bad practise however, at the moment this appears to be the only way i've managed to figure out how to create a pop up window passing parameters.
    The problem though is the original APEX page must be doing some sort of branch when the EMPNO link is passed, as the page refreshes with the following :
    The actual URL used is : javascript:window.open('f?p=101:28:2506768909457997::NO::P28_EMPNO:7369');
    and the page just displays : [object Window]
    Hope this makes sense.
    Thanks in advance

    Report your problem to Apple here: http://www.apple.com/feedback/ipad.html

  • Unable to open a seperate java console window with javascript:window.open()

    Hi All,
    I am opening a new window using javascript:window.open() function by clicking an hyperlink in a html document. In this new windows I am trying to load an applet. Only for the first time a java console window is displayed in windows system tray . How can I open a different java console window each time I open a new window ? Basically I want to run each applet in its own JVM and it seems that each applet loaded in new window is using the same JVM and hence only one java console window is seen in my system tray.
    Please help ...
    Thanks & Regards,
    Ravi.

    Hi,
    We are currently facing this exact issue. Did you ever find a resolution?
    Any input would be appreciated.
    Thanks,

  • How to return a javascript window.open object

    Hi all,
    I am calling a javascript function to create a window using the External Interface from flex. The function call works and I get a popup window, but I want to return the window.open object that I just created so that I reuse the same window again. I do not want to keep an array of window objects on the javascript side and pass an index back and forth. There will be multiple popup windows that needs to be written to.Right now the return value from the External Interface call is undefined.
    Thanks for any help here.
    Jerry

    Hmmm sound like somthing has gon wrong
    if it dont even work local you may have don somthing wrong when instaling the action ??
    is the action corectly placed in (GoLive Application Folder) / Modules / JScripts / Actions / ???
    What version of GL are you using ??
    Nate's FAQ on golive action:
    http://www.mindpalette.com/actions/faq.php#Anchor-47857
    "3. Why don't my third-party actions work in GoLive CS2?
    Because of a bug in GoLive CS2, the JavaScript code from some third-party actions is not automatically added to GoLive's external script library when first used (usually GeneratedItems/CSScriptLib.js at the top level of your GoLive site). To fix, open your GoLive site window and right click on the GeneratedItems/CSScriptLib.js file and choose Update > Flatten Script Library from the contextual menu.
    This will force GoLive to update the script library to include all used action code. Re-upload the file to your server and the action should be working again. You may need to clear your browser cache to force the new file to load if you've recently visited the page"
    Mayby others have had problem with his action to Try see his forum:
    http://www.mindpalette.com/forum/index.php
    you may also try this:
    1 Open the action as if its a normal document
    2 make a small change
    3 save
    4 change back /remove the change
    5 save
    6 restart golive

Maybe you are looking for

  • Getting an error at the time of running a DC

    hi, I imported a DC project which is running perfectly on another PC,and rebuild that  project and deployed when iam running that application in the portal iam getting that following error java.lang.UnsupportedClassVersionError: com/sap/campaigncreat

  • Upgrade only Java stack to Ehp1  (SAPehpi)

    Hi Gurus, We are currently on PI 7.1,   and is considering to upgrade to Ehp1 (primarily for IDoc packaging feature) and since the IDoc packaging feature is delivered thru a Sender IDoc adapter, which means this seats on the Adapter Engine already (J

  • I can't get iTunes to open from the desktop

    I am using iTunes 7.0.2.16 and the only way I can get it to open is through foxy tunes in my Firefox browser. I would delete it and reinstall it but I have a lot of carefully maintained playlists and I am afraid I will have to redo all of them if I d

  • Problem on saving Pages file in PDF format

    I am using Pages on iCloud. When I add a picture and put a frame on it it looks nice but when I save this file in PDF format something happens with the picture frame. It is missing 2 borders from the frame. Is there a way to fix it?

  • How to connect I pad 2 to skype and use the video talk ?

    can I connect I pad 2 to Skype;if yes kindly guide me how? Thanks