Using JS file with APEX

Hi,
I can't seem to be able to successfully link a JS file to an APEX template or page. I have followed the directions but but have had no luck. I have uploaded the JS file through "Shared Components>Static Files>Create" and have added "<script src=”#APP_IMAGES#custom.js” type=”text/javascript”></script>" to the HTML Header. I have also tried #WORKSPACE_IMAGES#, and #IMAGE_PREFIX# in place of #APP_IMAGES and still no luck. I have even tried a direct path " <script src="http://myserver.myport/my_images/custom.js"
type="text/javascript"></script> " but this did not even work. The only thing that does work is to put the JavaScript directly into the Header of the page.
Please suggest what else I could try.
Thanks
Linda

Hi again,
Finally solved this problem!!
What was happened (in my case):
- We had 4 different applications, all having their own copy of the Javascript having the same file name.
- Apex Builder failed to manage them separately (see other thread).
- Removed all copies and uploaded a global workspace version.
- Only the last application that had removed its own copy now worked with the global version??
- Joel's test (see above) pointed out some access problems: 'Access Denied'
- Removed the Javascript form Static Files (no files left).
- Uploaded the Javascript under Cascading Style Sheets.
- Still got 'Access Denied' in test.
- Replaced the Javascript using a different file name.
- OK, that worked.
- Moved the Javascript back to the Static Files
- OK, it keeps working.
- Replaced the Javascript using its original file name.
- OK, it now works as it expected to work in the initial set up?!?!
So it seems that Apex Builder has problems in its administration when maintaining metadata and content of Static Files.
The file should be completely removed, before you can reintroduce it with different metadata.
NOTE: some problems do NOT occur when applications are run in Apex Builder!
Hope this can be reproduced by the Apex team for fixing it.
Regards,
Martijn

