This guide will walk you through to deploy FLEX widgets, reports, web service and revised class libraries in existing staging site. FLEX widgets and FLEX distribution reports need to be deployed in separate tabs as it is available in development site http://abc-dev:8888
- Staging Sharepoint site http://adsportalstg.abc.com/sites/folder/Pages/xyz.aspx should be active.
There are 7 steps to deploy FLEX widgets, Distribution reports and revised class libraries in staging site.
1) Backup and deploy Master Pages, style sheet and document library
2) Backup and deploy “Number Distribution” sharepoint site
3) Backup and deploy “DOCUMENT WIDGET” aspx page.
4) Run sharepoint solution to deploy new web part and revised Class library DLL.
5) Deploy web service and configure.
6) Update configuration files.
Step 1: Restore Master pages, style sheet, document library
Take the following backup from existing sharepoint development site and restore in staging site.
Source (Development sharepoint site) => http://abc-dev:8888
Destination (Staging sharepoint site) => http://adsportalstg.abc.com/sites/folder/
1.1) Master Pages
Ø Take backup of following master pages from development site and restore to Staging
CompatibleBrowser.master
CompatibleBrowserDistribution.master
CompatibleBrowserBRANDDATA.master
CompatibleBrowserAdmin.master
Ø Apply the master page as follows :
CompatibleBrowser.master => to Site Collection
CompatibleBrowserBRANDDATA.master => to Brand Site
CompatibleBrowserAdmin.master => to Admin Site
CompatibleBrowserDistribution.master => to “Number Distribution” site. (after deployment)
1.2) Style sheet files
Ø Take backup of following CSS file from development site and restore in Staging.
_ui/css/CompatibleBrowser.css
Ø Put the CSS file in same path at Staging.
1.3) Sharepoint document library
Ø Take backup of following document library from development site and restore in Staging.
FlexReports => document library which holds all FLEX swf files.
Ø Import it to site collection of Staging Portal.
Important Note: This Document Library must have FULL Permissions for all user GROUPS.
Step 2: Backup and deploy “Number Distribution” sharepoint site
2.1) New Sharepoint sub-site
Ø Take the export of [NumberDistribution] site from http://abc-dev:8888/NumberDistribution
Import as [sub-site] in STAGING portal => http://adsportalstg.abc.com/sites/folder/
Step 3: Backup and deploy “Number WIDGET” aspx page.
2.2) New ASPX page
DASHBOARD.ASPX is the new home page under new tab.
Ø Export from http://abc-dev:8888/Dashboard.aspx
Ø Deploy in Pages Library of STAGING portal.
Step 4: Run Sharepoint solution to deploy new web part and revised Class library DLL.
4.1) New Sharepoint solution
Solution File : _FlexHostSolution.wsp
Files in Solution : a) ADS.Number.ArchiveReport.dll (An updated DLL)
b) FlexHost.dll (New Web part to Host Flex Reports)
Deploy the new Solution “_FlexHostSolution.wsp” at Staging site
Step 5: Deploy Web service and configure
Backup file name: NumberWS.Zip
It’s a web application to cater data for Flex reports.
- Deploy the backup file as web service.
- Give Anonymous Access to web service.
This is required because Flex Reports need to access web service for IE & Safari Browser.
Step 6: Update configuration files
Update the following in both Web service and sharepoint site folders.
6.1) “web.config” file
- Set the <Impersonate> [user name] and [password] in web.config file.
This is required because EXCEL COM needs to be accessed by web service.
<identity impersonate="true" userName="abc_corp\<<valid user>>"
password="<<password>>"/>
- Set the “maxRequestLength” and “executionTimeout” values.
This is required because Archive report functionality takes about 15 to 20 minutes to generate wrapper Excel file with 20 sheets.
<httpRuntime maxRequestLength="51200" executionTimeout ="120000"/>
6.2) “App.config” file
Update the values for the following keys in both Web service folder and sharepoint site folder.
<add key="DistributionReportWebServiceUrl" value="%WebService%/NumberReportService.asmx" />
<add key="FlexWebService" value="%WebService%/Number.asmx" />
<add key="ExcelExportURL" value="%WebService%//ExportToExcel.aspx" />
<add key="PodXMLURL" value="%WebService%/pods.xml" />
Note: %WebService% should be the URL of WebService,
0 comments:
Post a Comment