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

More Related Content

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

User and role administration of as abap
User and role administration of as abapUser and role administration of as abap
User and role administration of as abapVineeth Ponugoti
 
[PPT] _ Unit 2 _ 9.0 _ Domain Specific IoT _Home Automation.pdf
[PPT] _ Unit 2 _ 9.0 _ Domain Specific IoT _Home Automation.pdf[PPT] _ Unit 2 _ 9.0 _ Domain Specific IoT _Home Automation.pdf
[PPT] _ Unit 2 _ 9.0 _ Domain Specific IoT _Home Automation.pdfSelvaraj Seerangan
 
Chapter 5 IoT Design methodologies
Chapter 5 IoT Design methodologiesChapter 5 IoT Design methodologies
Chapter 5 IoT Design methodologiespavan penugonda
 
Iw411 migrating content by search from 2010 into 2013 - minified
Iw411   migrating content by search from 2010 into 2013 - minifiedIw411   migrating content by search from 2010 into 2013 - minified
Iw411 migrating content by search from 2010 into 2013 - minifiedPaul Hunt
 
what is sccm ? sccm online Training
what is sccm ? sccm online Training what is sccm ? sccm online Training
what is sccm ? sccm online Training KashifSCCMTrainer
 
Saphelp erp2004 en_9d_76563cc368b60fe10000000a114084_content
Saphelp erp2004 en_9d_76563cc368b60fe10000000a114084_contentSaphelp erp2004 en_9d_76563cc368b60fe10000000a114084_content
Saphelp erp2004 en_9d_76563cc368b60fe10000000a114084_contentmgassperera
 
SharePoint Conference Vienna 2014: Work Management Service
SharePoint Conference Vienna 2014: Work Management ServiceSharePoint Conference Vienna 2014: Work Management Service
SharePoint Conference Vienna 2014: Work Management ServiceAdis Jugo
 
Microsoft deployment toolkit 2010 final
Microsoft deployment toolkit 2010 finalMicrosoft deployment toolkit 2010 final
Microsoft deployment toolkit 2010 finalHarold Wong
 
MVP Community Camp 2014 - How to use enhanced features of Windows 8.1 Store ...
MVP Community Camp 2014 - How to useenhanced features of Windows 8.1 Store ...MVP Community Camp 2014 - How to useenhanced features of Windows 8.1 Store ...
MVP Community Camp 2014 - How to use enhanced features of Windows 8.1 Store ...Akira Hatsune
 
Dynamic and Elastic Scaling in IBM Streams V4.3
Dynamic and Elastic Scaling in IBM Streams V4.3Dynamic and Elastic Scaling in IBM Streams V4.3
Dynamic and Elastic Scaling in IBM Streams V4.3lisanl
 
Windows phone 7 series
Windows phone 7 seriesWindows phone 7 series
Windows phone 7 seriesopenbala
 
Spring boot for buidling microservices
Spring boot for buidling microservicesSpring boot for buidling microservices
Spring boot for buidling microservicesNilanjan Roy
 
Joget Workflow v5 Training Slides - Module 19 - Doing More With Your Process ...
Joget Workflow v5 Training Slides - Module 19 - Doing More With Your Process ...Joget Workflow v5 Training Slides - Module 19 - Doing More With Your Process ...
Joget Workflow v5 Training Slides - Module 19 - Doing More With Your Process ...Joget Workflow
 
Sharepoint 2010 mcq
Sharepoint 2010 mcqSharepoint 2010 mcq
Sharepoint 2010 mcqAnuja Sharma
 
Android app performance
Android app performanceAndroid app performance
Android app performanceSaksham Keshri
 
Informatica cloud Powercenter designer
Informatica cloud Powercenter designerInformatica cloud Powercenter designer
Informatica cloud Powercenter designerRameswara Reddy
 
Getting started with Exalate
Getting started with ExalateGetting started with Exalate
Getting started with ExalateExalate
 
JSF2 Composite Components - Ian Hlavats
JSF2 Composite Components - Ian HlavatsJSF2 Composite Components - Ian Hlavats
JSF2 Composite Components - Ian Hlavatsjaxconf
 
