User Activity

Hello,   How to define the reference field in the Service Portal  i have one reference field of the cmn_location which I have to show to portal help me on this
Any example of setPrefernce() method? Any help will be appreciated. Thanks
How to convert GMT Date/Time format into IST Format?