Select to view content in your preferred language

Getting a Highlighted record from a set of selected features

312
2
07-13-2022 12:34 PM
CEKEANYA
New Contributor II

I have a set of selected records from my MapMember (Standalonetable and Feature Layer) by creating a function GetActiveTable() from where I can get their oids. I'm also trying to get the oid of a highlighted feature within the set of selected features. Initially, I'd tried this:

var hltsel = GetActiveTable().GetHighlightSelection().GetObjectIDs();

but that was unable to get a value for the oid.

Is there a way to get the oid of a highlighted selection within a set of selected features?

Thank you.

0 Kudos
2 Replies
NarelleChedzey
Esri Contributor

Hello, 

I don't believe we have anything in the public API that will currently support what you are trying to accomplish with regards to highlighted rows.  We do have an issue in the backlog to add additional API functionality to the attributes pane so I will add this requirement to that list.   We are hoping to address this issue for the next release. 

 

Thanks

Narelle

0 Kudos
CEKEANYA
New Contributor II

Thanks Narelle. I appreciate your response.

0 Kudos