Cognos framework manager
Cognos framework managerCognos framework manager
Cognos framework managermaxonlinetr
 

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

User and role administration of as abap
User and role administration of as abapUser and role administration of as abap
User and role administration of as abap
 
[PPT] _ Unit 2 _ 9.0 _ Domain Specific IoT _Home Automation.pdf
[PPT] _ Unit 2 _ 9.0 _ Domain Specific IoT _Home Automation.pdf[PPT] _ Unit 2 _ 9.0 _ Domain Specific IoT _Home Automation.pdf
[PPT] _ Unit 2 _ 9.0 _ Domain Specific IoT _Home Automation.pdf
 
Chapter-5.pdf
Chapter-5.pdfChapter-5.pdf
Chapter-5.pdf
 
Chapter 5 IoT Design methodologies
Chapter 5 IoT Design methodologiesChapter 5 IoT Design methodologies
Chapter 5 IoT Design methodologies
 
Iw411 migrating content by search from 2010 into 2013 - minified
Iw411   migrating content by search from 2010 into 2013 - minifiedIw411   migrating content by search from 2010 into 2013 - minified
Iw411 migrating content by search from 2010 into 2013 - minified
 
what is sccm ? sccm online Training
what is sccm ? sccm online Training what is sccm ? sccm online Training
what is sccm ? sccm online Training
 
Saphelp erp2004 en_9d_76563cc368b60fe10000000a114084_content
Saphelp erp2004 en_9d_76563cc368b60fe10000000a114084_contentSaphelp erp2004 en_9d_76563cc368b60fe10000000a114084_content
Saphelp erp2004 en_9d_76563cc368b60fe10000000a114084_content
 
SharePoint Conference Vienna 2014: Work Management Service
SharePoint Conference Vienna 2014: Work Management ServiceSharePoint Conference Vienna 2014: Work Management Service
SharePoint Conference Vienna 2014: Work Management Service
 
Microsoft deployment toolkit 2010 final
Microsoft deployment toolkit 2010 finalMicrosoft deployment toolkit 2010 final
Microsoft deployment toolkit 2010 final
 
MVP Community Camp 2014 - How to use enhanced features of Windows 8.1 Store ...
MVP Community Camp 2014 - How to useenhanced features of Windows 8.1 Store ...MVP Community Camp 2014 - How to useenhanced features of Windows 8.1 Store ...
MVP Community Camp 2014 - How to use enhanced features of Windows 8.1 Store ...
 
Dynamic and Elastic Scaling in IBM Streams V4.3
Dynamic and Elastic Scaling in IBM Streams V4.3Dynamic and Elastic Scaling in IBM Streams V4.3
Dynamic and Elastic Scaling in IBM Streams V4.3
 
Windows phone 7 series
Windows phone 7 seriesWindows phone 7 series
Windows phone 7 series
 
Spring boot for buidling microservices
Spring boot for buidling microservicesSpring boot for buidling microservices
Spring boot for buidling microservices
 
Joget Workflow v5 Training Slides - Module 19 - Doing More With Your Process ...
Joget Workflow v5 Training Slides - Module 19 - Doing More With Your Process ...Joget Workflow v5 Training Slides - Module 19 - Doing More With Your Process ...
Joget Workflow v5 Training Slides - Module 19 - Doing More With Your Process ...
 
Sharepoint 2010 mcq
Sharepoint 2010 mcqSharepoint 2010 mcq
Sharepoint 2010 mcq
 
Android app performance
Android app performanceAndroid app performance
Android app performance
 
Informatica cloud Powercenter designer
Informatica cloud Powercenter designerInformatica cloud Powercenter designer
Informatica cloud Powercenter designer
 
Getting started with Exalate
Getting started with ExalateGetting started with Exalate
Getting started with Exalate
 
JSF2 Composite Components - Ian Hlavats
JSF2 Composite Components - Ian HlavatsJSF2 Composite Components - Ian Hlavats
JSF2 Composite Components - Ian Hlavats
 
Cognos framework manager
Cognos framework managerCognos framework manager
Cognos framework manager
 

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

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

Editor's Notes

  1. What => Why => Who => Where => When => How
  2. http://<server>/_layout/regionalsetng.aspx