Search This Blog

Wednesday, April 25, 2018

How to Generate and Download Text File By Oracle Apex 5.1 Using JavaScript

It is very easy to generate a text file from oracle apex by using JavaScript . Here I describe it step by step.

1.  First create a page and create a region with (Type: Static Content).
2. Create a textarea type item. (Name: P21_CONTENT ) 
3. Then copy-pest the JavaScript code into  Page >>JavaScript >>Function and Global Variable        Declaration. 

(function () {
var textFile = null,
  makeTextFile = function (text) {
    var data = new Blob([text], {type: 'text/plain'});
    if (textFile !== null) {
      window.URL.revokeObjectURL(textFile);
    }
    textFile = window.URL.createObjectURL(data);
    return textFile;
  };
  var create = document.getElementById('create'),
    textbox = document.getElementById('P21_CONTENT');

    var link = document.getElementById('downloadlink');
    link.href = makeTextFile(textbox.value);
   link.style.display = 'block';
})();


4.  P21_CONTENT it is the CSS  ID of  P21_CONTENT of  textarea item.

5. Create a button with Behavior>>Action>>Submit Page. And another one button for clearing the data of the textarea.  

6. Then  copy-pest the HTML code into the Region >> Source 

   <a download="info.txt" id="downloadlink" width="107" 
   height="10" ><b>Download</b></a> 

JOB DONE...

Now you can see a page like this. Here you write any thing on the textarea and click on Generate Text button.  Finally Click on Download link.

Demo:

1.


2.


If Not Working You One Please Comment or Contact With Me.
For any type of mistake Advance Sorry and Please inform me.


Monday, April 9, 2018

Meaning of Color

When we design a software sometime we confused to use color in GUI.
So this meaning can help you to build a good GUI.

What does the color mean?

RED Color => warmth, love, anger, danger, boldness, excitement, speed,
strength, energy, determination, desire, passion, courage, socialism

PINK Color => feminine, love, caring, nurture

ORANGE Color => cheerfulness, low cost, affordability, enthusiasm,
stimulation, creativity, aggression, food, halloween, liberal (politics)

YELLOW Color => attention-grabbing, comfort, liveliness, cowardice,
hunger, optimism, overwhelm, Summer, comfort, liveliness, intellect,
happiness, energy, conflict

GREEN Color => durability, reliability, environmental, luxurious,
optimism, well-being, nature, calm, relaxation, Spring, safety, honesty,
optimism, harmony, freshness

BLUE Color => peace, professionalism, loyalty, reliability, honor, trust,
melancholia, boredom, coldness, Winter, depth, stability, professionalism,
conservatism

PURPLE Color => power, royalty, nobility, elegance, sophistication,
artificial, luxury, mystery, royalty, elegance, magic

GRAY Color => conservatism, traditionalism, intelligence, serious, dull,
uninteresting

BROWN Color => relaxing, confident, casual, reassuring, nature, earthy,
solid, reliable, genuine, Autumn, endurance

BLACK Color => Elegance, sophistication, formality, power, strength,
illegality, depression, morbidity, night, death

WHITE Color => Cleanliness, purity, newness, virginity, peace, innocence,
simplicity, sterility, snow, ice, cold


Thank You

PDF to Text Covert by Oracle Apex

Here are the steps to convert and get the character into a region by Oracle Apex. Step1.  Create a page and Copy-Pest the below code into Pa...