How to import programmatically an APEX images file using workspace images option and CSS files to APEX?

Oracle db 11gR2
Oracle APEX 4.2.1
Linux RHEL 6.3
I am importing a images file programmatically into APEX.  And also a CSS file.
I want to add an images file to my APEX instance but I want to choose the option -- workspace images --.  How does one do that programmatically via the APEX API e.g.?
I don't want the images tied to an application within APEX.
Does one do the same thing for CSS files that are imported to APEX?
thx.

This is interesting and helpful,  I use the following code to import my APEX database application and run it via SQL*Plus and it works fine for database applications -- what do I need to change/add/modify in order to load the images and CSS files?  NOTE: I want the images to be -- Workspace images -- not tied to any application.  Also, I need to handle the situation where the images and CSS data already exist in the APEX environment as well as when they are not there (i.e. initial install).  Usually it is a case where it is an upgrade so the data already exists in the APEX app and just needs to be updated.
declare
                  v_workspace      varchar2(35)    := 'WORKSPACE';
                  n_existing_app   number          := 123;
                  n_new_app        number          := 456;
                  v_app_alias      varchar2(35)    := 'WKALIAS';
                  v_parsing_schema varchar2(35) :='WORKSPACE_PARSE';
                  n_secgrp_id      number;
                  v_err_msg        varchar2(200);
                  n_err_num        number;
                  n_workspace_id   number;
                begin
                  -- get workspace id
                  select workspace_id
                  into n_workspace_id
                  from apex_workspaces
                  where workspace = v_workspace;
                  -- set workspace id
                  apex_application_install.set_workspace_id (n_workspace_id);   
                  -- set security group
                  apex_util.set_security_group_id (p_security_group_id => apex_application_install.get_workspace_id);
                  -- set pasring schema
                  apex_application_install.set_schema(p_schema => v_parsing_schema);
                  -- delete existing app
                  begin
                    wwv_flow_api.remove_flow(n_existing_app);
                  exception
                  when NO_DATA_FOUND then -- do nothing when the application does not exist
                    null;
                  end; 
                  -- set new app id
                  apex_application_install.set_application_id(p_application_id => n_new_app);
                  -- generate offset
                  apex_application_install.generate_offset;
                  -- set application alias
                  apex_application_install.set_application_alias(p_application_alias => v_app_alias);
                  exception
                  when others then        
                    n_err_num := SQLCODE;
                    v_err_msg := SUBSTR(SQLERRM, 1, 200);
                    dbms_output.put_line('Error number = ' || n_err_num);     
                    dbms_output.put_line('Error message = ' || v_err_msg);
                end;
@newapp.sql
commit;

