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

Tags: Database

Similar Questions

  • 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!

  • 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

  • Hide the download link of file browse point

    Hello.

    How can I hide the download link of file browse point, we show that when the article is not empty?

    Question for apex 3.2.

    Hello

    APEX 3.2 there is no declarative switch to do so. You should use JavaScript to remove the download link.

    APEX 4.0, the item type of "Browse file" has a new attribute 'Display Download Link' in which you can define if you want to view the download link.

    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

  • Please help to download a CSV file on APEX by browsing file

    Hi all

    I need to download a csv file in the table through browse file button. To do this, I created the process and function below. This method works perfectly fine when the file size is small. But I need to download the file size of 16 MB and when I try to download this file it give error wwv_flow.accept. Any expert from the TOP please help me about this error. As I am very new to the APEX, and I need to achieve this as soon as possible. Please provide any solution, I will be really grateful to the person.


    _ Function

    create or replace function hex_to_decimal
    -This function is based on one by Connor McDonald
    -http://www.jlcomp.demon.co.uk/faq/base_convert.html
    (P_hex_str in varchar2) return number
    is
    number of v_dec;
    v_hex varchar2 (16): = '0123456789ABCDEF ';
    Start
    v_dec: = 0;
    for indx in 1... Length (p_hex_str)
    loop
    v_dec: = v_dec * 16 + instr (v_hex, upper (substr(p_hex_str,indx,1)))-1;
    end loop;
    Return v_dec;
    end hex_to_decimal;


    _ Process

    DECLARE
    v_blob_data BLOB;
    v_blob_len NUMBER;
    V_POSITION NUMBER;
    v_clob_data CLOB: = 'nothing. '
    dest_offset NUMBER: = 1;
    offset NUMBER: = 1;
    blob_csid NUMBER: = dbms_lob.default_csid;
    lang_ctx INTEGER: = dbms_lob.default_lang_ctx;
    caveat INTEGER;



    v_raw_chunk RAW (10000);
    v_char char (1);
    number of c_chunk_len: = 1;
    v_line VARCHAR2 (32767): = NULL;
    v_data_array wwv_flow_global.vc_arr2;
    number of v_rows;
    number of v_sr_no: = 1;

    BEGIN

    delete from scg_recievables2;

    -Read data from wwv_flow_files </span >
    Select blob_content from v_blob_data
    of wwv_flow_files
    where last_updated = (select max (last_updated) in the wwv_flow_files where UPDATED_BY =: APP_USER)
    and id = (select max (id) in the wwv_flow_files where updated_by =: APP_USER);


    v_blob_len: = dbms_lob.getlength (v_blob_data);
    V_POSITION: = 1;

    -Read and convert the binary for char </span >
    WHILE (v_position < = v_blob_len) LOOP
    DBMS_LOB.converttoclob (v_clob_data, v_blob_data, v_blob_len, dest_offset, offset, blob_csid, lang_ctx, warning);
    v_char: = dbms_lob.getlength (v_clob_data);

    v_line: = v_line | v_char;
    V_POSITION: = v_position + c_chunk_len;
    -When a whole line is retrieved < / span >
    IF v_char = Chr (10) THEN
    -Convert comma to: to use wwv_flow_utilities </span >
    v_line: = REPLACE (v_line, ';', ' :');)
    -Converting each column separated by: in the data table </span >
    v_data_array: = wwv_flow_utilities.string_to_table (v_line);
    If IsNumber (substr (v_data_array (9), 1, 1)) = 1 then
    v_data_array (9): = substr (v_data_array (9), 1, 11);
    on the other
    v_data_array (9): = January 1, 1900 ";
    end if;
    v_data_array (9): = NVL (v_data_array (9),'' 01-JAN-1900);
    -Insert data into the table target </span >
    EXECUTE IMMEDIATE ' insert into scg_recievables2 (Account_receivable_number, the_account_number, bill_history_tran, service_number, item_type, the_amount_billed, the_remaining_amount, source_of_payment)

    values (: 1,: 2:3:4: 5: 6: 7: 8,:' 9)
    USING
    v_data_array (1),
    v_data_array (2),
    v_data_array (3),
    v_data_array (4),
    v_data_array (5),
    v_data_array (6),
    v_data_array (7),
    v_data_array (8);
    -Remove
    v_line: = NULL;
    v_sr_no: = v_sr_no + 1;
    END IF;

    END LOOP;
    END;

    As mentioned, this disrupts the question, because a possible answer was published in the OTHER thread... Check your server logs, you probably delay... Preliminary discussions with a similar problem:

    Take a look at the httpd.conf file (or get your system administrator to look at it) and see what's on the value of TimeOut. You may need to increase in order to export large tables by APEX.

    http://www.apacheref.com/ref/http_core/timeout.html

    Thank you

    Tony Miller
    Webster, TX

    A lady came up to me on the street, pointed at my suede jacket and said: "do you not know that a cow was murdered for that jacket?
    ' I didn't know there are witnesses ', I replied: "now, I'll have to kill you too. '

  • Disabling download option / how to limit the download of all files in OBIEE 11 G

    Hello

    Is it possible that I can disable the download option in OBIEE 11 G answers?

    I am currently OBIEE 11 g answers URL, be able to download any file as .txt, .xls or etc. which is a vulnerability for us.

    How to limit it?

    Appreciate your input on this. Please let me know as soon as POSSIBLE.

    Thanks and greetings

    Olivier

    Connect to OBI-> Administration-> Manage privileges-> catalog-> download files

  • After completing the download of a file on my computer, Firefox zip active Microsoft Excel to extract the zip file (which obviously does not work) - and I can't "debug" the problem because the download folder has been created by Firefox

    When I download ANY files on my computer (Windows XP), Firefox opens its ' own record (with Firefox icon); and displays the file name and a progress bar when file downloads - end with no zipped files NOT, as in no .zip or .7z, Firefox just stops (unless there is a process of "autonomous activation" in the file, such as an installation wizard)-it runs correctly.

    However, when it is a zip file, MS Excel is enabled - Excel says 'unrecognizable format' - I have plenty of "-cancellation).
    It has been produced for at least weeks - it just me is appeared that this started when I upgraded to firefox 8.0 (but not positive) - yesterday, I've upgraded to Firefox 9.0

    View > toolbars-> Uncheck Menu bar

  • Problem with encoding and charset for the download of a file

    Hi guys, I have a problem and I pray for your help, I am 1000% frustrated at this point.

    I have a servlet that must do something and give to a log file to the end user. Coding the logic that took me about 5 minutes, the problem is that the given file shows correctly in Notepad (default application to open the txt files). I tried everything I read on the internet and absolutely nothing works.

    After that the challenging about 20 ways different fo do this without success, it's my actual code:

    Game characters def = Charset.defaultCharset ();
    OutputStreamWriter out = new OutputStreamWriter (servletOutputStream, def);
    for {(chaîne de Registre: regList)}
    out. Write (Registry + "\n");
    }
    out. Close();

    the page gives the user the file, I can download or open, when I open it it is the result

    registry1registry2registry3registry4registry5registry6registry7...

    and I expect:

    registry1
    Registry2
    registry3
    registry4
    registry5
    .
    .
    .


    If I open it with wordpad or notepad ++ the file looks fine, but I can't make this notebook it reads properly. I spent about 10 hours on it and at this point I don't know what to do, I tried Windows-1252, UTF-8, UTF-16, the default. I tried to put this enconding on the response header with no luck. Any help will be much appreciated.

    Thanks in advance.

    This has nothing to do with the character sets and everything to do with windows line break conventions. Windows line break convention is "\r\n", and the notebook only includes this format.

  • Lack the downloaded site .swf file

    I downloaded my files Dreamweaver html, images, record scripts folder and a flash .swf in my folder web hosts "hot docs", everything works except an empty space where it should be the file .swf on my index html page online. When I check the preview in Dreamweaver for Safari and Opera the .swf movie works perfectly on the html index page. Did I miss something in the link or something else, that I should have done?

    I can see you are using a version a little more Flash, but more to the point, your filepath seems faulty to the swf itself. You should be able to 'play' without the code surrounding... virgins in a browser... and yours is not. Try to remove the Flash file and insert again.  I tried to 'play' a swf of one of my own sites, and I could go right to the swf file (http://www...etc. etc.) using the correct path and he played in the browser... no calibrated (it filled the screen)... but he played.  Beth

  • How to automate the download of a file. JAD

    Hello:

    My application needs to be updated automatically. What should I do to run a setup file. JAD?

    Thank you.

    Browser.getDefaultSession () .displayPage (URL_of_the_jad);

  • 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 - 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

  • 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

  • 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