SlideShare a Scribd company logo
8/26/23, 11:10 PM Interactive Grid shortcodes - Ontoor blogs
https://blogs.ontoorsolutions.com/post/interactive-grid-shortcodes-oracle-apex/ 1/5
Ontoor blogs Home  Videos  Links  Categories 
APEX Tutorials
Oracle Functions
Interactive grid
2023 (19)
2022 (26)
2021 (54)
2020 (123)
2017 (12)
2016 (5)
2015 (1)
Recent Posts
Interactive Grid shortcodes
Application Session Sharing
Oracle APEX | Ontoor Conce
Workspace Environment Ba
Ontoor Shorts #9
APEX_ITEM.checkbox use c
How to Create Bubble Chart
in Oracle APEX 22.2.0 ?
Recent Comments
gethymn on Interactive repo
filter via URL ORACLE APEX
kbc official app on 3 Ways to
Inline Dialog Using jQuery O
APEX
How to create Chart Region
Oracle APEX 22.2.0 ? - Onto
on How to Create Combinat
Chart Region in Oracle APEX
?
How to create Chart Region
Oracle APEX 22.2.0 ? - Onto
on How to Create Bubble Ch
Region in Oracle APEX 22.2
Home APEX Interactive Grid shortcodes
Interactive Grid shortcodes
Disable Reorder and Resize
// Disable Reorder and Resize column
// Disable Reorder and Resize column
function
function(
(options
options)
){
{
options
options.
.defaultGridViewOptions
defaultGridViewOptions =
= {
{
reorderColumns
reorderColumns:
: false
false,
,
resizeColumns
resizeColumns:
: false
false
}
};
;
return
return options
options;
;
}
}
Hide Save Button
#gridID button[data-action="save"]
#gridID button[data-action="save"] {
{
display
display:
: none
none !important
!important;
;
}
}
Process GRID model
//Dynamic action on Grid ROW selection Changed
//Dynamic action on Grid ROW selection Changed
model
model =
= this
this.
.data
data.
.model
model;
;
for
for (
( i
i =
= 0
0;
; i
i <
< this
this.
.data
data.
.selectedRecords
selectedRecords.
.length
length;
; i
i++
++ )
) {
{
model
model.
.getValue
getValue(
( this
this.
.data
data.
.selectedRecords
selectedRecords[
[i
i]
],
, "<COLUMN_ALIAS>"
"<COLUMN_ALIAS>")
);
;
*
* *
* *
* *
* *
*
}
}
// Selected row Using Grid ID
// Selected row Using Grid ID
let gridView
let gridView =
= apex
apex.
.region
region(
("<Grid ID>"
"<Grid ID>")
).
.widget
widget(
()
).
.interactiveGrid
interactiveGrid(
("g
"g
let selectedRecords
let selectedRecords =
= gridView
gridView.
.getSelectedRecords
getSelectedRecords(
()
);
;
// We get the index for the column in the IG model
// We get the index for the column in the IG model
let col_1_idx
let col_1_idx =
= gridView
gridView.
.modelColumns
modelColumns[
['<COLUMN 1>'
'<COLUMN 1>']
].
.index
index;
;
let col_2_idx
let col_2_idx =
= gridView
gridView.
.modelColumns
modelColumns[
['<COLUMN 1>'
'<COLUMN 1>']
].
.index
index;
;
*
* *
* *
* *
* *
* *
* *
* *
*
APEX By Ashish Sahay · August 11, 2023 · 0 Comment
COPY CODE
COPY CODE
COPY CODE
COPY CODE
Ontoor Solutions
Ontoor Solutions
Search
8/26/23, 11:10 PM Interactive Grid shortcodes - Ontoor blogs
https://blogs.ontoorsolutions.com/post/interactive-grid-shortcodes-oracle-apex/ 2/5
How to Create Bubble Chart
in Oracle APEX 22.2.0 ? - On
blogs on How to create Cha
Region in Oracle APEX 22.2
Categories
APEX (184)
APEX Hours (2)
APEX Tutorials (17)
DBA (3)
Events and Webinars (3)
GITHUB (3)
IG (14)
Interactive Grid (18)
JavaScript (5)
Ontoor Concepts (5)
Ontoor Extras (1)
ORACLE (43)
Oracle Tutorials (1)
ORDS (2)
Others (4)
PLSQL (12)
PLUGINS (12)
Shorts (9)
SQL (17)
*
* *
* *
* *
* *
* *
* *
* *
*
if
if(
(selectedRecords
selectedRecords.
.length
length ===
=== 1
1)
){
{
console
console.
.log
log(
(selectedRecords
selectedRecords[
[0
0]
][
[col_1_idx
col_1_idx]
])
);
;
console
console.
.log
log(
(selectedRecords
selectedRecords[
[0
0]
][
[col_2_idx
col_2_idx]
])
);
;
}
}
GRID actions
// Save
// Save
apex
apex.
.region
region(
("emp"
"emp")
).
.call
call(
("getActions"
"getActions")
).
.invoke
invoke(
("save"
"save")
);
;
// Edit
// Edit
apex
apex.
.region
region(
("emp"
"emp")
).
.call
call(
("getActions"
"getActions")
).
.invoke
invoke(
("edit"
"edit")
);
;
// refresh
// refresh
apex
apex.
.region
region(
("emp"
"emp")
).
.call
call(
("getActions"
"getActions")
).
.invoke
invoke(
("refresh"
"refresh")
);
;
// Selected Refresh
// Selected Refresh
apex
apex.
.region
region(
("emp"
"emp")
).
.call
call(
("getActions"
"getActions")
).
.invoke
invoke(
("selection-refresh"
"selection-refresh")
);
;
Horizontal Scrollbars
#grid_id .a-GV-w-hdr{
#grid_id .a-GV-w-hdr{
overflow
overflow-
-x
x:
: auto
auto !
!important
important;
;
}
}
Persistent Selection
function
function (
(config
config)
){
{
config
config.
.defaultGridViewOptions
defaultGridViewOptions =
= {
{
persistSelection
persistSelection:
: true
true;
;
}
};
;
return
return config
config;
;
}
}
Add Row using JS
// Add Row
// Add Row
var
var $widget
$widget =
= apex
apex.
.region
region(
('<grid_id>'
'<grid_id>')
).
.widget
widget(
()
);
;
var
var $grid
$grid =
= $widget
$widget.
.interactiveGrid
interactiveGrid(
('getViews'
'getViews',
, 'grid'
'grid')
);
;
var
var $model
$model =
= $grid
$grid.
.model
model;
;
// insert new record on a model
// insert new record on a model
var
var newRecordId
newRecordId =
= $model
$model.
.insertNewRecord
insertNewRecord(
()
);
;
COPY CODE
COPY CODE
COPY CODE
COPY CODE
8/26/23, 11:10 PM Interactive Grid shortcodes - Ontoor blogs
https://blogs.ontoorsolutions.com/post/interactive-grid-shortcodes-oracle-apex/ 3/5
// get the new record
// get the new record
var
var $newRecord
$newRecord =
= $model
$model.
.getRecord
getRecord(
(newRecordId
newRecordId)
);
;
//update record values
//update record values
$model
$model.
.setValue
setValue(
($newRecord
$newRecord,
, '<COLUMN_ALIAS 1>'
'<COLUMN_ALIAS 1>',
, 'Custom Value'
'Custom Value')
);
;
*
* *
* *
* *
* *
* *
* *
* *
* *
* *
* *
* *
*
*
* *
* *
* *
* *
* *
* *
* *
* *
* *
* *
* *
*
$model
$model.
.setValue
setValue(
($newRecord
$newRecord,
, '<COLUMN_ALIAS 2>'
'<COLUMN_ALIAS 2>',
, 'Custom Value'
'Custom Value')
);
;
Related Posts
Ashish Sahay Interactive Grid Shortcode
APEX_ITEM.checkbox use case
APEX_ITEM is a built-in API that provides many types of input types using SQL queries.
We use it for Interactive reports and classic reports. This article is about the
checkboxes in APEX reports. Let’s explore the checkbox use case and... Read more
APEX By Ashish Sahay · January 18, 2023 · 0 Comment
How to Create Bubble Chart Region in Oracle APEX
22.2.0 ?
1. Sign in to Oracle Application Express by entering the credentials (Workspace,
Username and Password).2. On the workspace home page, click the App
Builder icon.3. Click on your Application Name in which you want to create a New Page.
4. Click on “Create Page” button. 5. Select Component tab and Select a template for
your... Read more
APEX By Harish Kumar · January 17, 2023 · 1 Comment
How to Create Combination Chart Region in Oracle
APEX 22.2.0 ?
A combination chart, also known as a combo chart, is a type of chart that combines
two or more chart types in a single visualization. This allows you to display multiple
types of data in a single chart, making it... Read more
APEX By Harish Kumar · January 16, 2023 · 1 Comment
How to create oracle APEX plugins
Oracle APEX (Application Express) plugins are custom components that can be added
to APEX pages to extend the functionality of the application. To create an APEX plugin,
you will need to have an understanding of HTML, CSS, JavaScript, and PL/SQL.... Read
more
APEX By Ashish Sahay · January 14, 2023 · 0 Comment
How to create Scatter Chart Region in Oracle APEX
22.2.0 ?
A scatter chart is a type of chart that uses Cartesian coordinates to display values for
typically two variables for a set of data. The position of each point on the horizontal and
vertical axis represents the values of the... Read more
APEX By Harish Kumar · January 10, 2023 · 1 Comment
8/26/23, 11:10 PM Interactive Grid shortcodes - Ontoor blogs
https://blogs.ontoorsolutions.com/post/interactive-grid-shortcodes-oracle-apex/ 4/5
Name * Email *
Leave a Reply
Your email address will not be published. Required fields are marked *
Comment *
How to create Donut Chart Region in Oracle Apex
22.2.0 ?
3. Click on the “Create Page” button in the top menu. 4. Select Component tab and
choose the “Charts” option and click on “Next”. 5. Select “Donut Chart” from the Chart
Type list. There are several types of charts available, including area charts, bar charts,
pie charts, and line charts etc. and... Read more
APEX By Harish Kumar · January 7, 2023 · 2 Comments
How to create Pie Chart Region in Oracle APEX 22.2.0
?
A pie chart is a circular statistical graphic, which is divided into slices to illustrate
numerical proportion. In a pie chart, the arc length of each slice is proportional to the
quantity it represents. Pie charts are very useful for... Read more
APEX By Harish Kumar · January 6, 2023 · 2 Comments
How to create Line Chart Region in Oracle APEX
22.2.0 ?
A line chart is a graphical representation of data that changes over time. It is useful for
showing trends and patterns in data over a period of time. In a line chart, data points
are plotted on a grid and... Read more
APEX By Harish Kumar · January 5, 2023 · 2 Comments
Open Door Credentials
Open Door Credentials – Enables anyone to access your application using a login page
that captures a user name. Steps to setup Open Door Credentials Parent Article:
Authentication Types Read more
APEX By Ashish Sahay · January 4, 2023 · 1 Comment
Custom Authentication Oracle APEX
Custom Authentication is the Authentication type where we can use the custom logic to
login into the APEX application. They need to be written in PLSQL and must return a
Boolean value. An “Authentication Function Name” is required to define... Read more
APEX By Ashish Sahay · January 4, 2023 · 0 Comment
8/26/23, 11:10 PM Interactive Grid shortcodes - Ontoor blogs
https://blogs.ontoorsolutions.com/post/interactive-grid-shortcodes-oracle-apex/ 5/5
Website
Save my name, email, and website in this browser for the next time I comment.
Post Comment

