'&column_name. is not working in Interactive grid Oracle Apex
I'm working on a IG report. And I want to get data from only currently selected row for some validation purpose.
Firstly, I've used Dynamic Action of selection change(IG). This DA triggers as soon as user selects a row (or I can say, click on any section of row). Hence, whatever user types in any cell after row is selected will not be considered by this DA. (For that we've to unselect and select that row again.)
Then I'm trying to use onChange(jsFunction($(this), &COLUMN_NAME.)); in html attributes to call a function.
While working with IR, to pass another column's value, we have to use #COLUMN_NAME# in it. But in IG, it throws an error Uncaught SyntaxError: Private field '#COLUMN_NAME' must be declared in an enclosing class.
Hence I'm trying to use &COLUMN_NAME. But again it is not giving any value. I tried to debug it and I find that it is giving value as Undefined.
I also tried using below steps:
I'm calling onChange(jsFunction($(this)); through html attributes of that column.
And below code I'm using in jsFunction
function jsFunction(eQTY)
{
//alert(eQTY.val()); // This works fine for getting current column's value.
var model = eQTY.data.model;
var rec = eQTY.data.selectedRecords[0];
aQTY = model.getValue(rec, "REQUIRED_PICK_QTY");
alert(aQTY);
}
But now I'm getting error Uncaught TypeError: Cannot read properties of undefined (reading '0')
Any idea how can I pass other column's value in IG?
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
