Obtain the resource id of the current selection

Hi,

Is there a way to obtain the resource_id from a selection in the planner? I am using resourcedatasource.

Thanks in advance!

This depends on how you map resources on Planner positions.

You can obtain the position via PlannerItem.ItemPos.
With a resourcedatasource, that would normally mean you get the resource ID by getting record PlannerItem.ItemPos from the resource dataset.