1. Function and Global Variable Declaration
/*
* Dick Dral - Detora @ 2016
*/
/* Removes the class col-1, col-2 etc. from the div.
* This removes the fixed width from the div which gets its
* it's width from the content then
*/
function remove_col_x_class( div )
{
for ( i = 1; i <= 12 ; i++ )
{ $(div).removeClass('col-'+i); }
return div;
}
/* This function returns the label or input container of an Apex item.
* These divs can be used to put content on one line.
*/
function get_container_div ( colname, type )
{
type = ( type.toLowerCase() == 'label' ) ? 'label' : 'input';
var div = $('#'+colname.toUpperCase()+'_CONTAINER .t-Form-'+type+'Container');
return div;
}
function position_after ( itemName1, itemName2 )
{
input1 = remove_col_x_class( get_container_div(itemName1,'input') );
label2 = remove_col_x_class( get_container_div(itemName2,'label') );
input2 = remove_col_x_class( get_container_div(itemName2,'input') );
$(label2).insertAfter( $(input1) );
$(input2).insertAfter( $(label2) );
}
.2. Execute when Page Loads
position_after('P87_NEW_2','P87_NEW_3');
Md. Quium Hossain who I'm Oracle DBA & APEX Developer. All-rounder in building small, medium, and enterprise applications. Extensive knowledge in various areas of web-driven applications in Back-end (PL/SQL, SQL, Java), Front-end (Oracle APEX, Oracle Forms, Oracle Reports, HTML, JavaScript, CSS, jQuery, OracleJET, ReactJS), RESTful APIs, Third-party library integrations (Apex Office Print (AOP), Payment Gateways, SMS, Syncfusion, HighCharts) and APEX Plugins (HighChart, StarRating)
Subscribe to:
Post Comments (Atom)
How to install and configure Oracle Apex 24.1 with ORDS 22, Tomcat 9 and Jasper Report 7 on Oracle Linux 8.10
#########################Install Oracle APEX 24.1################################ ----------------------------------------------------...
-
# Report Column (only column): 1. Column Formatting > HTML Expression <span style="display:block; width: 200px"> #...
-
Installing Oracle Forms and Reports 12c on Windows 10 64 Bit. Hardware used for this installation is · Intel i3-2370M CPU · ...
-
when open forms builder then errors FRM-91129: fatal error: no value specified for required environment variable FORMS_BUILDER_CLASSPATH a...
-
---------------------------- | Keyboard Shortcut | ---------------------------- · Create: Breadcrumb Region Ctrl+/, C, B · ...
No comments:
Post a Comment