Giter Site home page Giter Site logo

db_apex_utils's Introduction

Various Oracle Database and Oracle APEX utilities

In this repository You may find various Oracle Database and Oracle APEX utilities

History of changes:

  • 1.0 - created "Oracle APEX - DML On Collections" utility
  • 1.1 - created "apex_lang_utils" package
  • 1.1 - created "Lob 2 Script" utility

Oracle APEX - DML on Collections

This utility provides You the functionality to execute DML statements directly on APEX collections from pure SQL. No need for using PL/SQL APEX_COLLECTION API. This may come handy in various scenarios like using Interactive Grid for data editing or manipulating temporary data.

Installation and examples scripts with instructions can be found in the folder apex_dml_collections. But simply... just create the package, view and trigger in the target schema and You're ready to go.

Quick peek - if You want for example to populate the APEX collection with data from DEMO_CUSTOMERS table, You may execute the following INSERT statement:

INSERT INTO apex_collections_dml (
    collection_name, 
    n001,  --customer_id 
    c001,  --cust_first_name 
    c002,  --cust_last_name 
    c003,  --cust_street_address1 
    c004,  --cust_street_address2 
    c005,  --cust_city 
    c006,  --cust_state
    c007,  --cust_postal_code
    c008,  --cust_email
    c009,  --phone_number1
    c010,  --phone_number2
    c011,  --url
    c012,  --tag
    n002   --credit_limit
)
SELECT
    'DEMO_CUSTOMERS',
    customer_id, 
    cust_first_name, 
    cust_last_name, 
    cust_street_address1, 
    cust_street_address2, 
    cust_city, 
    cust_state, 
    cust_postal_code, 
    cust_email, 
    phone_number1, 
    phone_number2, 
    url, 
    tags,
    credit_limit
FROM 
    demo_customers 
;

Or You may update the collection and change the credit limit for repeat customers by 10% like this:

UPDATE apex_collections_dml
SET 
    n002 = n002 + (10 * n002 / 100)
WHERE
    c012 = 'REPEAT CUSTOMER'
AND collection_name = 'DEMO_CUSTOMERS'
;

Or delete all customers from "VA" state:

DELETE apex_collections_dml
WHERE 
    collection_name = 'DEMO_CUSTOMERS'
AND c006 = 'VA'
;

Do not forget to commit the changes ๐Ÿ˜Š

Oracle APEX - apex_lang_utils package

Compatible with the Oracle APEX vesrion 23.1

Package installation scripts can be found in the folder apex_lang_utils.

The package contains following program units:

  • a function get_xliff_per_page to export multiple XLIFF files for selected pages
  • a procedure apply_xliff_files to apply multiple XLIFF translation files stored in a single ZIP file

Oracle APEX - LOB 2 Script

Compatible with the Oracle APEX vesrion 19.2

Package installation scripts can be found in the folder lob_2_script.

Utility application can be found in the folder application.

The utility provides You functionality to create PL/SQL script from a binary file content (LOB).
Produced script can be included in Your patches and executed on the target environment, storing the LOB content in the database table cell.
It can be useful to move images, Word or Execl documents and other binary or large text files between various databases / environments.
We use it often to include APEX Office Print Word templates in patches.

db_apex_utils's People

Contributors

zorantica avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.