Similar Messages

  • Using ditaval files with XML Author

    I've been evaluating XML Author and am trying to determine how to use ditaval files with it. If I want to save a ditamap as a book for PDF creation, the Prompt for DitaVal File check box is greyed out. Does anyone know why this might be the case? Is the use of ditavals limited to a full implementation of FrameMaker?
    I tried adding PromptForDitaval=1 to the [General] section of the ditafm.ini file to no avail.

    Make sure you are using the latest hotfix for Director (11.5.8) - it is the first to support AS# in Flash. Your SWF members will probably need to be linked to their external files instead of fully imported.
    Or perhaps you're saying that you've met both these conditions and are still seeing problems?

  • Using *.so files with eclipse

    Hey there
    I'm having a little problem compiling an application which uses *.so files with eclipse:
    If I run eclipse from the directory in which the *.so files are present, the application will run.
    However, if I run eclipse from any other directory , the applicationwon't run, stating that the *.so were not found.
    I've placed the path to the directory on my $PATH , and tried to add the following line to the VM variables in the RUN menu:
    -Djava.class.path=<directory _name>
    but to no avail..
    Any ideas?
    Thank You!
    Message was edited by:
    Yossale

    I added it to the LD path, but nothing changed.
    How can I check if eclispe picked up the change?First check that you can now run your program from any directory and then worry about Eclipse.
    Where did you setup the LD_LIBRARY_PATH?

  • Using Word files with audio on a PC

    I was wondering if it were possible for one to use Word files with recorded audio from a Mac on a PC? I'm not sure if it is possible at all, but if somebody knows how to extract the audio, it would be a great help. I used Word 2008 for the Word files.
    Thanks

    If you don't get an answer here, try the forums devoted entirely to the problems of MS apps:
    http://answers.microsoft.com/en-us/mac/forum/macword

  • How to use .keystore file with BEAweb 6?? Help

    Hi,
    Is there a way to use .keystore file with BEA Weblogic 6 or 6.1 ?
    I used keytool to create private key and public key..
    I do not know how to tell weblogic 6 to use it....
    Can this be done through the GUI or do I have to add something to the .xml
    config file for the site?
    Thanks,
    Rob

    "Bobby Digi" <[email protected]> wrote:
    Hi,
    Is there a way to use .keystore file with BEA Weblogic 6 or 6.1 ?
    I used keytool to create private key and public key..
    I do not know how to tell weblogic 6 to use it....
    Can this be done through the GUI or do I have to add something to the.xml
    config file for the site?
    Thanks,
    Rob
    nope. with 7.0 you can do that.
    >
    >

  • How to use XDCAM files with Premier 4 Trial

    According to everything I have read, using XDCAM files with Premier 4 is easy. It just works. However, it doesn't with me.
    For starters, when I create a new project, there are no XDCAM presets, despite it stating there are in the various documents I have read.
    If I either try to import a file directly or copy it to the hard drive and then import it, I get:
    Error Message
    The importer reported a generic error
    Not very helpful.
    This is a trial version of Premier to try to establish if this product is any good. I did try to contact Adobe but they say they don't support trial users. Not very helpful. Since Adobe are obviously not very interested in selling their products, is there anyone else out there whop can answer this or should I just use Final Cut Pro instead (well if Adobe are not interested in helping a potential customer, what chance is there of being helpful once they have your money???)

    As far as I am concerned, editing XDCAM EX files with CS4 - I have yet to edit XDCAM (HD) files - is as easy as editing DV(CAM) material on my i7 Extreme machine with Vista Ultimate and 12 Gig of RAM.
    I am also pleased to report that the audio bug that beset CS3 when editing XDCAM EX files namely, audio cutting out randomly, is a thing of the past.
    The whole CS4 Suite (including Premiere) has been running very smoothly on my (beefy) machine.

  • "Use RAW files with external editor" greyed out for Photoshop CS2?

    I've just upgraded from iPhoto 5, and the "Use RAW files with external editor" option in the advanced preferences is greyed out when I select Photoshop CS2 as my external editor (back in the General pane).
    It works fine when Preview.app is selected. I can understand that pre-CS2 Photoshop wouldn't be available, but CS2 is capable of editing RAW images.
    Has anyone been able to get iPhoto 6 to send a RAW image to Photoshop CS2 using this preference? I've written an Applescript to do it in iPhoto 5, but I'd rather use something cleaner...
    15" PowerBook G4   Mac OS X (10.4.4)  

    Works great with Photoshop Elements, opens with Camera Raw. The issue is you can't save it so that iPhoto gets the changes.
    You have to save it and then re-import. I tried all permutations of saving it in originals and modified folders in the library. No luck. The only thing I didn't try is to save it as a jpeg over the top of the full sized one iPhoto created on import.

  • How to use "choose file with prompt" command?

    I need to use "choose file with prompt" command and I want give user possibility choose ONLY images (jpeg, png, gif). So, I write like this:
    choose file with prompt "Please, choose images for processing..." of type {"JPEG Image"}
    But this doesn't work! - All files (including jpegs) are dimmed, and user can't choose any....
    So, how can I filter JPEGs, PNGs and GIFs?

    I have found, that most of images on my computer has missing file_type, I don't know why..... so "type identifier of (info for (choose file))" also doesn't work properly.
    The only one way that 100% works is use Uniform Type Identifier (UTI) -- details here: http://www.huw.id.au/code/fileTypeIDs.html
    thanks.
    iMac G3, PowerBook G3 FW   Mac OS X (10.4.5)  

  • Is anybody use Hyper File with LabView?

    Is anybody use Hyper File with LabView?
    I Have a project that need to conect to a hyper file data base Made by PCsoft.
    Thanks
    Benoit Séguin
    Software Designer

    I have never used HyperFile, but a quick check of the company's website indicated that there are ODBC drivers available for it so it should be a simple matter connecting through ADO.
    Mike...
    Certified Professional Instructor
    Certified LabVIEW Architect
    LabVIEW Champion
    "... after all, He's not a tame lion..."
    Be thinking ahead and mark your dance card for NI Week 2015 now: TS 6139 - Object Oriented First Steps

  • How to use parameter file with java

    Is it possible to use a parameter file with Java, and is there any class/method to make it easy to call and use these parameter from a text file, other than scanning the whole text file manually as we can do normally with visual basic/c++, so we can call the program with the parameter file, like java testing c:\\testing.ini

    If I understand you correctly, you may be looking for a properties file. This is basically a text file that contains pairs of strings in the form:
    parameter1=value1
    parameter2=value2
    parameter3=value3
    ...etc.
    and the values are retrieved using the java.util.Properties class - see:
    http://java.sun.com/j2se/1.3/docs/api/java/util/Properties.html
    Sample use://Call chis method once, to load the props file.
    //props file is called "demo.properties", and is
    //in a directory that is included in the classpath
        private void loadMyProperties() throws Exception
         InputStream stream = getResourceAsStream("/demo.properties");
         if(stream == null)
             throw new Exception("stream is null!");
         demoProperties = new Properties();
         demoProperties.load(stream);
         stream.close();
    // Then you can retrieve properties in your code using:
    String param3 = demoProperties.getProperty("parameter3");
    //...etc

  • How to use PDF files with links to other PDF Files

    How to use a PDF file with links to other PDF files that have been transferred to the same folder

    Are you using a mouse, or a trackpad on a laptop? Either way, your cursor is usually an arrow, right? And presumably it's working/moving MOST of the time, otherwise you wouldn't be able to do anything?
    For example, can you move the cursor arrow to the "Annotate" tool to click on it and go into Annotate mode? If so, can you click on the text tool? If so, does the cursor change to a crosshairs? At what point can you NOT move the cursor around the screen?
    Matt

  • Automator or Applescript using png files with alpha channel

    I have hundred of png files with alpha channel.
    I want to suppress alpha channel.
    How can i do it using Automator or Applescript ?
    Thank you very much.

    You can use the free command line image processing tool ImageMagick in your Applescripts or Automator workflows, as well as from a Terminal shell.
    You can download ImageMagick from http://www.imagemagick.org, but Cactuslab has simplified installation by putting together an installer package. It’s available at  http://cactuslab.com/imagemagick/. Download the package and double-click on it. Follow the instructions to install. It will install ImageMagick into /opt/ImageMagick and add it to your $PATH by creating a file in /etc/paths.d/. Restart your computer for the changes to take effect.
    The two ImageMagick commands we’re concerned with are “convert” and “mogrify”. Convert is more efficient for multiple and piped operations on the same image file, and mogrify is more efficient for batch processing. Generally speaking, convert will output a file separate from the input file. Unless a path is specified, mogrify will overwrite the input file with the output file. An important distinction.
    You can perform various operations on the alpha channel using arguments after either the convert or mogrify command. Two of the available arguments are:
    -alpha off - Disables the image's transparency channel. Does not delete or change the existing data, just turns off the use of that data.
    -alpha remove - Composite the image over the background color.
    Also of use are the -flatten and -background options:
    -flatten - overlay all the image layers into a final image and may be used to underlay an opaque color to remove transparency from an image.
    -background - sets the background color.
    Start off using the convert command with a single image to see the effect and adjust to your liking. Once you’ve achieved the desired outcome, then use the mogrify command to batch process the chosen images.
    Before getting into how to use Automator or Applescript in your workflow, use Terminal and the command line to see the effect on a single image. Copy one image to your ~/Desktop. In Terminal change the directory to ~/Desktop by typing the following command and pressing the Enter key:
    cd ~/Desktop
    Then choose the option you are looking for, -alpha remove for instance, type the following command and press the Enter key:
    convert input-photo.png -alpha remove output-photo.png
    You can check the alpha channel (transparency) and background in the Preview app, go View > Show Image Background from the menu bar.
    Once you’re ready to batch proces, place all the photos you want to convert with the same command into one folder. Copy the folder to your ~/Desktop. Let’s assume you’ve labeled the folder “InPhotos”. It’s prudent to manipulate copies in case something goes amiss. In that event you can copy the folder with the originals again and start over. Create a new empty folder on your ~/Desktop and call it “OutPhotos”. Let’s also assume your home directory is called “Me”. The following command will process the photos from the InPhotos folder and put them in the OutPhotos folder:
    mogrify -alpha remove -path /Users/me/Desktop/OutPhotos/ /Users/me/Desktop/InPhotos/*png
    According to Apple Technical Note TN2065:
    "when you use just a command name instead of a complete path, the shell uses a list of directories (known as your PATH) to try and find the complete path to the command. For security and portability reasons, do shell script ignores the configuration files that an interactive shell would read"
    So, you need to use the full path to to ImageMagick commands, unlike in the shell where you can just use the command name.
    To batch process using Automator, use the “Run Shell Script” action (note: retain the single space at the beginning of the last line):
    /opt/ImageMagick/bin/mogrify \
    -alpha remove \
    -path /Users/Me/Desktop/OutPhotos/ \
    /Users/Me/Desktop/InPhotos/*png
    To batch process using Script Editor (Applescript), use the “do shell script” command:
    do shell script "/opt/ImageMagick/bin/mogrify -alpha remove -path /Users/pd/Desktop/OutPhotos/ /Users/pd/Desktop/InPhotos/*png"
    Further info on ImageMagick:
    http://www.imagemagick.org/script/command-line-options.php#alpha
    http://www.imagemagick.org/Usage/masking/#remove
    http://www.imagemagick.org/index.php
    http://www.imagemagick.org/script/command-line-tools.php
    http://www.imagemagick.org/script/command-line-options.php
    Examples:
    The original PNG image:
    -alpha off:
    -alpha remove:
    -background black -flatten:
    -background blue -flatten:
    -channel alpha -evaluate Divide 2:
    -channel alpha -evaluate Divide 2 -background black -flatten:

  • Using header files with call library node

    I am writing an application for Palm PDA, and I use call library node to insert some C code written in Codewarrior 9 for PalmOS.
    For some reason, when I build the program for the Palm the builder does not recognise the functions declared in my header files.
    Please help me with this problem and tell me how do I create a header file in Codewarrior so the builder can include it in the Palm application!!!

    Hello
    Can anyone help me out?  I am trying to use a chart with a Sliding Region of intrest function. 
    I would like to be able to zoom in on the RIO and have the ability to zoom back out.
    I would also like to be able to set the initial mid point setting of the RIO slider.  The original file was using the delta T (psec) control to do this.
    I have only been experiementing with this number to see what value works.  If someone could explain what is going on with that control it would help.
    I noticed that when I move the RIO slider to the left all the way the value goes negative, I am not sure if the program stops reading the value
    at zero or not.....
    When you run  the select RIO Rev 4 vi set the DATA COL to PLOT to 1 to see the correct data
    Thanks in advacne
    Tim C.
    1:30 Seconds ARRRGHHH!!!! I want my popcorn NOW! Isn't there anything faster than a microwave!
    Attachments:
    Sliding ROI Rev 4.zip ‏111 KB

  • Using SWL files with ActionScript 2

    Hi,
    Hopfully this wont get too drown out..I have a cisco DMP-4310g that can use flash files localy on the device i'm tring to find out what type of SWF files can be used. Here is a link to help... refer to the shockwave part  http://www.cisco.com/en/US/docs/video/digital_media_systems/5_x/5_2/dmd/user/guide/playlis ts.pdf
    In the document it says the device dont support ActionScript 3 only ActionScript 2. So that bring me to my next question what do I need to create the SWF files this device can play. I'm not too savy with creating the files and thought I would ask couse I'm not too sure I know what I need to create them. 
    Thanks in advance

    The info you cited answers your wondering... you can only use swf's that use Actionscript 2.  You can use any version of Flash greater than Flash MX to do that.  Prior to that version (inclusive) there was no AS2.

  • Using Mpeg2 files with FCE?

    Hi all,
    I have some mpeg 2 files that i want to load into FCE. I was told to convert the files with MPEG streamline first, by going to file, export to quicktime, choose Apple DV-Pal and then convert. Then i can import into FCE. I have done this and it works but just wondered if by doing this, do i lose quality or is it the same?? Also, MPEG streamline has an option to "export to DV..." Can i use this instead??
    Thanks,
    Dave.

    Whenever you convert anything you lose quality but in this case the loss should be minimal. That is why the ideal is to shoot everything in DV.
    Regarding the DV option in Streamclip, I think it may be "DV Stream" which is used by iMovie and can't be used by FCE until it has had further rendering.

Maybe you are looking for

  • IPhone 6 video too dark (much darker than iPhone 5 video)

    Anyone else noticed this?? Also manual exposure control doesn't work for me when in video mode, when i move those on screen controls nothing changes whereas when i move them in photo mode pictures become either brighter or darker.

  • Movement Type & Excise Register

    Hi Experts ! Is there any configuration between movement type & Excise Register, where do we define Excise Register's receipt / issue indicator for movement type I want to define movement type 161 in RG23A Part I Issue side, at present with the exist

  • Accessing pixels of an image

    is it possible to access the byte[] imageData of an javax.microedition.lcdui.Image Object? If not, what can i do to get the imageData of an image in PNG-Format?

  • 2.1 EA1 - Auto Group By inserted when unwanted/expected

    I haven't tried recreating this with something a little more generic, but the following statement is incorrectly/unexpectedly adding a group by clause: SELECT Gmt_time_stamp, Scd_asof_date , submode_type_id , SELECT(NVL(MIN(d2.gmt_time_stamp),d1.mis_

  • Vendor-independent way to configure a DataSource

    Does anyone have advice on a app-server independent way to configure DataSources for a J2EE app? I currently define my connection pool in weblogic.properties, but I'm trying to get as much out vendor specific config files as possible. Thank you, Adam