Skip to Main Content

APEX

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Interactive Grid Selected Row - Getting selected value from Select List in the Selected row

DiApr 9 2025

Hi All,

I have an interactive grid that contains a select list in the second field. I need to get the value of this selected list to send into a field on the page. I am struggling on getting the value. I know I am close but need that final push from someone.

Here is the data - I can get the 0,2 record but I am not sure how to access the value.

Code - note I have a few debug statements and one proving that I am on the right record as I can see 0,3's data - it's the select I'm having trouble with. On 0,2 I can see I have the object but I don't know how to reference it at a select so I can get the value

if(this.data != null){
   /*model=this.data.model;*/
   if (this.data.selectedRecords[0] != undefined)
   {
       console.log(this);
       console.log(this.data.selectedRecords);
       var metricSelected = this.data.selectedRecords [0][2];
       console.log('Hi!!!!!!');
       /*var itemFieldMetric = model.getValue(metricSelected)['v'];
       /*var itemFieldMetric = model.getValue(this.data.selectedRecords[0],[2])['v'];*/
console.log('Hi!!!!!!' + this.data.selectedRecords [0][3] );
console.log('Hi!!!!!!' + this.data.selectedRecords [0][2] );
   }
}

Any suggestions?

Diane

This post has been answered by Karel Ekema on Apr 9 2025
Jump to Answer
Comments
Post Details
Added on Apr 9 2025
2 comments
569 views