How to get the Formatted Data from SharePoint which belong to the regional settings<br />Phong Le<br />Technical Manager<b...
Agenda<br />1. SharePoint Regional Settings<br /><ul><li>Site Regional Settings.
User Regional Settings.</li></ul>2. SharePoint Format Value<br /><ul><li>Format value by Site settings.
Format value by user settings.</li></ul>3. Demo<br />4. Q&A<br />
SharePoint Regional Settings<br />1. Site Regional Settings<br />These settings affect the current site or site collection...
SharePoint Regional Settings (Cont.)<br />2. User Regional Settings<br />These settings only affect your own account.<br /...
Get Format Value From Regional Settings<br />1. Use Function of Object SPField<br />Use GetFieldValueAsHtml(value) of obje...
Get Format Value From Regional Settings<br />2. Use Function of Object SPListItem<br />GetFormattedValue(InternalName).<br...
Get Format Value From Regional Settings<br />3. Use Functions of static SPField<br />SPFieldNumber.GetFieldValueAsHtml(val...
Get Format Value From Regional Settings<br />3. Use Functions of static SPField (cont)<br />Get format value with user set...
Demo<br />
Upcoming SlideShare
Loading in …5
×

2nd SPS Vietnam - How to get formatted data from SharePoint which belong to the regional settings?

1,437 views

Published on

2nd SPS Vietnam - How to get formatted data from SharePoint which belong to the regional settings?
from Phong Le

  • Be the first to comment

  • Be the first to like this

2nd SPS Vietnam - How to get formatted data from SharePoint which belong to the regional settings?

  1. 1. How to get the Formatted Data from SharePoint which belong to the regional settings<br />Phong Le<br />Technical Manager<br />Bamboo Solutions<br />
  2. 2. Agenda<br />1. SharePoint Regional Settings<br /><ul><li>Site Regional Settings.
  3. 3. User Regional Settings.</li></ul>2. SharePoint Format Value<br /><ul><li>Format value by Site settings.
  4. 4. Format value by user settings.</li></ul>3. Demo<br />4. Q&A<br />
  5. 5. SharePoint Regional Settings<br />1. Site Regional Settings<br />These settings affect the current site or site collection.<br />Step by step.<br />
  6. 6. SharePoint Regional Settings (Cont.)<br />2. User Regional Settings<br />These settings only affect your own account.<br />users can either use the default regional settings that are set on a specific site or set their own regional settings.<br />Step by step.<br />
  7. 7. Get Format Value From Regional Settings<br />1. Use Function of Object SPField<br />Use GetFieldValueAsHtml(value) of object SPField.<br />Format of this function depend on Site Setting.<br />But It is independent on User Setting.<br />
  8. 8. Get Format Value From Regional Settings<br />2. Use Function of Object SPListItem<br />GetFormattedValue(InternalName).<br />Format of this function depend on Site Setting.<br />But It is independent on User Setting.<br />
  9. 9. Get Format Value From Regional Settings<br />3. Use Functions of static SPField<br />SPFieldNumber.GetFieldValueAsHtml(valueNumber, new CultureInfo(lcid), spFieldNumber.ShowAsPercentage, spFieldNumber.DisplayFormat);<br />SPFieldDateTime.GetFieldValueAsHtml(valueTime, SPContext.Current.Web, SPDateFormat);<br />
  10. 10. Get Format Value From Regional Settings<br />3. Use Functions of static SPField (cont)<br />Get format value with user settings.<br />SPContext.Current.Web.<br />intlcid= (int)SPContext.Current.RegionalSettings.LocaleId.<br />
  11. 11. Demo<br />
  12. 12. Q&A<br />
  13. 13. THANK YOU<br />

×