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
mpoiriermpoirier 

Adding a extra field in standard object ?

Hi,

 

I want to display a table of Product2 items (List<Product2>) for selection with a checkbox.

 

There is no field in the Product2 object for "Selected" item...

 

Do I actually need to permanently add a "selected" field to the Product2 object ?

 

Or is there a way that I can temporarily add a checkbox in the table for selection retrieval ?

 

Thanks !

 

ColinKenworthy1ColinKenworthy1
If you have a Tab for Product2, go to it and click the 'View All' Go button at the top. Does it give you checkboxes?
mpoiriermpoirier

No, there are no checkboxes. The Product2 object has only one custom field for Family Description.

 

What I need to lear is how to have a array of checkboxes that map the the array of products within a pageBlockTable.

 

Maybe SalesForce does not work like this at all ?

 

 

ColinKenworthy1ColinKenworthy1
Maybe you could try adding a List Button to the tab's List View in the objects Page Layout. That should give you a checkbox per line when you List All on the tab.