Similar Messages

  • I have and existing web site and domain name. I'd like to know how to import into iweb. I currently use Yahoo's sitebuilder to build my site but Sitebuilder is not compatible with the iMac

    I have and existing web site and domain name. I'd like to know how to import into iweb. I currently use Yahoo's sitebuilder to build my site but Sitebuilder is not compatible with the iMac

    Chapter 2.3 on the iWeb FAQ.org site has tips on using some of the existing files, image, audio, video, etc., from the published site in the creation of the new site with iWeb.
    OT

  • How do I keep my macbook pro from automatically rearranging my folders and PDF files on my desktop

    How do I keep my macbook pro from automatically rearranging my folders and PDF files on my desktop?  It seems to happen a lot after I've hooked my laptop to my Thunderbolt in my office and then I unhook my laptop to go present at a clients of taking my laptop home to work.  Every once in a while if even places all of my folders and PDF files in the far upper left corner of my screen.  Needless to say, having to constanly rearrange my desktop is extremly annoying and would love to know what the fix is for this problem.  Thank you in advance for any help offered!

    Thanks for the tip "baltwo", unfortunately my desktop settings were already set to NONE.  I've had one of my IT guys here this moring helping me look through all of this and we're at a wall trying to figure out why it's doing this.  This morning when I docked to the Thunderbolt all my folders and PDF files are in the upper lefthand corner stacked on top of each other almost out of view.  If I go to settings, displays, and swith to mirroring, all the folders and files go right back to where they're set up on my MacBook desktop, but I lose the ability to utilize the entire screen of the Thunderbolt.  Very frustrating to say the least and after searching through and reviewing several forums, Apple is very much aware of this issue and seems to be keeping silent on the issue.  Hoepfully they'll launch a fix soon!
    THANKS again for the tip, it's much appreciated!

  • How do you create a save as default folder for MP3 files used Captivate text to audio voices files?

    How do you create a save as default folder for MP3 files used Captivate text to audio voices files?

    Hi Ed
    Thank you for contacting me, however I already know how to save text to
    audio files via timeline using the Export feature.
    So my question was not entirely clear and I apologize for that.  To explain
    further, whenever I save a text to audio file, captivate takes me to a
    default save as folder where I then have browse back to my production
    folder where I am keeping all my Txt to Aud files.  This is very tedious
    process when you have alot of files to save.  So my question was is there a
    way to configure captivate so I can make my production folder the default
    file for whenever I save a Txt to Audio file through Export feature that
    the system automatically takes me to that production folder, and I am
    spared the long tedious process of saving the file manually to the
    prodcution folder I want.
    I have copy the pathway to the production folder in the URL filed in the
    Save As dialoge box and that workaround as cut the work down but I still
    have to paste that URL field to point the file to the right folder. So it
    would be nice if I could do everything automatically.  Microsoft makes this
    capability in their MS Office applications, so I was thinking Adobe might
    do the same thing.  Your help with this would be appreicated,
    Thanks
    Merrill Roberts
    Sr. Training Specialist
    SunGard Availability Services
    Direct 925-831-7730
    Mobile:415-215-9280

  • How to decrease the size of the JS and CSS File

    Hi experts,
    I m facing a bandwidth problem because i m accessing an application from a PDA and i noticed that it takes a very long time to load a very simple page. After some investigation, i noticed that its because the JS and CSS files downloaded are rather big.
    sapUrMapi_ie6.js (Size: 301 KB)
    sapWdSsr_ie6.js (Size: 79 KB)
    ur_ie6.css (Size: 247KB).
    Any idea how to minimize the size of these files or any workaround as to this problem ?
    Your help will be much appreciated.
    Regards,
    Daniel

    Hi,
    Check this link this may be helpful to you
    http://help.sap.com/saphelp_nw04/helpdata/en/b5/7e1141e109ef6fe10000000a1550b0/frameset.htm
    Regards,
    SURYA

  • How to import metadata into EPMA application by using ODI

    Hi All,
    1.Can you tell anyone, how to import metadata into EPMA application by using ODI. Detailed steps with screen shots will be appreciated.
    2. What was the interface tables. How the interface tables will be useful while importing metadata into EPMA application (Detailed steps with screen shots will be appreciated.). And tell me the interface tables structure and work process. give me the clear idea bout interface tables. I don't know anything about interface tables.
    3.Which method(either using ODI or Interface tables) is optimized/bestcase for importing metadata into EPMA application.
    My database is Oracle 10g and I am using Planning 9.3.1.
    Thanks in advance.
    Thanks And Regards,
    Bhagya Lakshmi.

    Hi,
    Answer to your questions
    1. You can't import metadata directly into EPMA using ODI, the only option is use the EPMA interface tables which is your question 2.
    2. Interface tables are just a structure of database tables which you populate with metadata and then this is pushed into EPMA, the structure of the tables takes a while to get an understanding of. The best place to start would be the documentation :- http://download.oracle.com/docs/cd/E10530_01/doc/epm.931/bpma_admin.pdf
    3. As explained in question 1 you can't use ODI directly to import metadata into EPMA but with a lot of hard work and effort you could probably populate interface tables from EPMA, though I must admit I am not a fan of the interface tables because I don't think they were designed with simplicity and ease of use in mind.
    Cheers
    John
    http://john-goodwin.blogspot.com/

  • Including external javascript and css files in servlet

    Hello,
    I am struggling to generate an HTML page from within a servlet using external javascript and css files. I am not sure how to point the servlet to the external files.
    Any code sample to accomplish the above will be much appreciated.
    Thanks inadvance,
    Antana.

    Can't you just include the following in your servlet?
           response.setContentType("text/html");
            PrintWriter out = response.getWriter();
            out.println("<html>");
            out.println("<head>");
            out.println("<title>Getting CSS</title>");
            out.println("<link rel='stylesheet' type='text/css' href='yourCSS.css' />");
            out.println("<script language='JavaScript' SRC='yourScript.js'></script>");
            out.println("</head>");
           //...

  • Java script and css files are not loaded

    I am using 9iAS 1.0.2.2.2a on Windows Server Family 2000. My web application is using bc4j and developed in JDeveloper 3.2. I am also using Apache and web cache and caching js and css files.
    Problem is some times it does not load js files but load css files.
    Some times loads css files but does not load js files.
    Some times does not load js and css files.
    & some times loads both types of files.
    How to control this problem.
    Tahir Pervaiz.

    I'm fairly certain this issue represents a bug in IE 11. The same problem(s) do not occur in IE 9 or IE 10. The same problems occur on unrelated websites accessed from separate machines. Doing a force-refresh (Ctrl+F5) always fixes the issue.
    I took your advice about opening the console to look for error messages during page load. When loading normally (i.e. not doing a force-refresh), the console shows the following:
    HTML1300: Navigation occurred.
    File: TimeEntry
    DOM7011: The code on this page disabled back and forward caching. For more information, see: http://go.microsoft.com/fwlink/?LinkID=291337
    File: Dashboard
    SCRIPT70: Permission denied
    File: modernizr-2.5.3.js, Line: 468, Column: 9
    SCRIPT70: Permission denied
    File: jquery-ui-1.10.0.js, Line: 252, Column: 1
    SCRIPT70: Permission denied
    File: knockout-2.2.1.js, Line: 48, Column: 5
    SCRIPT5007: Unable to get property 'extend' of undefined or null reference
    File: knockout.validation.js, Line: 30, Column: 5
    When loading the page via a force-refresh, only the 'Navigation occurred.' message is displayed. It does not make sense that IE would apply a more restrictive security policy to scripts loaded from cache vs. scripts loaded directly from their original location,
    yet that appears to be what is happening.
    Post questions about html, css and scripting for website development to the IE Web Development forum.....WITH A LINK TO YOUR WEBSITE OR A MASHUP THAT SHOWS THE ISSUE...
    looks like you have a sandboxed iframe on your page.
    the first step in troubleshooting IE issues is to test in noAddons mode.
    Rob^_^

  • Load the External text and css file for more frames

    hello..
           I created one Movie file. In that I load the External text and css file in first frame and display the first variable value in one text box.
    And then in 2nd frame I use another one text field and display the 2nd variable value like that I want to load the more variable in more textboxes with different frames.
         I loaded  for first variable value in first frame. But I don't know how to do next frames like that..
         Help me...

    You need to load them in the frames they are in.  You can store the loaded data in variables in frame 1, but you will need to extend that layer so that whatever is stored is avaliable in other frames.  The code to load the data into the other textfields can then be done in the frames where it is needed.
    There are other options, such as not using other frames for content or having all of them in frame 1 and making them invisible until you get to the other frames where they get turned visible.

  • [svn] 3037: Update flex-config. xml files used by the team and qa webapps to use the {targetPlayerMajorVersion} token instead of a hardcoded player version in the library-path and external-library-path .

    Revision: 3037
    Author: [email protected]
    Date: 2008-08-29 06:54:15 -0700 (Fri, 29 Aug 2008)
    Log Message:
    Update flex-config.xml files used by the team and qa webapps to use the {targetPlayerMajorVersion} token instead of a hardcoded player version in the library-path and external-library-path. This will allow the correct playerglobal.swc to be located when the target player version is set in the flex-config.xml or passed to mxmlc or compc.
    Modified Paths:
    blazeds/trunk/apps/team/WEB-INF/flex/flex-config.xml
    blazeds/trunk/qa/resources/config/flex-config.xml

    Unfortunately I don't have the
    "org.eclipse.swt.win32.win32.x86_3.1.2.jar" file. On my computer
    the folder is not set up the same way (C:\Program Files\Adobe\Flex
    Builder 2\plugins) instead it is set up as (C:\Program
    Files\Adobe\Flex Builder 2\metadata\plugins) but I've looked in
    everything and that file just isn't in there. I've re downloaded it
    twice. Still not there. Is there anything else i can do.

  • Does EP 7 supports xHtml and css files?

    Hello,
          Does EP 7 supports xHtml and css files?
    Regards
    Sunil Kulkarni

    As I mentioned to Sergio, it was probably when I switched back to flows_010500. When I did
    wwv_upgrade.switch_schemas('FLOWS_010500', 'FLOWS_010600');
    I was logged in as FLOWS_010600. However when I switched back using
    wwv_upgrade.switch_schemas('FLOWS_010600', 'FLOWS_010500');
    I was still logged in as FLOWS_010600. I believe that's the mistake; I should have been logged in as FLOWS_010500 to switch back to FLOWS_010500. I remember seeing this somewhere in the doc (that you should be logged in as the user you are migrating/reverting to), but it doesn't appear to be enforced.
    In any case, thanks Sergio for the quick and easy fix! I'm now going to re-install the flows_010600 user and hope that things go smoothly this time.

  • Sometimes in a busy area, like a large shopping mall, my WIFI dropdown menu has a dozen or more selections, and my own hotspot (MIFI) does not show up. How do I get the Mac to ignore the dozen other options and find just my MIFI connection?

    Sometimes in a busy area, like a large shopping mall, my WIFI dropdown menu has a dozen or more selections, and my own hotspot (MIFI) does not show up. How do I get the Mac to ignore the dozen other options and find just my MIFI connection?

    System Preferences>Network- Unlock padlock.  Highlight Airport.  Network Name-select your name.  Click on the Advanced button.  Airport/Preferred Networks-delete all that is not your network.
    Place a check mark next to "Remember networks this computer has joined."  Click the OK button and lock the padlock.  Restart your computer.

  • Not able to access files from Workspace Images and Static files

    Hi,
    We have just migrated our APEX Application from one server to another.
    All the functionality is working fine except the images or files which we are uploading
    in
    Shared Components -> Static Files
    Shared Components -> Images
    We are uloading Images in Shared Components -> Images but those are not getting displayed there.
    Similarly the files which we are uploaded in Shared Components -> Static Files are not accessible. If we
    try to download using download icon its showing blank screen.
    I am using some javascript files which i have uploaded into static files, but not able to refer them in page.
    Please someone guide us how to resolve the above problem.
    Thanks in advance.
    Thanks & Regards
    Sanjay
    Edited by: user11204334 on May 25, 2010 1:35 AM
    Edited by: user11204334 on May 25, 2010 3:45 AM

    Hello Sanjay,
    If you upload any static files such as IMAGES, FILES, or CSS you have to use the tags: #WORKSPACE_IMAGES# or #IMAGE_PREFIX# depending on your files location..
    then try something like htp.p ('<img src="#IMAGE_PREFIX#fileName.gif" />');
    And it should show the fileName.gif on your browser...
    I am not sure if i remember correctly, you can reference files to a specific application or to the whole application, if I am not mistaken..Correct me..
    Regards,
    Noel Alex Makumuli,
    Tanzania

  • How to Load 2 library files using System.loadLibrary in one .java file!!!

    Hello,
    Someone please help me. What I am trying to do is load two .DLL files in my program. Program works fine when I
    do the following way i.e. I have two .java files and in each I am loading one .DLL file. But I don't want to have
    two .java files I want to load both the .DLL files in one program.
    **************** Example.java **********
    import java.io.*;
    import java.util.*;
    public class Example
    public native int A(String in);
    static
    System.loadLibrary( "API2" );
    public static void main( String args[])
         Ex ex = new Ex();
         int r;
         r = ex.A("TEST");
    public Example()
    *****************Ex.java*****************
    public class exsysml
    public native int A(String in);
    public exsysml()
    System.loadLibrary("API3");
    The above way works. But I need only one .java file to load both the .DLL files. i.e.
    import java.io.*;
    import java.util.*;
    public class Example
    public native int A(String in);
    static
    System.loadLibrary( "API2" );
    System.loadLibrary( "API3" );     
    public static void main( String args[])
         Example ex = new Example();
         int r;
         r = ex.A("TEST");
    public Example()
    but when I do this way it doesn't work and I get a UnSatisfiedLinkage Error at ex.A("TEST"). While doing the top way it works.
    How can I fix this to just have one .java file and load both the library files as done in the bottom program but doing this program doesn't work. Any help is appreciated.
    Thanks!

    what I figured out so far is that we can only load one library file in a single class and define all the native methods present in that library in the class where we are loading it. Means we can't load multiple library files in a single class. It's just my thought else if someone provides a better solution. I may be wrong so that's why I need your help.
    Thanks

  • How to import pictures into excel sheet without using report generation

    Dear Friends
    I want to know how to import the picture or picture file into excel sheet without using report generation..
    kindly come up with any suggestions or example code
    Regards
    Karthick
    Solved!
    Go to Solution.

    Thank you Rajesh 
    i am going through that vi
    Rajesh Nair wrote:
    Please go through below link
    http://zone.ni.com/devzone/cda/epd/p/id/3638
    Eventhough one subVI is missing i think it will be usefull for you.
    Regards
    Rajesh R.Nair
    Rajesh Nair wrote:
    Please go through below link

Maybe you are looking for

  • Adobe Photoshop CC 2014 closes soon after opening in Windows 7

    I recently purchased the Adobe CC which includes Photoshop and Lightroom. I am a student and need Photoshop for both my Design and my Photography courses. I installed the program today and each time I open Photoshop it closes within a few minutes. I

  • How can I...

    I have a page with an input field where a user scans in a Serial Number and then presses a button. When the button is pressed I would like to use AJAX to quickly see if the SN exist in my inventory table. If so then display a big green checkmark (or

  • Stock posting query

    Dear all, I would like to have a formatted search on the difference field of the stock postings form whereby it should automatically populate the difference field with the negative amount of the in whse field. Please assist with a suitable query for

  • Diskette o failure

    well back again , My other computer won't start up properly. the message always when going to boot is diskette o failure? I have tried several times to fix . Went into Bios no go.How can i fix this to have no problems anymore.....................its

  • E51 problem! buttons won't work

    Hello, My E51-1(227.04) RM-244 firmware (220.34.37) has a big problem. I left it to charge and after that i noticed that the buttons 3 5 6 1 8 9 and the contacts, calendar, message and clear(delete) buttons stoped working, absolutley no response, exc