How To Get Searched Ids From Dataprovider


I need searched ID from Dataprovider, It gives me nothings

        In Model(i m using default search method):


        foreach($this->search()->getData() as $data){



any idea Please!

$IDs array should contain $data->id as value and as key.

Try to make a var_dump($IDs) at end of cycle to check his content.

Otherwise i didn’t understand your question.

thanks for reply.

i tried , gives null value. My problem is simple I need IDs list in dataprovider just!

Have you tried to verify:



Are you in a model’s method?

thank, i found the solution the problem was the Object!