Static files in Apex 5.0 Edition

Is the edition of static files (js and css) is no longer an option in the Apex 5.0? All I can see are options to download these files. It's a very handy feature in previous versions of the Apex and will miss him when I need it.

Earl

Hi Earl,

Yes, it's no longer an option in 5.0. But manipulation of file got much easier in 5.0, no need to delete the file before you download a new version more.

5.1, we plan to re - evaluate if we can include this feature again.

Concerning

Patrick

Member of the APEX development team

My Blog: http://www.inside-oracle-apex.com

APEX Plug-Ins: http://apex.oracle.com/plugins

Twitter: http://www.twitter.com/patrickwolf

Tags: Database

Similar Questions

  • Optimize the download of static files in APEX developemnt

    Heyo!

    I use apex 4.2.6.

    Scenario:

    I use the js or css custom referenced in my application file. Whenever I need to change something that I have to open my file in my editor (ST3), edit it, save it, remove the old static file in the apex, download the new and then check the results.

    It is extremely tedious. Is there an easier way? Something like from the file system? Just while I am in the process of development.

    Hi Para,

    Para wrote:

    I checked the folder of images on my server and it is not all the files I've downloaded at the apex. It contains only the ordinary images/js/css... files needs to this Summit.

    Yes. It contains the files of images/js/css for the constructor of the APEX. But you can create a new folder at the location of the East and store your images/js/css application files and send them using the #IMAGE_PREFIX #yourfolder/yourfile.js, instead of upload to SEO and the shared components using #APP_IMAGES # #WORKSPACE_IMAGES or #.

    Kind regards

    Kiran

  • How can I specify the static files in XE 11

    Hi guys,.

    I installed Oracle XE 11 g. According to the steps of the earpiece of the APEX facility, I have to feed the CMD with the path of static files.
    What is the path to the static files in Oracle XE 11 g.

    Thanks in advance,
    Fateh

    Hi Fateh,

    Oracle XE stores static files for APEX within the database by default, as it comes with APEX preinstalled and accessible through the embedded PL/SQL Server.
    If you plan to use APEX listener to host this SUMMIT, the simplest would be to download the corresponding version of the APEX (4.0.2) and unzip the "images" - directory contained in this installation package to a place that you can refer to your listener APEX. Another option would be to "unload" the images to the database.

    -Udo

  • After the upgrade of the APEX 4.2 to 5.0 problems with static files

    Hello

    After the upgrade from 4.2 to 5.0 works of apex APEX (Apex runs on thothgateway 1.4.1 Morten Bråten.) but once the connection I get this message: "there are problems with the configuration of static files in your environment. Please see the section "Configuration static file Support" in the application Express Installation Guide. "and the page designer says"no page or page has no templates".

    OTN I found only advice for APEX with ADR.

    I tried to apex_rest_config and apex_epg_config.sql but without result.

    Apex works on thothgateway Morten Bråten 1.4.1. (I know: it is not supported.)

    Best regards

    Marco

    Hi Marco W.

    In the "Setup Guide" to "Thoth Gateway 1.4.1" go to 'step 3.' Configuration of DAD' and change/add the parameter:

    • PlsqlPathAlias the r value
    • The value PlsqlPathAliasProcedure wwv_flow.resolve_friendly_url

    Re-start the Middle Tier and check.

    It is of note for OSH who said:

    Note:

    PlsqlPathAliasand PlsqlPathAliasProcedure are required new parameters that must be added to an existing DAD. This is important when the upgrade to Application Express version 5.0.

    Reference: https://docs.oracle.com/cd/E59726_01/install.50/e39144/http_server.htm#HTMIG29263 (see the note below point 2)

    Kind regards

    Kiran

  • APEX 5.0 - static files not found even though I configured ADR.

    Hi Experts,

    I use the new 5 APEX (+ Tomcat 6) for a period of two months. All custom files are stored on the application server and they are referenced from there.

    Now, I need to create a static file - for example just a simple picture (logo).

    I want to just show at the point of the image.

    If I inspect the source of element it shows this:

    2015-07-29_144031.png

    I have configured all the necessary stuff: apex_rest_config.sql( APEX_LISTENER, APEX_REST_PUBLIC_USER)

    I also tried to configure SQL Developer to manage data REST Services. (java-jar apex.war user adminlistener "Listener administrator")

    Login test. But if I try to connect to the listener the error to occur:

    2015-07-29_143447.png

    Y at - it one configuration to another? to make it work?

    Thank you

    Concerning

    J

    Hi jozef_SVK,

    jozef_SVK wrote:

    I use the new 5 APEX (+ Tomcat 6) for a period of two months. All custom files are stored on the application server and they are referenced from there.

    Now, I need to create a static file - for example just a simple picture (logo).

    I want to just show at the point of the image.

    If I inspect the source of element it shows this:

    I have configured all the necessary stuff: apex_rest_config.sql( APEX_LISTENER, APEX_REST_PUBLIC_USER)

    This problem happens so that a single file or all files in space of static work/applications?

    Go to the tab network browser development tools and inspect what happens if you load a page with files of static applications/work space.

    If you get 404 for work/application space static files then this is the issue of the wrong Configuration of RESTful Services.

    RESTful Services configuration is mandatory at the APEX 5 and this is not just limited to the configuration using apex_rest_config.sql.

    The second step is the configuration of users required for RESTful Services when installing ADR?

    Reference: http://docs.oracle.com/cd/E37099_01/doc.20/e25066/install.htm#AELIG7217

    Check out the following threads with the same question:

    Also check if users RESTful (APEX_LISTENER and APEX_REST_PUBLIC_USER) are unlocked as that can also cause the problem.

    Reference: error 503-service unavailable after listening apex on glassfish deployment

    Kind regards

    Kiran

  • APEX 5 - problem with static files after Installation

    Hello

    I've updated my development environment of APEX 4.2.6 to 5.0.0 with REST Data Services.

    Whenever I enter the Administration Services login page or run my application, I get the following message:

    There are problems with the configuration of static files in your environment. Please see the section "Configuration static file Support" in the Guide of the Installation Application Express.

    In Administration Services everything looks and works very well, but in my application there is no static file from the workspace loaded (for example CSS-files, images,...). The links "broken" to these files are translated in this way:

    <link rel="stylesheet" href="lets/static-files-not-configured/files/static/v1Y/lets.css" type="text/css">
    

    After some research, I discovered, that static files normally appear in my workspace in the Administration Services - I can access it and download it. BUT: When I compared the scheme with APEX_050000 APEX_040200 in the database, I discovered, that static files were not copied to the new instance (in the view APEX_WORKSPACE_FILES are just a few files...).

    Does anyone have an idea what the reason would be so?

    Thank you

    Christian

    Hi Christian Klingbacher,.

    I've updated my development environment of APEX 4.2.6 to 5.0.0 with REST Data Services.

    Whenever I enter the Administration Services login page or run my application, I get the following message:

    There are problems with the configuration of static files in your environment. Please see the section "Configuration static file Support" in the Guide of the Installation Application Express.

    In Administration Services everything looks and works very well, but in my application there is no static file from the workspace loaded (for example CSS-files, images,...).

    • You have configured the RESTful Services during the installation of Oracle APEX?

    Reference: https://docs.oracle.com/cd/E59726_01/install.50/e39144/listener.htm#HTMIG29335

    Reference: http://docs.oracle.com/cd/E37099_01/doc.20/e25066/install.htm#AELIG7217

    The file Support static configuration to demand Express Installation Guide (using ORDS) says:

    RESTful Services configuration is necessary when upgrading to Oracle Application Express version 5.0 and RESTful Services were not configured in a previous version.


    See the thread with the same question: How to configure * application and the workspace of static files after upgrade from 4.2 to 5.0?

    I hope this helps!


    Kind regards

    Kiran

  • js and css downloaded from apex of static files 4.2.4

    Hello

    1. I need to know in what file are stored files js downloaded from 'components shared - static files?

    2. I need to know in what file are stored the css files downloaded from "sharing of components - Cascading Style Sheets?

    My version of the apex is 4.2.4.

    Thank you

    Iulian

    Hi, Alban,.

    These files are not stored in a folder, they are stored in the database. You can access in your application by specifying

    • #APP_IMAGES #your_file_name.js (if it is a static file that is stored for an application) or
    • #WORKSPACE_IMAGES #your_file_name.js (if it is a static file for your workspace).

    The #APP_IMAGES # and #WORKSPACE_IMAGES # substitution variables will be automatically replaced with a URL to retrieve the files of the database.

    Concerning

    Patrick

    Member of the APEX development team

    My Blog: http://www.inside-oracle-apex.com

    APEX Plug-Ins: http://apex.oracle.com/plugins

    Twitter: http://www.twitter.com/patrickwolf

  • SE "There are problems with the configuration of static files in your environment" after the APEX 5 install using Oracle HTTP Server

    There is not much information in the doc around the new configuration of static file.  Someone at - it an example of this dads.conf he file should look similar to static files?  Everything else seems to work fine - it's my only hang up now.

    Thank you!

    Exact pop-up message:

    There are problems with the configuration of static files in your environment.  Please see the section "Configuration static file Support" in the Guide of the Installation Application Express

    I figured it out on my own - the doc has a section "6.5.4 configuration Support for static file" which basically said yes, it is now supported for static files, then a "see also:" link to the dads.conf section, that I'm not good enough to see there are now 2 new parameters in your dads config file...  All is ready!  It works!  YAY!

  • OSH - static files

    APEX 5.0.2/Oracle 11.1

    As Patrick Wolf-Oracle on his blog, two additional parameters must be added to OHS dads.conf allowing the APEX to serve static files. Before adding these parameters, the emitted HTML code has been

    "< script type =" text/javascript"src =" xxx /static-files-non-configured/nnn/files/plugin/3498749565627846710/v1/filename.js "> < / script >"

    After you have added the dads.conf settings and restart OHS, this has changed to

    "< script type =" text/javascript"src ="r /xxx/nnn/files/plugin/3498749565627846710/v1/filename.js "> < / script >"

    "When you go through ADR, it becomes < script type =" text/javascript"src ="xxx/r /nnn/files/plugin/3498749565627846710/v1/filename.js "> < / script >"

    Question: because the same APEX engine in the database generates the HTML code, how does he know to generate different content based on a) if ADR is accessing it or SST and b) in the case of OSH, how does "know" that the dads.conf does not have these 2 new parameters so it can put the useful static-files-non-configured in the emitted output? Seems like magic, I just want to understand how it works.

    Thank you

    Hello

    It is not only a lot of magic involved. It is all detected with the CGI env variables. If you take a look on

    begin
        owa_util.print_cgi_env;
    end;
    

    you will see that APEX_LISTENER_VERSION is defined in the case if we treat of the ADR. If it's mod_plsql or EPG PATH_ALIAS cgi variable is defined, which returns the extra parameter dads. Here's how to detect if the configuration is missing.

    Concerning

    Patrick

  • How to set up * application and the workspace of static files after upgrade from 4.2 to 5.0?

    Hello.

    I just upgraded from 4.6 to 5.0 on Windows 7 64 bit.  ADR 2 and Tomcat running.  The APEX and my app runs.  Images of the APEX are OK.

    Problem: Application and do not display images of working space.

    Here are the different paths:

    • C:\apache-Tomcat-7.0.59\webapps\i
    • C:\APEX\images

    I copied the content of the APEX webapps\i images directory to the tomcat directory.

    I ran the two flavors of the loading image script, and each completed without error.

    • SQL > @apxldimg.sql c:
    • SQL > @apex_epg_config.sql c:

    I am able to log in administrator mode or developer APEX, and everything looks very good and works well.

    I can't connect to my request and it works, but the images, for example, the logo is not displayed.  The application CSS file is not currently in use.

    The source of the page shows that in the head of <>, where "pva" is the name of workspace:

    "" < link rel= "shortcut icon" href= "pva/static-files-not-configured/files/static/v4Y/eprentise_favicon-32x.png" type= "image/x-icon" / > "
    < link rel =" style sheet " href =" PVA/static-files-not-configured/Files/static/v4Y/epr_4_6.CSS " type of =" text/css " />

    This is the logo of the hgroup > < body > <

    "" "< a href="f? p = 520:1:1212525121720" id="uLogo"> < img src="pva/static-files-not-configured/files/static/v4Y/eprentise_default-logo.png" alt="eprentise demo" title= 'eprentise demo" height= "50" / > < /a > "

    #WORKSPACE_IMAGES # = pva/static-files-non-configured/files/static/v4Y /, which is considered in the places above.


    #APP_IMAGES # = pva/static-files-non-configured/520/files/static/v2Y /, where the application_id is 520.  These images are not either


    My understanding is that the images of the workspace and the app are not stored in the file system in the results directory.


    Advice or a pointer to the documentation on how to configure static files for application and space images of work and for the application CSS file?


    Thank you

    Skip

    Hi Skip,

    If you are using ADR the next chapter in the ADR of the installation guide part is important to you. https://docs.Oracle.com/CD/E59726_01/install.50/e39144/listener.htm#HTMIG29472

    In particular, the following note in "on the configuration of the RESTful Services.

    RESTful services ask Oracle 2.0 or subsequent REST Data Services. RESTful Services configuration is necessary when upgrading to Oracle Application Express version 5.0 and RESTful Services were not configured in a previous version.

    Concerning

    Patrick

    Member of the APEX development team

  • Import the Javascript library as a static file not work but working from URL

    Hi, I need to use the oCanvas library: download - oCanvas - oriented drawing canvas object in a page.

    I followed this guide: filing of APEX JavaScript static file

    I've downloaded the library and the updloaded in sharing of components/static files and referenced in the page header:

    < script src = "" #APP_IMAGES #ocanvas.js "type =" text/JavaScript"> < / script >"

    On the page, I created a html subregion and in the body, used the following test code:

    < canvas id = "canvas" width = "200" height = "100" > < / canvas >

    < script >

    output function (label, entry) {}

    var out = document.getElementById ("output"),

    input_string = ' ", i, number;

    If (typeof input = 'object') {}

    input_string += "{\n";

    for {(i input)

    number =! isNaN (parseFloat (input [i]))? true: false;

    input_string += ' < span class =------"tab\" > \t </span > ' + i + ":" + (number? ' ")". " "': ' \ '") + input [i] + (number? "": "\" "") + "\n";

    }

    input_string += '} \n ";

    }

    out.innerHTML += (out.innerHTML = ""?) ("": "\n") + label + input_string;

    }

    var c = document.querySelector ("#canvas"),

    CTX = c.getContext ("2d");

    c.Width = window.innerWidth;

    c.Height = window.innerHeight;

    c.addEventListener ("touchmove", function (e) {e.preventDefault ()}; false);

    var canvas = oCanvas.create ({canvas: "#canvas", the decoration: "#222" "});

    Planet Center

    Var Center = canvas.display.ellipse({)

    x: canvas.width / 2, y: canvas.height / 2,.

    RADIUS: canvas.width / 20,.

    fill: "#fff."

    ({. add()});

    Prototype that will be used to instantiate other objects

    var satelliteProto = canvas.display.ellipse ({fill: "#eee"});

    var pathProto = canvas.display.ellipse ({stroke: "1px #999"});

    Implement data

    satellites of var = [], depth = 3;

    var satelliteColors = ["#107B 99", "#5F92C0", "#c7509f"];

    var pathColors = ["#666", "#107B 99", "#5F92C0"];

    Create seven satellites and access roads. Definition is longer down.

    for (var i = 0, l = 7; i < l; i ++) {}

    createSatellite({)

    parent: focus, depth: 1,.

    distance: (i + 1) * canvas.width / 6,.

    RADIUS: canvas.width / 100,.

    Speed: 1

    });

    }

    Set up a tick function that moves all satellites each image

    canvas.setLoop (function () {}

    for (var i = 0, l = satellites.length; i < l; i ++) {}

    satellites [i] .rotation += satellites [i] .speed;

    }

    });

    Definition of a satellite and its corresponding path

    function createSatellite (options) {}

    Create the path which will follow the satellite

    var path = pathProto.clone({)

    Ray: options.distance,.

    x: options.x | 0, y: options.y | 0,

    strokeColor: pathColors [options.depth - 1]

    });

    options.parent.addChild (path);

    Create a new satellite

    satellite var = satelliteProto.clone({)

    origin: {}

    x: 0,.

    y: options.distance * (Math.round (Math.random ())?-1: 1)

    },

    Speed: Math.Random () * (2 * Math.Random () - 0.5) + 0.5,.

    Ray: options.radius,.

    x: options.x | 0, y: options.y | 0,

    filling: satelliteColors [options.depth - 1].

    rotation: Math.Random () * 360

    });

    options.parent.addChild (satellite);

    satellites.push (satellite);

    Create another satellite which will tour around the hub

    If (options.depth < depth) {}

    createSatellite({)

    parent: satellite, depth: + 1 options.depth,

    distance: options.radius * 7.

    RADIUS: options.radius / 1.5,.

    x: satellite.origin.x *-1, y: satellite.origin.y *-1;

    Speed: 10

    });

    }

    }

    Implement control of play/pause for the demo

    var text = canvas.display.text({)

    x: canvas.width / 2, y: 220,.

    origin: {x: 'Centre', y: 'Center'},

    filling: '#fff', size: 25, weight: 'bold', text: 'Play '.

    ({. add()});

    Canvas.bind ("click tap", function () {})

    Text.Text = canvas.timeline.running? 'Play': 'Pause '; Canvas.Redraw ();

    Canvas.Timeline [Canvas.Timeline.Running? "stop": "start"] ();

    });

    < /script >

    That does not work, but if I change reference from the page to the next header it works:

    <script src="http://cdnjs.cloudflare.com/ajax/libs/ocanvas/2.7.2/ocanvas.min.js"></script>

    What can I do to use the static reference correctly?

    It's a library problem?

    I created a test workspace, there are two pages with the static reference and the other with the URL reference, here's the connection info, if you want to try it:

    https://Apex.Oracle.com/pls/Apex/f?p=4550:1:0:

    workspace: ocanvas

    user: user

    Pass: ocanvas

    Thank you for your time.

    The file you have downloaded seems to have some formatting problems (missing CR/LF?).   I downloaded the same file from the remote site and referenced and it works.  Also, you can simply reference the file in the page URL of file header instead of add field tags in the html header scripts.

    -Jeff

  • Static files download problems

    Is there any specific reason why I have to download the same javascript FILE STATIC 3 or 4 times before the changes are implemented in the application?

    It's almost like the old file is put in cache or when the file is deleted there are enforcement once or twice so he can notice/implement the new file.

    APEX: 4.0.2

    THEME: SAND

    SERVER: Oracle-Application-Server-10g/10.1.3.1.0 Oracle-HTTP-Server

    Steven

    I think I understand the problem, but don't know why it happened.

    When I questioned the $ WWV_FLOW_FILE_OBJECTS and searched my file, there were 5 instances of it.

    When I deleted all but 1 instance, everything worked again.

    No idea why the file has not been entirely deleted when I clicked to remove static files?

    Steven

  • Use a static file as the source of the HTML region

    Hi all

    Sorry for the maybe trivial question, but is be possible to use static files as the source of the HTML region? The files are pretty simple, but must be translated so we prefer to keep as a static, rather than paste multiple lines of region to conditionally display files.

    I tried something like

    < embed src = "#WORKSPACE_IMAGES #& FSP_LANGUAGE_PREFERENCE.file01.txt" >

    It is however showing the HTML source on screen and making is not in html format.

    The other option, I tried creating a URL zone that would get the content from the server, for example:

    http://localhost:9080/Apex/wwv_flow_file_mgr.get_file?p_security_group_id=4874627831984398 & p_fname = en_file01.txt

    ... but I'm running against error access control list (ACL). The file opens when you load the link directly in a browser, but apparently localhost is not allowed to ACL and I would not have sysdba access where to deploy.

    Finally I saw the recommendation to use an iframe in a similar discussion to display pdf file here Show PDF in Apex region Earth tried
    "< iframe src =" ' #WORKSPACE_IMAGES #& FSP_LANGUAGE_PREFERENCE.file01.txt & embedded = true ' style = "" > < / iframe >

    but receive "not found".

    The requested URL /apex/wwv_flow_file_mgr.get_file was not found on this server"as if the file name is not received? Eponymous is parsed correctly in the embed tag.

    Help, please

    Atanas

    Hello

    To me it sounds you can use shortcuts instead to locate some files in the workspace files
    http://docs.Oracle.com/CD/E37097_01/doc/doc.42/e35125/bldapp_cut.htm#sthref1696

    Kind regards
    Jari
    -----
    My Blog: http://dbswh.webhop.net/htmldb/f?p=BLOG:HOME:0
    Twitter: http://www.twitter.com/jariolai

  • How to use static files

    Hello world

    I have a html file that I have uploaded to static files section in the apex.

    So now I want to use this html as inline frame or iframe as file
    <iframe src="#...#new1.html" height="400" width="600"></iframe>
    for the image I use #WORKSPACE_IMAGES #.
    But for static files, which is the prefix I'll use.
    I downloaded this file html image section and tried #WORKSPACE_IMAGES #new1.htm but does not work.

    So is there another way to do this?
    Please help me.

    Thank you
    Concerning
    Paul

    Hi Paul,

    Is the static file that you downloaded is associated with any application? then
    use

    #APP_IMAGES#
    

    Otherwise it will be available for the entire workspace, so you can use #WORKSPACE_IMAGES #.

  • Difference between downloading a file JS under "Static files" and "Images".

    I got to know of 2 ways in which the "JS" files can be downloaded in application APEX "Shared Files" and "Images".

    I would like to know the difference and how it should be used once its downloaded through "Static Files".

    I don't think it makes a difference when you download your JS files, but you would link/load them in your pages in the same way it is using WORKSPACE_IMAGES and APP_IMAGES, prefix depending on how your downloaded.

    Not just one of these methods, the images in the comic book extractions/stores and therefore a DB connection is open when the resource is requested. A better option is to load it into the file system HTTP (prefix of image or less/i) directory server so that a direct URL can be used.

Maybe you are looking for

  • No bar to Add on more, some modules no longer displayed because of this.

    Due to the new update and the removal of the add-on bar that usually not resident at the bottom (also known as the status bar) I have Add-ons installed that work which no long appear to all THE. He is not here in the new side icon thingie you can cli

  • . ASF video files

    I have a 2 GB sd card / and I can not play back one of these. ASF 7 QT, QT 10 or MPEG STREAMCLIP movie files! He repeated to me that "QT does not recognize. This in a movie file... " I have a ProMac 2008 / IO: 10.10.5 / Yosemite. Should I convert the

  • Portege R400-600 - Bluetooth stack

    battery Toshiba Bluetooth update of the Toshiba site never installs all the way. It crashes. Previous good work. Any advice?

  • fraudulent emails

    Anyone who has received an email like this " [email protected]" attached is an official looking invoice from apple app store asking if it is a purchase that you made. Then when you click on the link it takes you to site secondary request info CC.

  • HP Officejet 7610 - damaged cartridge Error Message

    I have a new HP Officejet 7610 - less than 2 months old. It has been working fine until today when the magenta cartridge supplied with the printer is empty.  The printer told me to replace, that I did with a new HP ink cartridge. As he tried to reset