More Related Content

Similar to Interactive Grid shortcodes - Ontoor blogs.pdf

Angular from Zero to Mastery - Training (Intermediate)
Angular from Zero to Mastery - Training (Intermediate)Angular from Zero to Mastery - Training (Intermediate)
Angular from Zero to Mastery - Training (Intermediate)
Smail LOUNES
 
Step-by-Step: APEX Installation on Tomcat (Windows Server 2016)
Step-by-Step: APEX Installation on Tomcat (Windows Server 2016)Step-by-Step: APEX Installation on Tomcat (Windows Server 2016)
Step-by-Step: APEX Installation on Tomcat (Windows Server 2016)
sheriframadan18
 
AMIS Oracle OpenWorld en Code One Review 2018 - Pillar 2: Custom Application ...
AMIS Oracle OpenWorld en Code One Review 2018 - Pillar 2: Custom Application ...AMIS Oracle OpenWorld en Code One Review 2018 - Pillar 2: Custom Application ...
AMIS Oracle OpenWorld en Code One Review 2018 - Pillar 2: Custom Application ...
Getting value from IoT, Integration and Data Analytics
 
AMIS Oracle OpenWorld & CodeOne Review - Pillar 2 - Custom Application Develo...
AMIS Oracle OpenWorld & CodeOne Review - Pillar 2 - Custom Application Develo...AMIS Oracle OpenWorld & CodeOne Review - Pillar 2 - Custom Application Develo...
AMIS Oracle OpenWorld & CodeOne Review - Pillar 2 - Custom Application Develo...
Lucas Jellema
 
