About this sample

This sample shows how to set and retrieve Portlet preferences. The portlet shows customers list with the Settings option (which is displayed only in when the page is in Edit mode) which lets you customize the columns to display in the table and stores the user's selection in the portlet preference using the preference api and then uses the api to retrieve the preference and respective columns are displayed based on preferences.
  

Portlet Preferences Sample

ID
Name
Balance
City
Phone
Status
Updated
Address

ID Name Balance City Phone Status Updated Address