function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
John Lewis 29John Lewis 29 

How can a Visualforce Page or Lightning Component provide a button which lets users access the 'Add Products' and 'Edit Products' pages for Quote Line Items?

We have a Visualforce Page which lists the QuoteLineItem records for a particular Quote record using the apex:pageBlockTable component. It also proves buttons (apex:commandButton) to access the standard ‘Add Products’ and ‘Edit Products’ pages by redirecting to the relative URLs for those pages, i.e.

/_ui/sales/quote/SelectSearch?addTo=XXX
/quoteitm/multilinelitem.jsp?quoteId=XXX
where XXX is the salesforce Id of the Quote.

This works fine in Salesforce Classic and also in Lightning Experience, although in the latter it still redirects to the ‘classic’ pages rather than the equivalent Lightning dialogs so the user experiences a switch from Lightning to Classic and back again when finished.
Question: is there a way to make the buttons load the Lightning Dialogs for ‘Add Products’ and ‘Edit Products’ either by modifying the VF Page or by replacing it with a Lightning Component or some other method?
Thanks in advance
John Lewis