✅ লক্ষ্য:
-
TEST_CODE
একটি LOV ফিল্ড -
TEST_DESCRIPTION
একটি Display-Only ফিল্ড -
TEST_CODE
নির্বাচন করলেTEST_DESCRIPTION
অটোফিল হবে -
Backend query ব্যবহার করে
description
fetch হবে
🔷 Step-by-Step Guide
🟠 Step 1: Create a PL/SQL Function
Oracle DB তে নিচের function টি তৈরি করুন:
🟠 Step 2: Go to APEX Page → Select Interactive Grid
-
Go to Page Designer
-
Click on your Interactive Grid (IG) region
🟠 Step 3: Configure TEST_CODE
Column
-
Select
TEST_CODE
column -
Type: Select List
-
List of Values:
🟠 Step 4: Create Dynamic Action
-
Select the Interactive Grid region
-
In the right pane, go to Dynamic Actions
-
Click Create → Choose:
-
Event:
Change
-
Selection Type:
Column
-
Column:
TEST_CODE
-
-
Name the DA:
Set Test Description
🟠 Step 5: Add True Action → PL/SQL Code
-
Under the Dynamic Action, add a True Action
-
Action Type: Execute PL/SQL Code
-
Code:
⚠️ Replace :P_TEST_CODE
with the selected value of TEST_CODE
column. Since this is Interactive Grid, we need to use Row context.
-
In Items to Submit: add the column
TEST_CODE
-
In Page Items to Return: add the column
TEST_DESCRIPTION
🟠 Step 6: Assign Returned Value to TEST_DESCRIPTION
Still under the same Dynamic Action:
-
Add another True Action → Choose Set Value
-
Set type to: PL/SQL Function Body
-
Code:
-
Set
Affected Elements
→ Selection Type:Column
→ Column:TEST_DESCRIPTION
🟠 Step 7: Set TEST_DESCRIPTION
Column
-
Select
TEST_DESCRIPTION
column in grid -
Type: Display Only
-
Optionally set Read-Only, Escape special characters = Off
✅ Done! Test It:
-
Run the page
-
Select a value in
TEST_CODE
-
TEST_DESCRIPTION
will auto-populate using your function
No comments:
Post a Comment
I am Safiqul Islam Tuhin