You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Setup: I created an Entity Relation for two tables (Positions and Applicants). The Positions table will hold job positions and the Applicants edit page will show a dropdown field of the positions. My relationship is setup as 'position' is Entity 1 and Applicants is entity 2 with an 'Entity 1 is Parent' relationship and set to 'required'.
Issue: When I use the 'Add Position' admin feature, the Edit page shows a dropdown field for 'Position' (it also has one in the Edit page for Applicant, which is correct). This should not be showing here on the Position Edit page as this is the page to add records to the same 'Position' table. And, since I set this as a required field (because it needs to be on the Applicant Add/Edit page), I have an empty dropdown that is required and I cannot add any records to the Position table because it is empty. This field should simply not be added to the same tables' Add/Edit pages, instead only to the Child tables Add/Edit pages. It makes no sense being there in the parent table add/edit pages.
EDIT: I fixed this by removing the block of XML in the Positions 'view/adminhtml/ui_component/position_form.xml' page and the ''view/adminhtml/ui_component/position_listing.xml' page. I just removed the block that displayed the dropdown on the position edit page. This works.
Setup: I created an Entity Relation for two tables (Positions and Applicants). The Positions table will hold job positions and the Applicants edit page will show a dropdown field of the positions. My relationship is setup as 'position' is Entity 1 and Applicants is entity 2 with an 'Entity 1 is Parent' relationship and set to 'required'.
Issue: When I use the 'Add Position' admin feature, the Edit page shows a dropdown field for 'Position' (it also has one in the Edit page for Applicant, which is correct). This should not be showing here on the Position Edit page as this is the page to add records to the same 'Position' table. And, since I set this as a required field (because it needs to be on the Applicant Add/Edit page), I have an empty dropdown that is required and I cannot add any records to the Position table because it is empty. This field should simply not be added to the same tables' Add/Edit pages, instead only to the Child tables Add/Edit pages. It makes no sense being there in the parent table add/edit pages.
EDIT: I fixed this by removing the block of XML in the Positions 'view/adminhtml/ui_component/position_form.xml' page and the ''view/adminhtml/ui_component/position_listing.xml' page. I just removed the block that displayed the dropdown on the position edit page. This works.
This is the block I removed...
The text was updated successfully, but these errors were encountered: