Clicking a button to enter record
I have a small print icon on each record in list view layout. The print icon is designed so that when pressed, it will print a report on that record. However, clicking this button does not select the record. How Do I design a script to select record that the object is in? Or do I have to add a dialogue asking user to select the record first?