1

I'm trying create one simple page with form without grid on Admin of Magento2, just one page with some fields.

I'm working with Model, ResourceModel, Collection and DataProvider and form ui_component.

I tested the connection of my model with database and all is ok.

My problem is when i load the form page my fields don't pull the database content. On DataProvider Class in getdata method, the collection ($this->collection->getItems()) show a empty array.

Someone can help me ?

1

I found the answer. Via form.xml it works directly with the url parameters. That is, I just needed to put id / rownumber as a parameter (path) in the url that it would bring me the information of table row.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.