Apex JavaScript file Handling

Hi,
I am trying to use oracle apex to edit an excel file in some specific columns. For that I am using JavaScript with pl/sql.
I've tried it in apex.oracle.com, and worked. But know I want to do it in my database and the same code doesn't work.
Do I need to do any kind of configuration in my apex in order to do it?
Thanks.
Regards,
António

Hi,
The code I am using is the following:
BEGIN
     IF NOT c_menu1%ISOPEN THEN
OPEN c_menu1(:p4_file_id);
     END IF;
     LOOP
          FETCH c_menu1 INTO l_menu1_rec;
          EXIT WHEN c_menu1%NOTFOUND;
     HTP.p ('<script type="text/javascript">');
     HTP.p ('var Excel, Book;');
     HTP.p ('Excel = new ActiveXObject("Excel.Application");');
     HTP.p ('Book = Excel.Workbooks.Open("C:/TEMP/AB.xls");');
     HTP.p ('Excel.Visible = false;');
     /**************************************MENU 1**************************************/
     HTP.p ('Book.ActiveSheet.Cells(10,4).Value = "'||l_menu1_rec.code ||'"');
     --HTP.p ('Book.ActiveSheet.Cells(15,6).Value = "'||l_menu1_rec.mg ||'"');     
     /***********************************END of MENU 1**********************************/
     HTP.p ('Book.SaveAs("G:/TEMP/MyExcel.xls")');
     HTP.p ('Excel.Quit()');
HTP.p ('</script>');
     END LOOP;
