Creating APEX pages via SQL scripts...

Hi guys,.

I want to create APEX via Script SQL pages. The main reason for having this option I have couple of applications that contains XML files for the definition of the screen where I can read all the properties of the screen (field types, sizes, legend, etc...)

Is there a documentation or help tips where I can find the APEX page tables definitions? I found something as WWV tables but I couldn't understand it correctly...

Any help?

Thank you
Osman...

Check out ApexGen, the Apex Oracle generator. It allows you to use a PL/SQL API to generate a SQL script, similar to an Apex application export file.

http://sourceforge.NET/projects/apexgen/

With ApexGen, it does not matter if you have 5 or 500 tables in your database, you can easily generate report for each table, and form pages very quickly.

M

Tags: Database

Similar Questions

  • How can I select stuff of table has created in the PL/SQL script?

    When I execute a select statement, SQLplus complains of the table does not exist. But it has been created? Don't know what goes wrong... Thanks in advance...

    The code is as follows:




    DECLARE

    column_table varchar (50): = "column_table";
    r_count NUMBER (10): = 0;

    BEGIN
    column_table: = UPPER (column_table);

    -I created the table here and validation
    IMMEDIATELY RUN 'CREATE TABLE' | column_table | "(varchar2 (100) from table_name, column_name varchar2 (1000))';
    commit;

    IF someCondition THEN
    Bonneau
    -It's where SQLPLUS complains about the table or view does not exist
    Select count (1) in the column_table r_count where table_name = someValue;
    Bonneau
    END IF;


    END;
    /

    You will need to use dynamic sql to access objects created by using dynamic sql.
    >
    Select count (1) in the column_table r_count where table_name = someValue;
    >
    During this "compilation" the table declaration that it is trying to reference does not exist then you get an error.

    The table does exist when the code is executed.

  • Add page via the script numbers

    I want to try to add page numbers to the artboard based on the position of the selected text. I saw that someone had done a script similar to this one, but I need to do based on the selected text. Here is my solution, but for some reason it add up he function of the coordinates of the artboard. I came across this a while ago and affecting the State of fixed work plans, he, here he doesn't have the same effect.

    #target illustrator
    // global variables
    
    ////////////////////////////////////////////////////
    // Set up varaibles
    ////////////////////////////////////////////////////
    
    
    var pageNumber = app.activeDocument.artboards.getActiveArtboardIndex() + 1,
        doc = app.activeDocument;
    
    
    //make sure only 1 item is selected
    if(selectedItems.length > 1 || selectedItems.length < 1) {
        alert('please select only one item'}
    else { 
        var selectionTopPosition = doc.selection[0].top,
            selectionLeftPosition = doc.selection[0].left;
        doc.selection[0].remove();
        doc.selection = null;
        //remove selection
        //alert(selectionLeftPosition+" "+selectionTopPosition);
    }
    
    
    //create page numbers layer
    var pageNumbersLayer = doc.layers.add();
    pageNumbersLayer.name = "page numbers";
    var pageNumbersLayerGroup = pageNumbersLayer.groupItems.add();
    
    
    // main loop
    //loop through artboards 
    for(i = 0; i < app.activeDocument.artboards.length; i++){
        app.coordinateSystem = CoordinateSystem.ARTBOARDCOORDINATESYSTEM;
        doc.artboards.setActiveArtboardIndex(i);
        alert('active artboard is '+i);
        var pageNumber = doc.artboards.getActiveArtboardIndex() + 1;
        var pageCount = i + 1;
    
    
        var textRef = pageNumbersLayerGroup.textFrames.add();
        textRef.contents = pageCount.toString();
        textRef.top = selectionTopPosition;
        textRef.left = selectionLeftPosition;
        pageCount++;
    }
    

    Have you tried to set the coordinate system for the specific doc.

    In fact it worked for me with this

    doc = app.activeDocument;

    selectedItems = doc.selection;

    I started with a single string (text) to the number on the artboard 1 location.

  • How to accept entries of user of the sql script

    I want to create Tablespace using the sql script, but the location of the data file that I need to accept the user. (for the location of the data file).

    How can I accept the user input to pl/sql.

    Example:
      CREATE TABLESPACE  TSPACE_INDIA LOGGING 
         DATAFILE 'H:\ORACLE_DATA\FRSDB\TSPACE_INDI_D1_01.dbf' 
         SIZE 500M  AUTOEXTEND ON NEXT  1280K MAXSIZE UNLIMITED 
         EXTENT MANAGEMENT LOCAL;
    Here, I need to accept the location of the user data file IE: "H:\ORACLE_DATA\FRSDB\TSPACE_INDI_D1_01.dbf".

    Maybe something like this...

    declare
      flocation varchar2(300) := '&Enter_The_Path';
    begin
      EXECUTE IMMEDIATE 'CREATE TABLESPACE SRC_TSPACE_INDIA LOGGING DATAFILE '''||flocation||
                        '\SRC_TSPACE_INDI_D1_01.dbf'' SIZE 500M AUTOEXTEND ON NEXT 1280K MAXSIZE UNLIMITED EXTENT MANAGEMENT LOCAL';
    end;
    

    You will need to properly explain the quotes in your channel and also make sure you have spaces where they should be (for example, after the key word of the DATA file).

    You'd better start with something like this:

    set serverout on
    declare
      flocation varchar2(300) := '&Enter_The_Path';
      v_sql varchar2(32767);
    begin
      v_sql := 'CREATE TABLESPACE SRC_TSPACE_INDIA LOGGING DATAFILE '''||flocation||
               '\SRC_TSPACE_INDI_D1_01.dbf'' SIZE 500M AUTOEXTEND ON NEXT 1280K MAXSIZE UNLIMITED EXTENT MANAGEMENT LOCAL';
      dbms_output.put_line(v_sql);
    end;
    

    and see what SQL it generates. When you're happy it generates a valid statement, then you can replace the statement dbms_output with your immediate statement execution.

  • No active SQL script editor

    I downloaded oracle xe and I tried to enter the page of sql script in sql and the place where you enter sqls was not editable. All of the suggestions.

    Also I tried to enter the page of commands sql queries and the query works fine with a comment statement, but if
    I comment with '-' or ' / *' and then it gives an error of invalid request.

    Any help will be appreciated.

    Yes if you want to use the script editor (or IE... hmmmm) or upgrade.

    New features. Better security. Special limited time offer-press until exhaustion of stocks last ;)

  • Create jobs and positions via PL/SQL script

    Hi, it is recommended to insert new jobs and positions via PL/SQL Script?

    I know it's possible, I'm not sure if it is recommended. especially when it's via a direct insertion.

    Is there an API for it?

    I have about 200 + positions I need to set in our Instance of the EBS Test.

    Thank you!

    The APIs are the best way to do it in batches of charges-

    Job: HR_JOB_API

    Position: HR_POSITION_API

    To know that all the seeds API, add the responsibility of integrated SOA gateway

  • Is it possible to create a new file using the XML via java Script?

    Hello everyone,

    Is it possible to create a new file using the XML via java Script

    • I have xml information that need to use for file name, size.
    • Based on xml file we can create a new file in InDesign with java script?
    • Kindly help me if anyone has an idea about this.

    I use InDesign CS4 on windows 7

    Sample file is attached below.

    Kind regards

    Siva

    <UpdateAd>
    <AdId>3403699</AdId>
    <Width type="mm">91,79</Width>
    <Height type="mm">80,00</Height>
    <ProductionCategory>4</ProductionCategory>
    <BookedCCIColors>sw</BookedCCIColors>
    <WorkFlowType>PDF</WorkFlowType>
    <CustomerNumber>652224</CustomerNumber>
    <CustName1>Erich Prang</CustName1>
    <Description/>
    <Description2>R</Description2>
    <UpdateIns>
    <Titel>RHZ</Titel>
    <Publication>B2</Publication>
    <RunDate>26-07-2011</RunDate>
    <Zone>H30</Zone>
    <KDDATEN>nein</KDDATEN>
    </UpdateIns>
    <WorkflowStep>IR</WorkflowStep>
    <Proof>No</Proof>
    </UpdateAd>
    
    

    xml.png

    Try this:

    var f =File.openDialog ();
    f.open('r');
    var xml = new XML(f.read());
    f.close();
    
    var myDocument = app.documents.add();
    myDocument.documentPreferences.pageHeight = xml..Height+"mm";
    myDocument.documentPreferences.pageWidth = xml..Width+"mm";
    var rect = myDocument.pages[0].rectangles,add();
    rect.geometricBounds = myDocument.pages[0].bounds;
    rect.strokeAlignment = StrokeAlignment.INSIDE_ALIGNMENT;
    rect.strokeColor = myDocument.swatches.item("Black");
    rect.strokeWeight = 1;
    myDocument.save(File(f.path + "/" + xml..AdId + ".indd"))
    

    Substances

  • . SQL, lack of dialogue 'Create new page'

    I always back up my databases by exporting the .sql file and paste a page Virgin .sql created in DW. I noticed just now that the .sql option is missing. Is there a way that this page could has been removed? It was never really there? He could be sent back? Or do you still, I created a page .txt and paste database who him?

    I would just have comments at the beginning of the document to let me know exactly what I have.

    Paevo Kelley wrote:

    I always back up my databases by exporting the .sql file and paste a page Virgin .sql created in DW. I noticed just now that the .sql option is missing. Is there a way that this page could has been removed? It was never really there? He could be sent back? Or do you still, I created a page .txt and paste database who him?

    I would just have comments at the beginning of the document to let me know exactly what I have.

    Nope it was never a .sql option in DW as far as I know, so you must have stored somehow in a txt file.

  • Create SQL Script

    Hello

    Is it possible to create a .sql script that, when run, will determine what OS (Windows or Linux) Oracle is hosted on? Currently, all of our scripts are written for Windows, and I believe that, for Linux, slashes should point the other way so that the script runs.

    Or, the easiest thing would be to create two copies of the script - one for Windows and for Linux? :)

    This is a double post, see [url https://forums.oracle.com/forums/thread.jspa?threadID=2492563&tstart=0] Original message

  • How to stop Contribute CS5 adding a paragraph when you create a new page via "copy of the current page.

    When I create a new page via 'Copy of the current page', the new page always gets an additional line of code. Contribute CS5 adds a paragraph that pushes my browsing down in the content area of my site. Can someone please help me get to stop this?

    <!--

    Code on the original page:

    < body >

    < div id = "container" >

    < div id = "header" >

    < div class = "logo" > < a href = "/" > < / has > < / div > <! - end .logo - >

    < div class = "navigation" >

    Code on the new page:

    < body >

    < div id = "container" >

    < div id = "header" >

    < div class = "logo" > < a href = "/" > < / has > < / div > <! - end .logo - >

    < style p = "margin-top: 0;" margin-bottom: 0; ' > < / p >

    < div class = "navigation" >


    ->

    If you are going to administer websites > users and roles > choose > change role settings > Editing > paragraph spacing, you put a line or two lines?

    If a line, select the two lines.

  • How to create the page zero in the apex oracle 4.0?

    Hi all
    How to create the page zero in the apex oracle 4.0?

    Concerning
    Mani

    Hello

    Home > Application Builder > Application xxx > create Page
    There are down to the Center on Wizard Page zero

    Kind regards
    Jari

    Published by: jarola 25 August 2010 19:28

    And here's the chapter on literature
    http://download.Oracle.com/docs/CD/E17556_01/doc/user.40/e15517/UI.htm#BGBFFFGH

  • Running SQL scripts on different databases

    Hello!

    At my work we have many databases on a server. I have to make a request so that users can run the application on a selected database SQL scripts.

    So my question may be separated into 2 sections:

    1 - is possible to let users SQL scripts run directly from the application?

    I think a database to create a page that displays the list of all the SQL scripts, that we want to use, and when you click on a specific script name in the list, it asks something like "Where the database you want to run the script?", and then, as confirmed by the user, it would show results running the script on a different page.

    is 2 - possible to let users choose what database to run these scripts?

    Any information would be helpful, I'm at the beginning of the project and am not sure at all about how to proceed, or if it is at all possible.

    Thank you!

    Fallen_Kaede wrote:

    Thanks for the quick response. I confirm that we are talking about databases on a server.

    The request is to "debug" to other databases. For example, be run scripts to the locks on the list, to show the different indexes on a table, etc. to help diagnose problems.

    It looks like the 'users' are DBA who should use OEM/Grid Control to do so.

    1 - is possible to let users SQL scripts run directly from the application?

    Lol the only way to run scripts in the APEX is the use of the SQL Scripts for SQL workshop component.

    The key word in your question is 'application '. SQL * more and Developer SQL are applications that allow users to run SQL scripts on the desktop. Scripts SQL is an APEX integrated application that allows developers to run SQL scripts on the web. However, there is no documented way supported for end users to run SQL scripts in a custom of APEX application that you created. Therefore, rethink your approach. Rather than create an application APEX runs scripts, you must convert the scripts in PL/SQL, APEX packages, pages, components and applications leverage features of the APEX and reports, graphics and interactivity (e.g. exploration links; timed refreshes etc.). This will give you a user experience improved, beyond what is possible using static SQL scripts.

    is 2 - possible to let users choose what database to run these scripts?

    The APEX applications would exist on an instance of the APEX in a database and access other databases using the database links (which can have a performance impact). It would be possible to create a LOV based on the view of the USER_DB_LINKS dictionary and use in a selection set to a global page list to provide a control to set the current context of the database. Region data sources will have to be generated dynamically in the packages of PL/SQL use the links from relevant database based on this value LOV.

  • Need to import via SQL more application advice

    Hello


    I have a sql file.
    I need to import the given in a workspace of some, but I have not access to Apex Builder request to do an import wizard.
    Can I please get some directions making this import via SQL Plus, where can I find documentation in this regard so that I can import successfully.

    Thanks in advance,
    Deepa

    Hi Deepa,

    I understand now, thanks.

    To import an application using SQL * Plus, the workspace must exist (with the ID of the same workspace). The best way to ensure that the workspace ID are the same is to export the workspace to one instance and import it in another.

    In addition, you cannot change the ID of the app through SQL * more - so, if you import the application via SQL * more, either one) this application ID cannot exist, or b) if exists, it must exist in the same workspace that you import into.

    Now - with all these conditions are met, the DBA can only run as a normal SQL through SQL script * more.

    Joel

  • Job SQL Script using UTL_Mail.send fails

    Hello world

    It comes to 10.2.0.4 on Windows

    I have configured UTL_Mail and it works when I send mails via sqlplus.

    Now, just trying to get my work very simple SQL Script to send an email.

    That's all that is in the control box (I use control of the database to create the job)

    exec UTL_MAIL.send (sender = > '[email protected]',)
    recipients = > "[email protected]"
    CC = > '[email protected] ',.
    BCC = > '[email protected] ',.
    subject = > "UTL_MAIL Test."
    message = > "Job ULTRAPRD INTEGER BKUP Email on PNCLULTRAPRD has successfully completed");



    Natural logarithm of output

    SQL * more: Release 10.2.0.4.0 - Production on Fri Jul 17 09:36:32 2009

    Copyright (c) 1982, 2007, Oracle. All rights reserved.

    SQL > SQL > SQL > SQL > connect.
    SQL > SQL > START UTL_MAIL.send(sender => '[email protected]',;) END;
    *
    ERROR on line 1:
    ORA-06550: line 1, column 53:
    PLS-00103: encountered the symbol ";" when expecting one of the following values:
    (- + new case mod not null other < an ID >)
    < between double quote delimited identifiers of > < a variable binding > avg
    current account is min max sql stddev sum variance prior
    execute forall time timestamp interval date fusion
    < a literal string with character set specification >
    < a > < a SQL string between single quotes > hose
    < a literal character in string quoted also defined specifications >
    < an alternatively-q


    SQL > SP2-0734: order unknown beginning "recipients...". "- rest of the ignored line.
    SQL > SP2-0734: order unknown beginning 'cc... '. "- rest of line is ignored.
    SQL > SP2-0734: order unknown beginning «bcc...» "- rest of line is ignored.
    SQL > SP2-0734: beginning of unknown command "subject...". "- rest of the ignored line.
    SP2-0044: for a list of known commands type HELP
    and to let EXIT.
    SQL > SP2-0734: order unknown start "message...". »


    Thanks for all the ideas. John

    Published by: user629010 on July 17, 2009 17:11

    Published by: user629010 on July 17, 2009 17:13

    Why the output does not say:

    Procedure completed successfully

    ????

    What about -

    END;
    /

    as the last 2 lines.

  • SQL script to update the Peoplesoft database information

    Hi all

    I'm a new DBA for a charity running both PS financials & HR which often must create test, training and instances of dev of our production environments. Doing so currently requires a number of manual steps to update the different nodes and paths to those required for the new instance, and naturally I did not become a DBA to do manual work ;-)

    I'm looking for these steps, but the schema PS script being what it is, I'm not having much joy to find where relevant data could be. If someone had a script to do something similar, or could point me in the direction of the tables, I would be extremely grateful. The kind of things that we currently do through the interface are:

    PeopleTools > Integration Broker > Configuration of integration > nodes
    PeopleTools > Security > security objects > Single Sign-on
    PeopleTools > Public Services > Administration > URL
    PeopleTools > Integration Broker > Configuration > Quick Setup > Integration Broker areas
    PeopleTools > Portal > node definitions
    PeopleTools > the Ren Server Configuration > Ren Server Cluster

    We are currently running MS SQL Server, but all the PL SQL scripts would be great - I just need to know what are the tables contain the data.

    Thank you very much


    Andy

    Well, it is very dependent on version Peopletools.
    An easy way might be to open the corresponding page that you speak, and then display the definition of page and the associated record. At least that is what I use to do.
    Then, update you the table background and see if she takes your new values.

    To be brief, here is an excerpt of these tables (non-exhaustive list, PT.48):
    Node of single sign - we built: pstrustnodes
    Scheduler process definition: ps_serverdefn
    Run the command: psprcsruncntl
    Message channels: pschnldefn
    The e-mail table of contents: psapmsgpub *, psapmsgsub *, psapmsgarc *.
    Definition of message node: psmsgnodedefn
    URL: psurldefn
    Definition of employment: ps_prcsjobdefn
    OPRID (e-mail address): psoprdefn
    ...

    Then fill out your own list with the method that I gave above.

    Nicolas.

Maybe you are looking for