You need to sign in to do that
Don't have an account?
Mark Kh09
Visualforce - Order and Order Product on one page
I am not satisfied with how the printable view comes up for Order records. I'm trying to create a somewhat customer-presentable PDF of an Order along with the Order Products (OrderItem).
I have gone to the Appexchange to look for free products to see if there's a solution that will enable me to configure the output but have had no luck.
Visualforce seems like the only option. To my dismay, the "relatedList" does not work since the relationship between Order and Order Product is a lookup and not a master-detail.
How can I get Order and Order Products to render on 1 page and be able to configure the output (doesn't have to be a work of art) so I can have it presentable to customers?
I have gone to the Appexchange to look for free products to see if there's a solution that will enable me to configure the output but have had no luck.
Visualforce seems like the only option. To my dismay, the "relatedList" does not work since the relationship between Order and Order Product is a lookup and not a master-detail.
How can I get Order and Order Products to render on 1 page and be able to configure the output (doesn't have to be a work of art) so I can have it presentable to customers?
You can do it through Visualforce and a controller. Your SOQL query should include both the orders and order products
To construct a VF page, I suggest reviewing this post
Let me know if this helps. If it does, please mark this answer as Best. It may help others in the community. Thank You!