Oracle apex training
Oracle apex trainingOracle apex training
Oracle apex training
Vasudha India
 
Asp.Net Core MVC with Entity Framework
Asp.Net Core MVC with Entity FrameworkAsp.Net Core MVC with Entity Framework
Asp.Net Core MVC with Entity Framework
Shravan A
 
Winter '19 release development.ppt
Winter '19 release development.pptWinter '19 release development.ppt
Winter '19 release development.ppt
Kailas Shimpi
 
AMIS Oracle OpenWorld 2015 Review – part 4- PaaS Application Development, Jav...
AMIS Oracle OpenWorld 2015 Review – part 4- PaaS Application Development, Jav...AMIS Oracle OpenWorld 2015 Review – part 4- PaaS Application Development, Jav...
AMIS Oracle OpenWorld 2015 Review – part 4- PaaS Application Development, Jav...
Getting value from IoT, Integration and Data Analytics
 
Adf 11
Adf 11Adf 11
Essential Kit for Oracle JET Programming
Essential Kit for Oracle JET ProgrammingEssential Kit for Oracle JET Programming
Essential Kit for Oracle JET Programming
andrejusb
 
Rits Brown Bag - Salesforce Lightning
Rits Brown Bag - Salesforce LightningRits Brown Bag - Salesforce Lightning
Rits Brown Bag - Salesforce Lightning
Right IT Services
 
Spring boot microservice metrics monitoring
Spring boot   microservice metrics monitoringSpring boot   microservice metrics monitoring
Spring boot microservice metrics monitoring
Oracle Korea
 
Spring Boot - Microservice Metrics Monitoring
Spring Boot - Microservice Metrics MonitoringSpring Boot - Microservice Metrics Monitoring
Spring Boot - Microservice Metrics Monitoring
DonghuKIM2
 
PHP UK 2020 Tutorial: MySQL Indexes, Histograms And other ways To Speed Up Yo...
PHP UK 2020 Tutorial: MySQL Indexes, Histograms And other ways To Speed Up Yo...PHP UK 2020 Tutorial: MySQL Indexes, Histograms And other ways To Speed Up Yo...
PHP UK 2020 Tutorial: MySQL Indexes, Histograms And other ways To Speed Up Yo...
Dave Stokes
 
Apex Code Analysis Using the Tooling API and Canvas
Apex Code Analysis Using the Tooling API and CanvasApex Code Analysis Using the Tooling API and Canvas
Apex Code Analysis Using the Tooling API and Canvas
Salesforce Developers
 
Oracle Cloud Infrastructure:2020年6月度サービス・アップデート
Oracle Cloud Infrastructure:2020年6月度サービス・アップデートOracle Cloud Infrastructure:2020年6月度サービス・アップデート
Oracle Cloud Infrastructure:2020年6月度サービス・アップデート
オラクルエンジニア通信
 
Top 10 Techniques For React Performance Optimization in 2022.pptx
Top 10 Techniques For React Performance Optimization in 2022.pptxTop 10 Techniques For React Performance Optimization in 2022.pptx
Top 10 Techniques For React Performance Optimization in 2022.pptx
BOSC Tech Labs
 
