People and Culture Blog

Configuration of Bash_profile

Configuration of Bash_profile   TMP=/tmp; export TMP TMPDIR=$TMP; export TMPDIR export LD_LIBRARY_PATH=$ORACLE_HOME/lib:$LD_LIBRARY_PATH export ORACLE_SID=clone export ORACLE_HOME=/u01/oracle/clone/12.1.0 export PATH=/usr/sbin:$PATH export PATH=$ORACLE_HOME/bin:$PATH export LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib export CLASSPATH=$ORACLE_HOME/jlib:$ORACLE_HOME/rdbms/jlib SSUME_KERNEL=2.4.1; export LD_ASSUME_KERNEL THREADS_FLAG=native; export THREADS_FLAG…

Read More

Enable/Disable IR Download button based on User Role

Overview By default, the IR region allows to either enable the Download button to all users or disable the Download button to all users. Suppose if there is a requirement…

Read More

What is an recursive sub-query factoring?

1. Overview This document talks about an example of a recursive subquery factoring clause. 2. Technologies and Tools Used The following technologies have been used to achieve exporting IR data to Word format. Oracle SQL…

Read More

How to split comma/colon separated string using Oracle APEX API

1. Overview This blog talks about an example of splitting any special character string to an apex collection table using apex API. 2. Technologies and Tools Used The following technologies have been used to achieve…

Read More

Integrating React Native with SQLite

1. Overview This document explains how to integrate React native with SQLite DB. 2. Technologies and Tools Used The following technologies and tools have been used to create a sample react application…

Read More

Set Session State Value for APEX Application Item

1. Overview This blog talks about the setting session state value for application item using the JavaScript function in Oracle APEX. 2. Technologies and Tools Used The following technologies have been used to achieve this…

Read More

Set Session State Value for Oracle APEX Page Item

1. Overview This document talks about the setting session state value for page item using the JavaScript function in Oracle APEX. 2. Technologies and Tools Used The following technologies have been used to achieve this…

Read More

Submission of Concurrent request from OAF

Consider a scenario like we need to submit a concurrent request when submit button in clicked. Code to submit concurrent request should be added in AM so that it can…

Read More

Interactive Report Cell Highlight based on condition using Jquery Dynamically

This document is to give background color to cell or change font color of the cell  from query using Jquery. Technology and Tool Used : o SQL o JQuery Use Case : If a requirement arise from user to highlight a cell based on dynamic condition from query or based on a column value or based on any calculation we can achieve it with this codes. In-built apex feature will highlight the entire row and user can also remove the row wise filter. But this can be overcome with the below codes. Steps to be followed: Step 1 : Create a simple report query with employee table or  build a own report query and to that add your condition within case function SELECT ename,sal,CASE WHEN JOB = ‘PRESIDENT’ THEN ‘data-style=”color:green”‘ WHEN  JOB = ‘CLERK’ AND sal <= 3000 THEN ‘data-style=”color:orange”‘ WHEN  JOB = ‘SALESMAN’ THEN ‘data-style=”color:red”‘ ELSE NULL END css_style,job FROM emp Here ‘data-style=”color:green”‘ is the css condition that gives color the the cell. Note: If you want to change the background color of cell simply alter the statement to ‘data-style=”background-color:green”‘ Step 2 Now go to report column and select the column which you want the color to be applied and under html expression paste the following code to call the class name for the column. <span #CSS_STYLE#>#JOB#</span>  Step 3 : Now go to page properties -> Execute when page loads and paste the below code. apex.jQuery(“span[data-style]”).each(…

Read More

Set Scroll to last saved location after page submit

This document is to set the scroll to last saved location. Technology and Tool Used : Oracle Apex Javascripts Use Case : If a requirement arise from user to set scroll to the last saved location i.e before page submit a user might be somewhere in the middle of the page and once the page gets submit the cursor by default will go to the top of the page , to prevent this and to bring the cursor to the last spot where the cursor was before submitting the page, this code can be used. Steps to be followed: Step 1 : Create a page item in apex screen.  Note : The item can be in hidden state also. Step 2 : Create multiple report region or any region. The condition is that the page you have must have at least two region. Note : In my case I have created 4 reports. Step 3 : Now create a javascript code to capture the last scroll location function scroll() { //var a =  $(‘.t-Dialog-bodyWrapperIn’).scrollTop(); //Capture scroll of modal page. var a =  $(window).scrollTop(); //Capture scroll of normal page. $(“#P7_SCROLL”).val(a);  // Here P7_SCROLL is the item used to store the scroll location. } Step 4 : Now create a javascript to call the function scroll() before page submit. To achieve this create a dynamic action before page submit and select execute javascript action.…

Read More