CLOSE c_menu1;
EXCEPTION
WHEN OTHERS
THEN
err_num := SQLCODE;
err_msg := err_num || ' - ' || SUBSTR (SQLERRM, 1, 900);
INSERT INTO tb_errors
(app, page, error, last_updated_date
VALUES ('AA', :app_page_id, err_msg, SYSDATE
END;

Similar Messages

  • How Do RoboHelp 9 WebHelp Generated Files Handle Map IDs and Aliases?

    The text below was written by our team's developer/architect. I am the help author who uses RoboHelp to write content and generate the help files, but I am clueless how it all gets generated and is deployed. Please help. We use RoboHelp 9. I use it in Windows XP and our app and help run on IE 7, 9, and Firefox (multiple versions).
    "Our application uses the numeric identifiers associated with the Map ID. For example, to get to the <appname>_home_page.htm file, we use the number 1053. <appname> = pecs, in this example.
    All of this is used in a call to a RoboHelp method defined in the RoboHelp_CSH.js file. The mehtod we are calling is the RH_ShowHelp() JavaScript method and the code to perform the call, when you click on Page Help, is this:
    RH_ShowHelp(0, ''/pecsHelp/index.htm>pecsHelp',HH_HELP_CONTEXT,topic);
    Topic is translated to the Map ID number for the page help. HH_HELP_CONTEXT is defined in the RoboHelp_CSH.js file. This method translates into a URL and from what I have seen, the URL that gets generated is this:
    http://{server}[:port]/pecsHelp/index.htm/{server}[:port]/pecsHelp/index.htm#<id=1053>>pecsHelp
    Server and port get replaced with the appropriate values. I have no clue how id=1053 is supposed to get translated to mean "pecs_home_page.htm". If you check the PECS_help.h file, you will see the following entry:
    #define PECS_Home_Page1 1053
    Then in the RoboHelp alias file (PECS 3.0.ali), the following line is in the file:
    <alias name="PECS_Home_Page1" link="pecs_home_page.htm"> </alias>
    But both of these files are used during the WebHelp generation process and I don't know how the WebHelp generated files handle the Map ID and aliases."

    You need to assign the numbers you find in the pecs_help.h file to topics in your help. You do this in Context Sensitive Help > Map Files > All Map IDs. (From RH7, but I assume the location is similar in RH9.) This creates the entries in the .ali file.
    Peter Grainge suggests a couple of sites to read for a greater understanding here:
    http://www.grainge.org/pages/authoring/calling_webhelp/using_map_ids.htm
    (Although the second  site is based on RH X5, the basic concepts and procedures should be very similar. )
    HTH,
    Amber

  • Deployed application does not contain javascript files

    Hello,
    I am a unexperienced user of the BPM Studio. When I start my application in Oracle BPM my application does not contain the javascript files. It is quite weird, because the path to the .js files is proper - the application works on other computers. I have observed several weird things:
    - when I lookup the application in Firebug, when I try to lookup the source of the .js files, firebug console presents something like this (i deleted most of the html so that it is easy to read):
    <html><head><title>Apache Tomcat/5.5.15 - Error report</title>
    <body>HTTP Status 404 - /workspace//webRoot/webResources/js/jquery-1.4.2.min.js
    Status report message /workspace//webRoot/webResources/js/jquery-1.4.2.min.js
    The requested resource (/workspace//webRoot/webResources/js/jquery-1.4.2.min.js) is not available.
    <h3>Apache Tomcat/5.5.15</h3></body></html>- as i said - the application works just fine on other computers, without having to edit the path to the .js files
    - the application doesn't deploy the application (at least I think it does not) in the OraBPMStudioHome - the application is in the following folder:
    C:\Users\<username>\AppData\Local\VirtualStore\Program Files\OraBPMStudioHome\webapps\workspace\webRoot
    I am using OracleBPM Studio 10gR3, my system is Windows 7 Proffessional 64bit. Could the fact, that my system is 64 bit, cause the error?
    I haven't changed anything in the web.xml, workspace.properties files.
    It looks as if the server didn't include my js files. What may be causing this? I tried to locate the folder where the Tomcat Server deployes the application, and copying the js files where they should be manually, but that didn't work out well - the web application still does not see them.
    By the way, the double // slashes in the path to the .js file are fine on other computers, but is that proper?
    My application uses other scripts, not only jQuery, so changing the link to the jQuery file, won't work.
    I'd be very happy for any solution, thanks in advance!
    Chris Mejka
    Edited by: 789731 on 2010-08-20 01:20

    Nope, that's not the case; all the imports are handled by the <fuego:webResources /> tag, like this:
    <script type="text/javascript" src="<fuego:webResources relativePath='js/jquery-1.4.2.min.js'/>"></script>If that helps, the folder structure, with the .js files is as follows: ../webRoot/webResources/js/ ....
    As I said before - none of my colleagues, who use this application, has this problem, the application runs fine on other computers. The only (or at least that's what I think) difference, is that I use a 64 bit OS... Maybe that's the problem? Or maybe something is wrong in one of my BPM configuration files?
    Edited by: 789731 on 2010-08-20 02:29
    Edited by: 789731 on 2010-08-20 04:42

  • Weird Timing Issue with Custom Javascript Files

    I have attached a static javascript file to my application using the Shared Components...Static Files facility in APEX. This is working. I can call methods in my JavaScript file and they work as expected.
    The issue is that if I ever want to have JavaScript run when the page is loaded, it is as if the javascript is not in place yet when the method is called. For example, I want to set some some style characteristics of a few common fields that occur on more than one page, if I add a button to the page that I click to call the method (and don't select "Fire on Page Load"), this works fine. However, if I do select "Fire on Page Load", the javascript is invalid.
    I have tried After Refresh of the region which seems like it would work but, this event fires before* the javascript is available.
    How can I load the page, including the javascript reference, and then call the javascript method?
    -Joe
    Edited by: Joe Upshaw on Apr 3, 2012 12:49 PM

    WR,
    I think the latter, adding it to the template, sounds like the better solution. (I am using Application Express 4.1.1.00.23 BTW).
    Now for the newbie questions...
    I am trying to figure out exactly where to make this change. So, I had a couple of questions.
    1. I went into Shared Components>Templates. Then, I scrolled down to the section labelled Page. I see that the default checkmark is beside "No Tabs - Right Sidebar" so, I click this and I do indeed find a <HEAD> section defined. Is this where I need to add the reference to the javascript file?
    2. I assume I need to upload the static file to the server. Right now, I have uploaded it via the Shared Components>Static Files selection. When I add it now, I am doing this:
    var headElement = document.getElementsByTagName("head")[0];
    var currentCommonRiskPos = currentHeadHTML.indexOf( 'commonRisk.js', 0 );
    if ( currentCommonRiskPos == -1 )
       var jsRiskCommon = document.createElement( 'script' );
       jsRiskCommon.id = 'commonRisk.js';
       jsRiskCommon.setAttribute( "type","text/javascript" );
       jsRiskCommon.setAttribute("src", "#APP_IMAGES#commonRisk.js" );
       headElement.appendChild(jsRiskCommon);
    }See how I used "#APP_IMAGES#"? I am assuming that this would not work from the page template, correct? For example, in the template currently, I see:
    <script src="#IMAGE_PREFIX#themes/theme_24/js/4_1.js"></script>I am assuimng that I should upload my JS file somewhere in the images folder and reference it in the same way, right? For example:
    <script src="#IMAGE_PREFIX#JoesStuff/js/HellowWorld.js"></script>Does all of this sound correct?
    Thanks,
    -Joe

  • Source code organization: How to divide large JavaScript files into several smaller JavaScript files?

    Hello,
    some of my JavaScripts have become considerably large over time. What I would like to do is to split a single (large) JavaScript source file into several smaller source files plus an additional JavaScript file containing code or directives to recombine the split files.
    In other words, I would like to organize my JavaScript source code into re-usable modules.
    Although I searched the Acrobat JavaScript developer documentation and did a lot of Web searching, I still have no idea...
    whether the Acrobat JavaScript scripting environment itself does provide a code structuring mechanism
    how to properly organize large Acrobat JavaScripts in general.
    Any help would be greatly appreciated! Thanks a lot in advance!
    Sebastian

    Document-level scripts are not accessible to other documents/scripts, so they're not a good option.
    Folder-level scripts, on the other hand, are accessible to all other documents/scripts. So if you have a general function that creates a 3D annotation, for example, you can place it in a folder-level script and then call it from other scripts (you will probably need to provide it a handle for the document and properties of the annotation).
    One thing to be aware of, though, is that the folder-level scripts are loaded alphabetically, so don't put a reference in script aaa.js to something that loads in zzz.js, or you will get an error message when you open Acrobat. (this is not a problem if zzz.js is not called during the launch of Acrobat)

  • Call a javascript function (in ASPX) page from a javascript file

    I have a javascript file (viewer.js) situated in Scripts/viewer.js My
    default.aspx has a javascript functions that calls a c# function in the
    default.aspx.cs ( it sends a http webrequest)
    Now I want to call from the viewer.js the function in default.aspx which calls the c# function.
    How can I handle this in my viewer.js?
    I need to do this because I work with 3D objects and the select event is on the viewer.js
    When I select the 3D object it needs to call the function in default.aspx...
    Scripts/viewer.js
    function ClickPickItem(item) {
    $("#properties").show();
    /*Call function App() */
    Default.aspx
    function App() {
    PageMethods.Connect(callback);
    Default.aspx.cs
    [WebMethod]
    public static string Connect()
    string rsp = DigestAuthFixer.GrabResponse("http://<username>:<password>@nextbus.mxdata.co.uk/nextbuses/1.0/1");
    ... CODE TO MAKE HTTPWEBREQUEST}
    Sorry if I'm not clear enough
    I don't see another option like this
    What I need to do?
    Thanks!

    If my understanding is not wrong, you are trying to call a Javascript function in a separate script block from a linked Javascript page. rite?
    When it comes to Javascript, all scripts will be posted to the client side browser and we can access any method between pages provided those JS files are linked to the page.
    So you can directly call
    App()
    function from your
    ClickPickItem()
    function.
    Please try and let us know your result.

  • Embedding javascript files

    I need to embed a Javascript file in the body of all my Apex pages, in the form
    <body>
    <script type="text/javascript" src="myscriptfile.js"></script>
    </body>This is easy to do with a bog standard HTML page but I'm not sure how to do it in APEX. So I have 2 questions -
    1. What would be the best way to accomplish this? I was thinking along the lines of embedding this HTML in my application template (obviously without the BODY tags). Is this the best way to go?
    2. Where on my server/PC do I save the myscriptfile.js file so it gets picked up by all my APEX pages?
    Cheers
    Antilles

    This will depend on where you store your javascript file:
    1. if you store it in the apex image directory (/i/) you can put it in the page template header (do it for all page templates):
    &lt;script src="#IMAGE_PREFIX#your_javascript_files/javascript_file.js"  type="text/javascript">&lt;/script>2. if you upload the file into your workspace and do not associate it to an application you could put this into the page template header (do it for all page templates):
    &lt;script src="#WORKSPACE_IMAGES#javascript_file.js"  type="text/javascript">&lt;/script>or if you associate it with an applciation
    &lt;script src="#APP_IMAGES#javascript_file.js"  type="text/javascript">&lt;/script>Denes Kubicek
    http://deneskubicek.blogspot.com/
    http://www.opal-consulting.de/training
    http://apex.oracle.com/pls/otn/f?p=31517:1
    -------------------------------------------------------------------

  • Applications are logging me out when Javascript files are called

    Hey Guys,
    I am using APEX 3.1.2 and am using LDAP as my Authentication scheme for my application. SSL is also activated on the environment my applications run on.
    I can log in using the login page (page 101) and I can use my application perfectly. However I have a button called 'Main Menu' which whenever I press it logs me out and takes me back to the login page. The button runs a Javascript file which is supposed to redirect me to page 1 by passing the page number into the URL.
    However, in the other applications I manage, the same logout occurs. From what I can gather, this seems to happen whenever a javascript file is called from the app.
    I do not know what my next step should be
    Any help is much appreciated
    Thanks
    -Mark

    Oleg,
    The js file doesn't include anything that would erase the session id. All it does is it brings up a popup window asking you whether you want to go to the menu and when you click yes it just takes you back to the 1st page. The hyperlink is getting changed however so I tried passing the session id through the hyperlink so that my session wasnt erased but this didnt work and my session still disappeared.
    I was thinking of just getting rid of the js and putting a redirect straight into APEX which would do nothing to the session. Is there anything else you can suggest to stop the session getting erased with the js? as if possible i would like to keep it
    However like I said before this is not the only JS file that gets rid of my session and getting rid of all my js files would not be good for my applications as they are needed quite a bit.
    Thanks
    -Mark
    Edited by: mark.william on Feb 1, 2010 6:45 AM

  • Blog Post: Working on Local JavaScript Files

    Working on Local JavaScript Files. The example in this post is including a JavaScript file that I'm editing on my local desktop in an app on apex.oracle.com.
    Thanks,
    Tyler

    Your three javascript files are not found at the location you have in the code -
    <script src="js/clearbox/config/default/cb_config.js" type="text/javascript">
    <script src="js/clearbox/language/en/cb_language.js" type="text/javascript">
    <script src="js/clearbox/core/cb_core.js" type="text/javascript">
    In addition, the clear box CSS is not found, either.
    <link href="js/clearbox/config/default/cb_style.css" type="text/css" rel="stylesheet">
    Did you upload them?
    In addition, I'm still seeing validation errors on the page -
    [Invalid] Markup Validation of http://www.underhillandsharp.com/test/gallery.php - W3C Markup Validator

  • How to write an JavaScript Event Handler for Portal Form?

    I have created an form in Portal builder.
    There are two column, R04 and R05.
    I need to use Javascript Event Handler to check if R04 value is smaller than R05 value.
    Can I be able to build up this function?
    Can anyone give me a hint? or steps?
    Thanks

    Here are some suggestions.
    1. do what we did, and write your own protocol server that understands whatever custom commands you need, and then write a custom thin client which will send commands to and receive responses from this protocol server. you can use any language for the client software. the protocol server should be written in java so that it can receive commands from the client and then use the 9iFS API to execute the requests or retrieve the data that the client wants to display.
    2. write a custom fat client, in java, that accesses the 9iFS API directly. this means that each client will be accessing the iFS schema on the database machine directly. if you configure the iFS service on the client to use the THIN driver, then you won't need to install the Oracle client software on the client machine. You'll just need all the iFS .jar files and the database's JDBC driver (classes12.zip). Note that using the THIN driver is not supported because of bugs and performance problems. If you use the OCI8 driver, which is supported, then you'll have to install the whole Oracle client software package on the client machine.
    3. write a thin client that uses the WebDAV protocol, and communicate with our built-in DAV server. this approach will allow you to execute any command that DAV understands. you may be able to find some free HTTP or DAV client software on the net, or you can try writing it yourself. this is probably a better solution than number 1 unless you really need to send custom commands that are not in our DAV server's vocabulary.

  • Can't delete file after renaming due to Word file handle still present. Error staes document is still in use but it's really not. Worked fine in 2007 but not in 2010.

    I have some code associated with a Word Template. The template is opened, filled out and saved via a routing in vba. This all works fine in older 2007 version (which is version it was originally created in). Once this file is saved, the user can change the
    date in a text box and re-save document. The code saves using the new date for part of new file name and then deletes that older file from the server. It fails at the delete function because the newer version of word is not dropping the file handle from the
    first named file when user saves it to the new filename. In older version (2007) this handle was released as soon as file was saved to a different name. I can't seem to figure out how to release the old document filename so the old document file can be deleted.
    I hope I explained this well enough.
    Here's the code that woeked in version 2007 but fails in version 2010.
    Option Explicit
    Dim CAPEX01 As MSForms.ComboBox
    Dim CAPEX02 As MSForms.ComboBox
    Dim LocalPath As String
    Dim NetPath As String
    Dim OldPath As String
    Dim OldPathNet As String
    Dim DocName01 As String
    Dim DocName02 As String
    Dim DocName03 As String
    Dim DocName04 As String
    Dim DocName As String
    Dim DocNameold As String
    Dim TestDocName As String
    Dim filesys
    Dim newfolder
    Sub AutoOpen()
    ActiveDocument.ActiveWindow.View.Type = wdPrintView
    TestDocName = ActiveDocument.TextBox2
    OldPathNet = "\\yourPath\" & TestDocName & "\"
    End Sub
    Sub AutoNew()
    TestDocName = ActiveDocument.TextBox2
    OldPathNet = "\\yourPath\" & TestDocName & "\"
     ComboBox1.Locked = False
     ComboBox1.Enabled = True
     FillList1
     FillList2
     End Sub
    Sub DeleteOldDoc()
    OldPathNet = "\\yourPath\" & TestDocName ' & "\"
    DocNameold = OldPathNet & TestDocName & "-" & DocName02 & "-" & DocName03 & "-" & DocName04 & ".doc"
        If Not TestDocName = DocName01 Then
            Set filesys = CreateObject("Scripting.FileSystemObject")
        If filesys.FileExists(DocNameold) Then
            filesys.DeleteFile (DocNameold), True      
     'I get file permission error here
        End If
        End If
    If DocName01 <> "" Then
    If Not TestDocName = DocName01 Then
    If Not TestDocName = "" Then
        MsgBox "Project Proposal Has Been Moved From Year " & TestDocName & " To " & DocName01 & ""
    End If
    End If
    End If
    TestDocName = DocName01
    End Sub
    '''''''Document path functions''''''
    Sub chkpath()
    Set filesys = CreateObject("Scripting.FileSystemObject")
    If Not filesys.FolderExists("\\yourPath\") Then
       newfolder = filesys.CreateFolder("\\yourPath\")
    End If
    If Not filesys.FolderExists("\\yourPath\" & DocName01 & "\") Then
        newfolder = filesys.CreateFolder("\\yourPath\" & DocName01 & "\")
    End If
    End Sub
    ''''''Save Function''''''
    Private Sub CommandButton1_Click()
    DocName01 = ActiveDocument.TextBox2
    DocName02 = ActiveDocument.TextBox4
    DocName03 = ActiveDocument.TextBox1
    DocName04 = ActiveDocument.ComboBox1.Value
    chkpath
    NetPath = "\\yourPath\" & DocName01 & "\"
    DocName = NetPath & DocName01 & "-" & DocName02 & "-" & DocName03 & "-" & DocName04
    ActiveDocument.SaveAs2 FileName:=DocName, FileFormat:=wdFormatDocument
     ComboBox1.Locked = True
     ComboBox1.Enabled = False
     ComboBox2.Locked = True
     ComboBox2.Enabled = False
     TextBox1.Locked = True
     TextBox1.Enabled = False
     TextBox3.Locked = True
     TextBox3.Enabled = False
     TextBox4.Locked = True
     TextBox4.Enabled = False
     DeleteOldDoc
    End Sub
    Sub FillList1()
    Set CAPEX02 = ActiveDocument.ComboBox2
      With CAPEX02
          .AddItem "CASTING", 0
          .AddItem "HOT ROLLING", 1
          .AddItem "COLD ROLLING", 2
          .AddItem "FINISHING", 3
          .AddItem "PLANT GENERAL", 4
          .AddItem "MOBILE EQUIPMENT", 5
      End With
    End Sub
     Sub FillList2()
     Set CAPEX01 = ActiveDocument.ComboBox1
      With CAPEX01
          .AddItem "A Name", 0
          .AddItem "Another Name", 1
      End With
    End Sub
    Private Sub CommandButton2_Click()
        UserForm1.Show
    End Sub

    mogulman52 and Don,
    I went back and looked at my code and had already updated it to SaveAs in the new docx format. It still holds the lock handle in place until Word closes, unlike earlier versions which released the lock handle when you did a SaveAs.
    As a note, all my Word and Excel macro-enabled (dotm & xltm) templates are read only and are never filled in, prompting the user for a file name on any close event or if they run the code gets auto-named. I do the SaveAs and concatenate the file name
    from data on the document (or sheet) that has been filled in. During the SaveAs the docx gets saved to a network folder and also on a local folder. The lock gets renamed to the filename and remains until Word is closed.
    So my code still fails at the point noted below while trying to delete an old filename version after the file has been saved as a new filename in a new folder. So....
    The code is looking in the last folder where the docx file was saved for the older filename so it can be deleted. The newest docx version has already been saved in a different folder and has a new lock handle of its own. That lock is not my problem, it's
    the older file lock which really exists in the same folder as the first filename that the docx was saved to. It does not release that lock until I exit Word. My work around has been to instruct all users to manually delete the older version file.
    The other odd thing is this only happens when I run it from code, if you manually go through these steps with the SaveAs menu drop-downs in Word it will release the lock handle???
    Hope this isn't to confusing and thanks for all your suggestions and help.
    Sub DeleteOldDoc()
    OldPathNet = "\\yourPath\" & TestDocName ' & "\"
    DocNameold = OldPathNet & TestDocName & "-" & DocName02 & "-" & DocName03 & "-" & DocName04 & ".doc"
    If Not TestDocName = DocName01 Then
    Set filesys = CreateObject("Scripting.FileSystemObject")
    If filesys.FileExists(DocNameold) Then
    filesys.DeleteFile (DocNameold), True 'I get file permission error here- lock handle is still present from last SaveAs command in last folder where previous version of file was saved.
    End If
    End If
    If DocName01 <> "" Then
    If Not TestDocName = DocName01 Then
    If Not TestDocName = "" Then
    MsgBox "Project Proposal Has Been Moved From Year " & TestDocName & " To " & DocName01 & ""
    End If
    End If
    End If
    TestDocName = DocName01
    End Sub
    Glenn

  • "Error: the xajax Javascript file could not be included. Perhaps the URL is incorrect? URL: /includes/javascript/xajax_js/xajax.js". other posters with a xajax error on this board got the response to go look for developer resources. (i'm not a developer)

    I'm on a mac running 10.6.8, was using Firefox 6.02 when the problem started, i performed a clean install of 7.01, installed the latest Flashplayer, and reinstalled java (the 10.6.5 update file from apple's site).
    I seem able to load video at youtube.com, and was able to load web-based irc chatrooms at ircchat.tv. however, at jamplay.com a paid member site, all of the lessons are flash video, and there's a live video feed chat room that is also flash based, and I am not able to view this content. the video content pops up the error message "Error: the xajax Javascript file could not be included. Perhaps the URL is incorrect?
    URL: /includes/javascript/xajax_js/xajax.js" and the clicking on the "launch chatroom" button does exactly nothing.
    I have contacted the jamplay site team but their recommendations are the steps I have already taken, mentioned above, that did not resolve the issue.
    some links to content on their site visible without being a member:
    http://www.jamplay.com/
    this one has a flash interface that, if things were working, would have a video in the center and members and staff talking abouth that area of the site when you click on one of the title buttons. Now that I am having this problem, nothing is clickable and there's no indication that there should be a video in the center. The error message regarding xajax does not come up at all.
    http://www.jamplay.com/guitar-lessons/beginners/1/527-16-circle-of-fifths
    same thing. video content is missing, xajax error does not appear.
    http://www.jamplay.com/live
    when I load these all content except the video loads on the page. this page does not give me the error at all, just does not load the video
    I can't seem to recreate the actual error without being logged in as a member of the site.
    The apple support team gave me a one-time free suppport ticket to troubleshoot an ethernet issue I was having. Unfortunately, the databases I removed were not deemed either by apple or me to be noteworthy or necessary to retain (all of them were for software I not longer have or use). I don't know which plist file might have been the one I need now. I did reinstall the java and flash items. The only other item that I think it might be is a set of belkin router software that I uninstalled because i'm not using any belkin hardware anymore.
    If someone has any kind of idea I would be most appreciative.

    That's a comment in the file. It has no effect at all.

  • Javascript file - open BI Publisher report

    Good afternoon.
    I'm not sure if this is even possible but hopefully one of you experts out there will be able to advise;
    I had some javascript in my page which contained a simple function to open a BI Publisher report, it was:
    function run_40BFG()
    popupURL('&BI_URL.Guest/MyFolder/MM_40BFG/MM_40BFG.xdo?_xpf=&_xpt=1&P_CASE_ID=&P303_CASE_ID.&xt=MM_40BFG_xf=rtf');
    ...this worked fine. To improve maintainability (I don't want to amend the Page Header each time I add a report), I wanted to extract this function and place it in a javascript file which I have done with 'some' success.
    Page Template amended - OK
    Page Header global variables added - OK (tested with simple 'alert' function and all was fine)
    Now the function in the javascript file looks like:
    function run_40BFG()
    popupURL('gBIurl.Guest/MyFolder/MM_40BFG/MM_40BFG.xdo?_xpf=&_xpt=1&P_CASE_ID=gCaseID.&xt=MM_40BFG_xf=rtf');
    ...but each time I receive a 500 Internal Server Error.
    Is it at all possible to run a BIP report from an external javascript file? If not, is there another way?
    If it is possible, what am I doing wrong?
    Thanks in advance!
    Sue

    ...just wanted to bump this up the thread list in the hope that someone will be able to help!
    Thanks

  • Error in creating IO file handles for job (number 3152513)

    Hi All -
    I am using Tidal 5.3.1.307. And the Windows agent that is running these jobs is at 3.0.2.05.
    Basically the error in the subject was received when starting a particular job once it was cancelled and a couple of other different jobs a few days before. These jobs have run successfully in the past.
    This particular job was running for 500+ minutes when it should run at an estimated 40 minutes. At that time it would not allow for a re-start of the job, it just stayed in a launched status.
    Trying to figure out what causes this error.
    Error in creating IO file handles for job 3152513
    Note - from that being said we were to see 2 instances of this process running at the same time, we noticed some blocking on the DB side of things.
    Trying to figure out if this is a known tidal issue or a coding issue or both.
    Another side note, after cancelling the 2nd rerun attempt the following error was encountered: Error activating job, Duplicate.
    When we did receive the Error creating IO file, the job did actually restart, but Tidal actually lost hooks into it and the query was still running as an orphan on the db server.
    Thanks All!

    The server to reboot is the agent server.  You can try stopping the agent and then manually deleting the file.  That may work.  When the agent is running the agent process may keep the file locked, so rebooting may not be sufficient.
    The numerical folders are found as sub-directories off of the services directory I mentioned.  I think the numbers correspond to the job type, so one number corresponds to standard jobs, another to FTP jobs.  I'd just look in the numbered directories until you find a filename matching the job number.
    The extensions don't really matter since you will want to delete all files that match your job number.  There should only be one or two files that you need to delete and they should all be in the same numbered sub-directory.
    As to the root cause of the problem, I can't really say since it doesn't happen very often.  My recollection is that it is either caused by a job blowing up spectacularly (e.g. a memory leak in the program being launched by Tidal) or someone doing something atypical with the client.

  • Problem with „Empty-File Handling" in PI 7.11

    Hi,
    Iu2019m working in PI 7.11 with file adapter, Sender CC, option: Empty-File Handling: Process Empty Files.
    What I want to do is giving target file the system-date, if the source file is empty.
    But I always get a mapping error in RTWB: Premature end of file.
    It seems that the payload is empty.
    Any idea?
    Thanks a lot in advance!
    Rene Dong
    Edited by: Rene Dong on Aug 31, 2010 4:20 PM

    What I want to do is giving target file the system-date, if the source file is empty.
    The error you are getting makes sense. You should do a check in the mapping, if the payload is empty then use brute force to pass the system date.

Maybe you are looking for

  • Can I directly upgrade from Leopard to Lion?

    Or should I first upgrade to Snow Leopard?

  • Display a Help message

    I'm using LiveCycle Designer ES4 and would like to show a help message for a one page form without adding another page. Presently, I'm using FormCalc's messageBox to show a 4 paragraph help message. The message looks boring with "warning JavaScript"

  • Variable for section number

    I know there is a variable for chapter number and figure number. Is there a variable for section number? I am in a situation with several chapters in one document - and I am not allowed to separate them into separate chapters or use the book panel. A

  • Is it possible to change the owner of a Window?

    If I created a Window instance with another window as its owner, is it possible I change the owner? Thanks

  • Problem connecting from Deploy tool to WAS

    Hi, We are trying to deploy an .ear file using deploy tool <j2ee Engine/deploying/deploytoll.bat>. But unable to connect to WAS though we gave the user, password and the port that J2EE engine is running (50100). Here is the error message we got:  RRO