Design and functional_specification
Design and functional_specificationDesign and functional_specification
Design and functional_specification
Pushkarprabhat SAXENA
 
Oracle restful api & data live charting by Oracle Apex - داشبورد آنلاین (داده...
Oracle restful api & data live charting by Oracle Apex - داشبورد آنلاین (داده...Oracle restful api & data live charting by Oracle Apex - داشبورد آنلاین (داده...
Oracle restful api & data live charting by Oracle Apex - داشبورد آنلاین (داده...
mahdi ahmadi
 
3 tier architecture in asp.net
3 tier architecture in asp.net3 tier architecture in asp.net
3 tier architecture in asp.net
Ravi Bansal
 

Similar to Interactive Grid shortcodes - Ontoor blogs.pdf (20)

Angular from Zero to Mastery - Training (Intermediate)
Angular from Zero to Mastery - Training (Intermediate)Angular from Zero to Mastery - Training (Intermediate)
Angular from Zero to Mastery - Training (Intermediate)
 
Step-by-Step: APEX Installation on Tomcat (Windows Server 2016)
Step-by-Step: APEX Installation on Tomcat (Windows Server 2016)Step-by-Step: APEX Installation on Tomcat (Windows Server 2016)
Step-by-Step: APEX Installation on Tomcat (Windows Server 2016)
 
AMIS Oracle OpenWorld en Code One Review 2018 - Pillar 2: Custom Application ...
AMIS Oracle OpenWorld en Code One Review 2018 - Pillar 2: Custom Application ...AMIS Oracle OpenWorld en Code One Review 2018 - Pillar 2: Custom Application ...
AMIS Oracle OpenWorld en Code One Review 2018 - Pillar 2: Custom Application ...
 
AMIS Oracle OpenWorld & CodeOne Review - Pillar 2 - Custom Application Develo...
AMIS Oracle OpenWorld & CodeOne Review - Pillar 2 - Custom Application Develo...AMIS Oracle OpenWorld & CodeOne Review - Pillar 2 - Custom Application Develo...
AMIS Oracle OpenWorld & CodeOne Review - Pillar 2 - Custom Application Develo...
 
Oracle apex training
Oracle apex trainingOracle apex training
Oracle apex training
 
Asp.Net Core MVC with Entity Framework
Asp.Net Core MVC with Entity FrameworkAsp.Net Core MVC with Entity Framework
Asp.Net Core MVC with Entity Framework
 
Winter '19 release development.ppt
Winter '19 release development.pptWinter '19 release development.ppt
Winter '19 release development.ppt
 
AMIS Oracle OpenWorld 2015 Review – part 4- PaaS Application Development, Jav...
AMIS Oracle OpenWorld 2015 Review – part 4- PaaS Application Development, Jav...AMIS Oracle OpenWorld 2015 Review – part 4- PaaS Application Development, Jav...
AMIS Oracle OpenWorld 2015 Review – part 4- PaaS Application Development, Jav...
 
Adf 11
Adf 11Adf 11
Adf 11
 
Essential Kit for Oracle JET Programming
Essential Kit for Oracle JET ProgrammingEssential Kit for Oracle JET Programming
Essential Kit for Oracle JET Programming
 
Rits Brown Bag - Salesforce Lightning
Rits Brown Bag - Salesforce LightningRits Brown Bag - Salesforce Lightning
Rits Brown Bag - Salesforce Lightning
 
Spring boot microservice metrics monitoring
Spring boot   microservice metrics monitoringSpring boot   microservice metrics monitoring
Spring boot microservice metrics monitoring
 
Spring Boot - Microservice Metrics Monitoring
Spring Boot - Microservice Metrics MonitoringSpring Boot - Microservice Metrics Monitoring
Spring Boot - Microservice Metrics Monitoring
 
PHP UK 2020 Tutorial: MySQL Indexes, Histograms And other ways To Speed Up Yo...
PHP UK 2020 Tutorial: MySQL Indexes, Histograms And other ways To Speed Up Yo...PHP UK 2020 Tutorial: MySQL Indexes, Histograms And other ways To Speed Up Yo...
PHP UK 2020 Tutorial: MySQL Indexes, Histograms And other ways To Speed Up Yo...
 
Apex Code Analysis Using the Tooling API and Canvas
Apex Code Analysis Using the Tooling API and CanvasApex Code Analysis Using the Tooling API and Canvas
Apex Code Analysis Using the Tooling API and Canvas
 
Oracle Cloud Infrastructure:2020年6月度サービス・アップデート
Oracle Cloud Infrastructure:2020年6月度サービス・アップデートOracle Cloud Infrastructure:2020年6月度サービス・アップデート
Oracle Cloud Infrastructure:2020年6月度サービス・アップデート
 
Top 10 Techniques For React Performance Optimization in 2022.pptx
Top 10 Techniques For React Performance Optimization in 2022.pptxTop 10 Techniques For React Performance Optimization in 2022.pptx
Top 10 Techniques For React Performance Optimization in 2022.pptx
 
Design and functional_specification
Design and functional_specificationDesign and functional_specification
Design and functional_specification
 
Oracle restful api & data live charting by Oracle Apex - داشبورد آنلاین (داده...
Oracle restful api & data live charting by Oracle Apex - داشبورد آنلاین (داده...Oracle restful api & data live charting by Oracle Apex - داشبورد آنلاین (داده...
Oracle restful api & data live charting by Oracle Apex - داشبورد آنلاین (داده...
 
3 tier architecture in asp.net
3 tier architecture in asp.net3 tier architecture in asp.net
3 tier architecture in asp.net
 

Recently uploaded

ScyllaDB Tablets: Rethinking Replication
ScyllaDB Tablets: Rethinking ReplicationScyllaDB Tablets: Rethinking Replication
ScyllaDB Tablets: Rethinking Replication
ScyllaDB
 
Christine's Supplier Sourcing Presentaion.pptx
Christine's Supplier Sourcing Presentaion.pptxChristine's Supplier Sourcing Presentaion.pptx
Christine's Supplier Sourcing Presentaion.pptx
christinelarrosa
 
Mutation Testing for Task-Oriented Chatbots
Mutation Testing for Task-Oriented ChatbotsMutation Testing for Task-Oriented Chatbots
Mutation Testing for Task-Oriented Chatbots
Pablo Gómez Abajo
 
[OReilly Superstream] Occupy the Space: A grassroots guide to engineering (an...
[OReilly Superstream] Occupy the Space: A grassroots guide to engineering (an...[OReilly Superstream] Occupy the Space: A grassroots guide to engineering (an...
[OReilly Superstream] Occupy the Space: A grassroots guide to engineering (an...
Jason Yip
 
“Temporal Event Neural Networks: A More Efficient Alternative to the Transfor...
“Temporal Event Neural Networks: A More Efficient Alternative to the Transfor...“Temporal Event Neural Networks: A More Efficient Alternative to the Transfor...
“Temporal Event Neural Networks: A More Efficient Alternative to the Transfor...
Edge AI and Vision Alliance
 
"Scaling RAG Applications to serve millions of users", Kevin Goedecke
"Scaling RAG Applications to serve millions of users",  Kevin Goedecke"Scaling RAG Applications to serve millions of users",  Kevin Goedecke
"Scaling RAG Applications to serve millions of users", Kevin Goedecke
Fwdays
 
The Microsoft 365 Migration Tutorial For Beginner.pptx
The Microsoft 365 Migration Tutorial For Beginner.pptxThe Microsoft 365 Migration Tutorial For Beginner.pptx
The Microsoft 365 Migration Tutorial For Beginner.pptx
operationspcvita
 
AppSec PNW: Android and iOS Application Security with MobSF
AppSec PNW: Android and iOS Application Security with MobSFAppSec PNW: Android and iOS Application Security with MobSF
AppSec PNW: Android and iOS Application Security with MobSF
Ajin Abraham
 
Apps Break Data
Apps Break DataApps Break Data
Apps Break Data
Ivo Velitchkov
 
"Frontline Battles with DDoS: Best practices and Lessons Learned", Igor Ivaniuk
"Frontline Battles with DDoS: Best practices and Lessons Learned",  Igor Ivaniuk"Frontline Battles with DDoS: Best practices and Lessons Learned",  Igor Ivaniuk
"Frontline Battles with DDoS: Best practices and Lessons Learned", Igor Ivaniuk
Fwdays
 
Christine's Product Research Presentation.pptx
Christine's Product Research Presentation.pptxChristine's Product Research Presentation.pptx
Christine's Product Research Presentation.pptx
christinelarrosa
 
Must Know Postgres Extension for DBA and Developer during Migration
Must Know Postgres Extension for DBA and Developer during MigrationMust Know Postgres Extension for DBA and Developer during Migration
Must Know Postgres Extension for DBA and Developer during Migration
Mydbops
 
"NATO Hackathon Winner: AI-Powered Drug Search", Taras Kloba
"NATO Hackathon Winner: AI-Powered Drug Search",  Taras Kloba"NATO Hackathon Winner: AI-Powered Drug Search",  Taras Kloba
"NATO Hackathon Winner: AI-Powered Drug Search", Taras Kloba
Fwdays
 
Principle of conventional tomography-Bibash Shahi ppt..pptx
Principle of conventional tomography-Bibash Shahi ppt..pptxPrinciple of conventional tomography-Bibash Shahi ppt..pptx
Principle of conventional tomography-Bibash Shahi ppt..pptx
BibashShahi
 
From Natural Language to Structured Solr Queries using LLMs
From Natural Language to Structured Solr Queries using LLMsFrom Natural Language to Structured Solr Queries using LLMs
From Natural Language to Structured Solr Queries using LLMs
Sease
 
inQuba Webinar Mastering Customer Journey Management with Dr Graham Hill
inQuba Webinar Mastering Customer Journey Management with Dr Graham HillinQuba Webinar Mastering Customer Journey Management with Dr Graham Hill
inQuba Webinar Mastering Customer Journey Management with Dr Graham Hill
LizaNolte
 
Essentials of Automations: Exploring Attributes & Automation Parameters
Essentials of Automations: Exploring Attributes & Automation ParametersEssentials of Automations: Exploring Attributes & Automation Parameters
Essentials of Automations: Exploring Attributes & Automation Parameters
Safe Software
 
GNSS spoofing via SDR (Criptored Talks 2024)
GNSS spoofing via SDR (Criptored Talks 2024)GNSS spoofing via SDR (Criptored Talks 2024)
GNSS spoofing via SDR (Criptored Talks 2024)
Javier Junquera
 
Day 2 - Intro to UiPath Studio Fundamentals
Day 2 - Intro to UiPath Studio FundamentalsDay 2 - Intro to UiPath Studio Fundamentals
Day 2 - Intro to UiPath Studio Fundamentals
UiPathCommunity
 
Connector Corner: Seamlessly power UiPath Apps, GenAI with prebuilt connectors
Connector Corner: Seamlessly power UiPath Apps, GenAI with prebuilt connectorsConnector Corner: Seamlessly power UiPath Apps, GenAI with prebuilt connectors
Connector Corner: Seamlessly power UiPath Apps, GenAI with prebuilt connectors
DianaGray10
 

Recently uploaded (20)

ScyllaDB Tablets: Rethinking Replication
ScyllaDB Tablets: Rethinking ReplicationScyllaDB Tablets: Rethinking Replication
ScyllaDB Tablets: Rethinking Replication
 
Christine's Supplier Sourcing Presentaion.pptx
Christine's Supplier Sourcing Presentaion.pptxChristine's Supplier Sourcing Presentaion.pptx
Christine's Supplier Sourcing Presentaion.pptx
 
Mutation Testing for Task-Oriented Chatbots
Mutation Testing for Task-Oriented ChatbotsMutation Testing for Task-Oriented Chatbots
Mutation Testing for Task-Oriented Chatbots
 
[OReilly Superstream] Occupy the Space: A grassroots guide to engineering (an...
[OReilly Superstream] Occupy the Space: A grassroots guide to engineering (an...[OReilly Superstream] Occupy the Space: A grassroots guide to engineering (an...
[OReilly Superstream] Occupy the Space: A grassroots guide to engineering (an...
 
“Temporal Event Neural Networks: A More Efficient Alternative to the Transfor...
“Temporal Event Neural Networks: A More Efficient Alternative to the Transfor...“Temporal Event Neural Networks: A More Efficient Alternative to the Transfor...
“Temporal Event Neural Networks: A More Efficient Alternative to the Transfor...
 
"Scaling RAG Applications to serve millions of users", Kevin Goedecke
"Scaling RAG Applications to serve millions of users",  Kevin Goedecke"Scaling RAG Applications to serve millions of users",  Kevin Goedecke
"Scaling RAG Applications to serve millions of users", Kevin Goedecke
 
The Microsoft 365 Migration Tutorial For Beginner.pptx
The Microsoft 365 Migration Tutorial For Beginner.pptxThe Microsoft 365 Migration Tutorial For Beginner.pptx
The Microsoft 365 Migration Tutorial For Beginner.pptx
 
AppSec PNW: Android and iOS Application Security with MobSF
AppSec PNW: Android and iOS Application Security with MobSFAppSec PNW: Android and iOS Application Security with MobSF
AppSec PNW: Android and iOS Application Security with MobSF
 
Apps Break Data
Apps Break DataApps Break Data
Apps Break Data
 
"Frontline Battles with DDoS: Best practices and Lessons Learned", Igor Ivaniuk
"Frontline Battles with DDoS: Best practices and Lessons Learned",  Igor Ivaniuk"Frontline Battles with DDoS: Best practices and Lessons Learned",  Igor Ivaniuk
"Frontline Battles with DDoS: Best practices and Lessons Learned", Igor Ivaniuk
 
Christine's Product Research Presentation.pptx
Christine's Product Research Presentation.pptxChristine's Product Research Presentation.pptx
Christine's Product Research Presentation.pptx
 
Must Know Postgres Extension for DBA and Developer during Migration
Must Know Postgres Extension for DBA and Developer during MigrationMust Know Postgres Extension for DBA and Developer during Migration
Must Know Postgres Extension for DBA and Developer during Migration
 
"NATO Hackathon Winner: AI-Powered Drug Search", Taras Kloba
"NATO Hackathon Winner: AI-Powered Drug Search",  Taras Kloba"NATO Hackathon Winner: AI-Powered Drug Search",  Taras Kloba
"NATO Hackathon Winner: AI-Powered Drug Search", Taras Kloba
 
Principle of conventional tomography-Bibash Shahi ppt..pptx
Principle of conventional tomography-Bibash Shahi ppt..pptxPrinciple of conventional tomography-Bibash Shahi ppt..pptx
Principle of conventional tomography-Bibash Shahi ppt..pptx
 
From Natural Language to Structured Solr Queries using LLMs
From Natural Language to Structured Solr Queries using LLMsFrom Natural Language to Structured Solr Queries using LLMs
From Natural Language to Structured Solr Queries using LLMs
 
inQuba Webinar Mastering Customer Journey Management with Dr Graham Hill
inQuba Webinar Mastering Customer Journey Management with Dr Graham HillinQuba Webinar Mastering Customer Journey Management with Dr Graham Hill
inQuba Webinar Mastering Customer Journey Management with Dr Graham Hill
 
Essentials of Automations: Exploring Attributes & Automation Parameters
Essentials of Automations: Exploring Attributes & Automation ParametersEssentials of Automations: Exploring Attributes & Automation Parameters
Essentials of Automations: Exploring Attributes & Automation Parameters
 
GNSS spoofing via SDR (Criptored Talks 2024)
GNSS spoofing via SDR (Criptored Talks 2024)GNSS spoofing via SDR (Criptored Talks 2024)
GNSS spoofing via SDR (Criptored Talks 2024)
 
Day 2 - Intro to UiPath Studio Fundamentals
Day 2 - Intro to UiPath Studio FundamentalsDay 2 - Intro to UiPath Studio Fundamentals
Day 2 - Intro to UiPath Studio Fundamentals
 
Connector Corner: Seamlessly power UiPath Apps, GenAI with prebuilt connectors
Connector Corner: Seamlessly power UiPath Apps, GenAI with prebuilt connectorsConnector Corner: Seamlessly power UiPath Apps, GenAI with prebuilt connectors
Connector Corner: Seamlessly power UiPath Apps, GenAI with prebuilt connectors
 

Interactive Grid shortcodes - Ontoor blogs.pdf

  • 1. 8/26/23, 11:10 PM Interactive Grid shortcodes - Ontoor blogs https://blogs.ontoorsolutions.com/post/interactive-grid-shortcodes-oracle-apex/ 1/5 Ontoor blogs Home  Videos  Links  Categories  APEX Tutorials Oracle Functions Interactive grid 2023 (19) 2022 (26) 2021 (54) 2020 (123) 2017 (12) 2016 (5) 2015 (1) Recent Posts Interactive Grid shortcodes Application Session Sharing Oracle APEX | Ontoor Conce Workspace Environment Ba Ontoor Shorts #9 APEX_ITEM.checkbox use c How to Create Bubble Chart in Oracle APEX 22.2.0 ? Recent Comments gethymn on Interactive repo filter via URL ORACLE APEX kbc official app on 3 Ways to Inline Dialog Using jQuery O APEX How to create Chart Region Oracle APEX 22.2.0 ? - Onto on How to Create Combinat Chart Region in Oracle APEX ? How to create Chart Region Oracle APEX 22.2.0 ? - Onto on How to Create Bubble Ch Region in Oracle APEX 22.2 Home APEX Interactive Grid shortcodes Interactive Grid shortcodes Disable Reorder and Resize // Disable Reorder and Resize column // Disable Reorder and Resize column function function( (options options) ){ { options options. .defaultGridViewOptions defaultGridViewOptions = = { { reorderColumns reorderColumns: : false false, , resizeColumns resizeColumns: : false false } }; ; return return options options; ; } } Hide Save Button #gridID button[data-action="save"] #gridID button[data-action="save"] { { display display: : none none !important !important; ; } } Process GRID model //Dynamic action on Grid ROW selection Changed //Dynamic action on Grid ROW selection Changed model model = = this this. .data data. .model model; ; for for ( ( i i = = 0 0; ; i i < < this this. .data data. .selectedRecords selectedRecords. .length length; ; i i++ ++ ) ) { { model model. .getValue getValue( ( this this. .data data. .selectedRecords selectedRecords[ [i i] ], , "<COLUMN_ALIAS>" "<COLUMN_ALIAS>") ); ; * * * * * * * * * * } } // Selected row Using Grid ID // Selected row Using Grid ID let gridView let gridView = = apex apex. .region region( ("<Grid ID>" "<Grid ID>") ). .widget widget( () ). .interactiveGrid interactiveGrid( ("g "g let selectedRecords let selectedRecords = = gridView gridView. .getSelectedRecords getSelectedRecords( () ); ; // We get the index for the column in the IG model // We get the index for the column in the IG model let col_1_idx let col_1_idx = = gridView gridView. .modelColumns modelColumns[ ['<COLUMN 1>' '<COLUMN 1>'] ]. .index index; ; let col_2_idx let col_2_idx = = gridView gridView. .modelColumns modelColumns[ ['<COLUMN 1>' '<COLUMN 1>'] ]. .index index; ; * * * * * * * * * * * * * * * * APEX By Ashish Sahay · August 11, 2023 · 0 Comment COPY CODE COPY CODE COPY CODE COPY CODE Ontoor Solutions Ontoor Solutions Search
  • 2. 8/26/23, 11:10 PM Interactive Grid shortcodes - Ontoor blogs https://blogs.ontoorsolutions.com/post/interactive-grid-shortcodes-oracle-apex/ 2/5 How to Create Bubble Chart in Oracle APEX 22.2.0 ? - On blogs on How to create Cha Region in Oracle APEX 22.2 Categories APEX (184) APEX Hours (2) APEX Tutorials (17) DBA (3) Events and Webinars (3) GITHUB (3) IG (14) Interactive Grid (18) JavaScript (5) Ontoor Concepts (5) Ontoor Extras (1) ORACLE (43) Oracle Tutorials (1) ORDS (2) Others (4) PLSQL (12) PLUGINS (12) Shorts (9) SQL (17) * * * * * * * * * * * * * * * * if if( (selectedRecords selectedRecords. .length length === === 1 1) ){ { console console. .log log( (selectedRecords selectedRecords[ [0 0] ][ [col_1_idx col_1_idx] ]) ); ; console console. .log log( (selectedRecords selectedRecords[ [0 0] ][ [col_2_idx col_2_idx] ]) ); ; } } GRID actions // Save // Save apex apex. .region region( ("emp" "emp") ). .call call( ("getActions" "getActions") ). .invoke invoke( ("save" "save") ); ; // Edit // Edit apex apex. .region region( ("emp" "emp") ). .call call( ("getActions" "getActions") ). .invoke invoke( ("edit" "edit") ); ; // refresh // refresh apex apex. .region region( ("emp" "emp") ). .call call( ("getActions" "getActions") ). .invoke invoke( ("refresh" "refresh") ); ; // Selected Refresh // Selected Refresh apex apex. .region region( ("emp" "emp") ). .call call( ("getActions" "getActions") ). .invoke invoke( ("selection-refresh" "selection-refresh") ); ; Horizontal Scrollbars #grid_id .a-GV-w-hdr{ #grid_id .a-GV-w-hdr{ overflow overflow- -x x: : auto auto ! !important important; ; } } Persistent Selection function function ( (config config) ){ { config config. .defaultGridViewOptions defaultGridViewOptions = = { { persistSelection persistSelection: : true true; ; } }; ; return return config config; ; } } Add Row using JS // Add Row // Add Row var var $widget $widget = = apex apex. .region region( ('<grid_id>' '<grid_id>') ). .widget widget( () ); ; var var $grid $grid = = $widget $widget. .interactiveGrid interactiveGrid( ('getViews' 'getViews', , 'grid' 'grid') ); ; var var $model $model = = $grid $grid. .model model; ; // insert new record on a model // insert new record on a model var var newRecordId newRecordId = = $model $model. .insertNewRecord insertNewRecord( () ); ; COPY CODE COPY CODE COPY CODE COPY CODE
  • 3. 8/26/23, 11:10 PM Interactive Grid shortcodes - Ontoor blogs https://blogs.ontoorsolutions.com/post/interactive-grid-shortcodes-oracle-apex/ 3/5 // get the new record // get the new record var var $newRecord $newRecord = = $model $model. .getRecord getRecord( (newRecordId newRecordId) ); ; //update record values //update record values $model $model. .setValue setValue( ($newRecord $newRecord, , '<COLUMN_ALIAS 1>' '<COLUMN_ALIAS 1>', , 'Custom Value' 'Custom Value') ); ; * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * $model $model. .setValue setValue( ($newRecord $newRecord, , '<COLUMN_ALIAS 2>' '<COLUMN_ALIAS 2>', , 'Custom Value' 'Custom Value') ); ; Related Posts Ashish Sahay Interactive Grid Shortcode APEX_ITEM.checkbox use case APEX_ITEM is a built-in API that provides many types of input types using SQL queries. We use it for Interactive reports and classic reports. This article is about the checkboxes in APEX reports. Let’s explore the checkbox use case and... Read more APEX By Ashish Sahay · January 18, 2023 · 0 Comment How to Create Bubble Chart Region in Oracle APEX 22.2.0 ? 1. Sign in to Oracle Application Express by entering the credentials (Workspace, Username and Password).2. On the workspace home page, click the App Builder icon.3. Click on your Application Name in which you want to create a New Page. 4. Click on “Create Page” button. 5. Select Component tab and Select a template for your... Read more APEX By Harish Kumar · January 17, 2023 · 1 Comment How to Create Combination Chart Region in Oracle APEX 22.2.0 ? A combination chart, also known as a combo chart, is a type of chart that combines two or more chart types in a single visualization. This allows you to display multiple types of data in a single chart, making it... Read more APEX By Harish Kumar · January 16, 2023 · 1 Comment How to create oracle APEX plugins Oracle APEX (Application Express) plugins are custom components that can be added to APEX pages to extend the functionality of the application. To create an APEX plugin, you will need to have an understanding of HTML, CSS, JavaScript, and PL/SQL.... Read more APEX By Ashish Sahay · January 14, 2023 · 0 Comment How to create Scatter Chart Region in Oracle APEX 22.2.0 ? A scatter chart is a type of chart that uses Cartesian coordinates to display values for typically two variables for a set of data. The position of each point on the horizontal and vertical axis represents the values of the... Read more APEX By Harish Kumar · January 10, 2023 · 1 Comment
  • 4. 8/26/23, 11:10 PM Interactive Grid shortcodes - Ontoor blogs https://blogs.ontoorsolutions.com/post/interactive-grid-shortcodes-oracle-apex/ 4/5 Name * Email * Leave a Reply Your email address will not be published. Required fields are marked * Comment * How to create Donut Chart Region in Oracle Apex 22.2.0 ? 3. Click on the “Create Page” button in the top menu. 4. Select Component tab and choose the “Charts” option and click on “Next”. 5. Select “Donut Chart” from the Chart Type list. There are several types of charts available, including area charts, bar charts, pie charts, and line charts etc. and... Read more APEX By Harish Kumar · January 7, 2023 · 2 Comments How to create Pie Chart Region in Oracle APEX 22.2.0 ? A pie chart is a circular statistical graphic, which is divided into slices to illustrate numerical proportion. In a pie chart, the arc length of each slice is proportional to the quantity it represents. Pie charts are very useful for... Read more APEX By Harish Kumar · January 6, 2023 · 2 Comments How to create Line Chart Region in Oracle APEX 22.2.0 ? A line chart is a graphical representation of data that changes over time. It is useful for showing trends and patterns in data over a period of time. In a line chart, data points are plotted on a grid and... Read more APEX By Harish Kumar · January 5, 2023 · 2 Comments Open Door Credentials Open Door Credentials – Enables anyone to access your application using a login page that captures a user name. Steps to setup Open Door Credentials Parent Article: Authentication Types Read more APEX By Ashish Sahay · January 4, 2023 · 1 Comment Custom Authentication Oracle APEX Custom Authentication is the Authentication type where we can use the custom logic to login into the APEX application. They need to be written in PLSQL and must return a Boolean value. An “Authentication Function Name” is required to define... Read more APEX By Ashish Sahay · January 4, 2023 · 0 Comment
  • 5. 8/26/23, 11:10 PM Interactive Grid shortcodes - Ontoor blogs https://blogs.ontoorsolutions.com/post/interactive-grid-shortcodes-oracle-apex/ 5/5 Website Save my name, email, and website in this browser for the next time I comment. Post Comment