select empno,ename,job,mgr,hiredate,sal,comm, deptno from scott.emp
2. Create Page item P52_EMPNO
And Page Items to Submit : p52_empno
select empno,ename,job,mgr,hiredate,sal,comm,deptno
from scott.emp
where instr(:p52_empno, ':' ||empno|| ':' ) > 0 ;
Region : Master_Region
# True action Execute JavaScript Action.
var i, selectedIds=":" ,
model = this.data.model;
for ( i = 0; i < this.data.selectedRecords.length; i++ ) {
if (i>=0) {
selectedIds += model.getValue( this.data.selectedRecords[i], "EMPNO") + ":"; } // Matching column (parameter)
else
{
selectedIds += model.getValue( this.data.selectedRecords[i], "EMPNO"); // Matching column (parameter)
}
}
$s("P52_EMPNO", selectedIds); //Item to keep parameter Value from master Table
apex.region("ID").refresh();
model = this.data.model;
for ( i = 0; i < this.data.selectedRecords.length; i++ ) {
if (i>=0) {
selectedIds += model.getValue( this.data.selectedRecords[i], "EMPNO") + ":"; } // Matching column (parameter)
else
{
selectedIds += model.getValue( this.data.selectedRecords[i], "EMPNO"); // Matching column (parameter)
}
}
$s("P52_EMPNO", selectedIds); //Item to keep parameter Value from master Table
apex.region("ID").refresh();
No comments:
Post a Comment