create PO from Purchase Requisition when multiple PR's are selected


I facing an issue when creating PO when multiple PR’s are selected in Ax 2009.

when multiple PR’s are selected, only one PO is created, I want to create PO for all the selected PR’s.

I am using a class for this, when create PO Button is clicked the PO need to be created from selected PR’s,

calling class from Clicked method of Button.

when multiple PR’s are selected, clicked create POButton and latter Vendor Account need to be selected and the PO is creating.

need for multiple selected PR’s, Please help me on this.


This has been resolved.

taken checkbox in the form and set in the condition as when the checkbox in marked then only loop should run.