How To Get Searched Ids From Dataprovider

hello,

I need searched ID from Dataprovider, It gives me nothings

        In Model(i m using default search method):


       $IDs=array();


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


          $IDs[$data->id]=$data->id;


        }

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:

var_dump($this->search()->data);

?

Are you in a model’s method?

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