The information management policy on SharePoint 2007 libraries is a very useful feature.
However, there is a strange bug that has been confirmed by MS Engineers. If you have more than 1 library yes ONE library in a site collection that has an expiry policy that has a different time span and needs to invoke a SharePoint Designer Workflow when the expiration is due. It does not work for the second library.
Great what a surprise. If we need it to work for more than one library, we have to develop a custom .Net component that re-iterate through the library, scan a document's last modified date to see if it is greater than say 6 months. Then if it is older than 6 months with code fire a workflow that is on the list done in SharePoint Designer.
However, this is confirm fixed if you have SP3.
Why can't things be easier. ;-)
Show By Category
.NET Service
(1)
1909
(1)
ACTV
(1)
adidas
(47)
adizero
(1)
Admiral
(9)
Airness
(3)
Albania
(3)
Algeria
(3)
America Mineiro
(1)
Angola
(1)
Anta
(2)
Argentina
(2)
Armenia
(1)
Atletico Goianiense
(1)
Atletico Paranaense
(1)
Austria
(2)
Authentic fit
(1)
Auto Generate from Access
(1)
Avai FC
(1)
avoid
(2)
Bahia
(1)
Beijing Guoan
(1)
Belgium
(4)
Benin
(1)
Birmingham City
(1)
Bolivia
(1)
Boot Configuration Data missing
(1)
Bosnia
(1)
Botafogo
(2)
Botafogo SP
(1)
Botswana
(2)
Brazil
(4)
Brazilian brand
(15)
Bulgaria
(2)
Burkina Faso
(2)
Burrda
(3)
Bypass traverse checking
(1)
Cambodia
(1)
Cameroon
(4)
Castore
(1)
Ceara
(1)
CEWP
(2)
Chapecoense
(2)
Chile
(3)
China
(9)
Chinese Brand
(4)
Chongqing Lifan Dangdai
(1)
Club Deportivo Universidad Catolica
(1)
Club Universitario de Deportes
(1)
Clube de Remo
(1)
Colombia
(6)
Colombian Brand
(1)
Congo DR
(1)
Congo Rep
(1)
Copa America
(3)
Corinthians
(1)
Coritiba
(1)
Costa Rica
(2)
Cote d'Ivoire
(3)
Coventry City
(1)
Croatia
(2)
Crop IFRAME
(1)
Cruzeiro
(2)
Crystal Palace
(4)
css
(3)
Cuba
(1)
Cyprus
(1)
Czech Republic
(2)
Deleting large libraries
(2)
Denmark
(2)
design fault
(2)
Diadora
(1)
Dragao Premium
(1)
eagles
(1)
Ecuador
(3)
Ecuadorian Brand
(3)
Egypt
(1)
El Salvador
(1)
electrical
(2)
electrical problems
(2)
electrocuted
(2)
England
(3)
Errea
(3)
Espanyol
(1)
Ethiopia
(1)
Euro 16
(10)
Excel 2010
(3)
External Content Type
(1)
FBT
(3)
FC Porto
(1)
Fenerbahce
(1)
Figueirense
(1)
Finland
(1)
Fiorentina
(1)
Flamengo
(1)
Flickering
(1)
Fluminense
(1)
football
(234)
Fortuna Dusseldorf
(1)
France
(2)
futfanatics.net
(1)
Gabon
(1)
Germany
(1)
Ghana
(2)
Gogoalshop
(2)
Goias
(1)
Granada CF
(1)
Grand Sport
(2)
Greece
(2)
Green
(1)
Guangzhou Evergrande
(1)
Guinea
(1)
Guinea Bissau
(1)
Haiti
(1)
Heilongjiang Lava Spring
(1)
Honduras
(1)
Hong Kong
(1)
Hummel
(1)
Hungary
(1)
Iceland
(3)
Icone Sports
(2)
IE Developer Tools
(1)
India
(1)
Indian Brand
(1)
Internal Field Names
(1)
Italy
(2)
Jako
(1)
Jamaica
(2)
Japan
(1)
Javascript
(6)
Jersey
(126)
Jiangsu Suning FC
(1)
Joma
(5)
Kanxa
(1)
Kappa
(3)
Kelme
(4)
Kenya
(1)
kitchen extractor fan
(3)
Korea
(1)
Laos
(1)
Le Coq Sportif
(1)
leak
(2)
Legea
(1)
Levante
(1)
Li Ning
(3)
Local Security Policy
(1)
Login Problem
(1)
Lotto
(4)
Lupo
(2)
Macron
(9)
Mafro
(3)
Mali
(3)
Man Utd
(1)
Marathon Sports
(6)
Marseilles
(1)
masterpage
(1)
Meizhou Hakka
(1)
Mexico
(5)
Modena Volley
(1)
Montenegro
(1)
Morocco
(3)
Myanmar
(1)
N98
(1)
Naija
(1)
Nakal
(1)
Namibia
(1)
Napoli
(1)
Netherlands
(1)
New Balance
(2)
Newcastle United
(3)
Niger
(1)
Nigeria
(4)
Nike
(32)
Nike Brasil
(1)
Nike Brazil
(1)
Nike China
(12)
Nike South Africa
(1)
North Macedonia
(1)
Norway
(1)
O'Neills
(1)
Oldham Athletic
(1)
Olympikus
(1)
Olympique Lyonnais
(1)
Page Viewer WebPart
(1)
Panama
(2)
Para
(1)
Paraguay
(2)
Penalty
(1)
Peru
(6)
Picture Manager
(1)
Poland
(2)
Ponte Preta
(1)
Portugal
(2)
Portuguesa RJ
(1)
problem
(2)
Puma
(46)
retro
(1)
review
(111)
Romai
(2)
Romania
(1)
RT Sports
(1)
Russia
(4)
Saeta
(1)
Sampaio Correa
(1)
Santarem
(1)
Santos
(2)
Sao Paulo FC
(1)
Sao Raimundo
(1)
scam
(2)
Score Draw
(1)
Search List with Count Displayed
(1)
Senegal
(3)
Serbia
(1)
Server Hardening
(1)
SESI Sao Paulo
(1)
Shandong Luneng
(1)
Shanghai Shenhua
(1)
Shanghai SIPG
(1)
SharePoint
(61)
SharePoint Connect to SQL
(2)
SharePoint Designer
(3)
Shenzhen FC
(1)
shirt
(233)
Sierra Leone
(1)
Singaporean Brand
(2)
Six5Six
(1)
Slovakia
(2)
Slovenia
(1)
Slow right click
(1)
Sondico
(1)
South Africa
(1)
Spain
(3)
SPS Services
(2)
Spurs
(1)
SQL Server 2008
(1)
SSP User Profile behaviour
(1)
Super Bolla
(2)
Sweden
(2)
Switzerland
(2)
Taubate Funvic
(1)
Team GB
(2)
techfit
(8)
Thai Brand
(3)
Thailand
(2)
Togo
(1)
Topper
(4)
track top
(13)
Travels
(1)
Trinidad and Tobago
(1)
Tunisia
(3)
Turkiye
(1)
tyro
(1)
UAE
(1)
UB
(3)
UB Electric
(3)
Ucan
(1)
UE Llagostera
(1)
Uganda
(1)
Uhlsport
(2)
Ukraine
(1)
Umbro
(18)
Umbro Brazil
(6)
Under Armour
(3)
Upload Center
(1)
Uruguay
(1)
Vasco Da Gama
(1)
Venezuela
(1)
Vietnam
(1)
Villa Nova
(1)
Villarreal
(1)
Vitoria
(1)
volleyball
(6)
Vozao
(1)
Wales
(1)
Warrix
(1)
water
(2)
WebClient
(4)
WebDav
(5)
West Ham
(2)
Where to get buy Iceland football shirt in Reykjavik
(1)
Win 8
(2)
Windows 10
(1)
Windows Scheduled Task
(1)
wish list
(1)
Workflow
(1)
World Cup 14
(9)
World Cup 18
(5)
Wuhan Zall
(1)
Xinjiang Tianshan Leopard
(1)
Xtep
(1)
Yanbian Funde
(1)
Yemen
(1)
Zambia
(1)
Zhejiang Greentown
(2)
Zimbabwe
(1)
Friday, 1 November 2013
Recursive Trans-actional Issue with Workflows that Start on Create and On Modify
In SharePoint Designer if you have a multi-step workflow that fires on creation and on modified on a library. When user initially uploads, they sometimes get an error message. You will find the workflow has fired expectedly behind the scene. It happens occasionally but when it happens it persists, user can return to site and continue and the workflow has fired.
User sees an error message is "The file XXX has been modified by XXX".
Research into this with MS Engineer and the cause was identified as a “Recursive” workflow. It appears that “Item Created/Added” and “Item Modified” events are triggered when the document is uploaded and properties are set. Therefore, the workflow will be invoked twice causing SharePoint some trouble in handling them. Umm.
The solution was to modify the workflow in SharePoint designer and have a Pause for Duration action at the start of the workflow. It can alleviate the likelihood of the workflow crashing because they are trying to run at the same time after the user uploads - triggering the Add event and when user enters and saves some additional properties for the document in the form and hit OK.
User sees an error message is "The file XXX has been modified by XXX".
Research into this with MS Engineer and the cause was identified as a “Recursive” workflow. It appears that “Item Created/Added” and “Item Modified” events are triggered when the document is uploaded and properties are set. Therefore, the workflow will be invoked twice causing SharePoint some trouble in handling them. Umm.
The solution was to modify the workflow in SharePoint designer and have a Pause for Duration action at the start of the workflow. It can alleviate the likelihood of the workflow crashing because they are trying to run at the same time after the user uploads - triggering the Add event and when user enters and saves some additional properties for the document in the form and hit OK.
Error Output embedded into file when downloading from SharePoint
Now in SharePoint 2007 there is a strange error. If user does not have read permission on the main site but only on the library, when they download a .csv file, an error output stream is appended to the download file. When user opens it in Notepad or Excel it shows the error stream's XML it after the data.
Shown like below is the error that gets shown. MS Engineers confirms this feature. Seems to have been fixed for Sharepoint 2010.
<html>
<head>
<title>Runtime Error</title>
<style>
body {font-family:"Verdana";font-weight:normal;font-size: .7em;color:black;}
p {font-family:"Verdana";font-weight:normal;color:black;margin-top: -5px}
b {font-family:"Verdana";font-weight:bold;color:black;margin-top: -5px}
H1 { font-family:"Verdana";font-weight:normal;font-size:18pt;color:red }
H2 { font-family:"Verdana";font-weight:normal;font-size:14pt;color:maroon }
pre {font-family:"Lucida Console";font-size: .9em}
.marker {font-weight: bold; color: black;text-decoration: none;}
.version {color: gray;}
.error {margin-bottom: 10px;}
.expandable { text-decoration:underline; font-weight:bold; color:navy; cursor:hand; }
</style>
</head>
<body bgcolor="white">
<span><H1>Server Error in '/' Application.<hr width=100% size=1 color=silver></H1>
<h2> <i>Runtime Error</i> </h2></span>
<font face="Arial Helvetica Geneva SunSans-Regular sans-serif ">
<b> Description: </b>An application error occurred on the server. The current custom error settings for this application prevent the details of the application error from being viewed remotely (for security reasons). It could however be viewed by browsers running on the local server machine.
<br><br>
<b>Details:</b> To enable the details of this specific error message to be viewable on remote machines please create a <customErrors> tag within a "web.config" configuration file located in the root directory of the current web application. This <customErrors> tag should then have its "mode" attribute set to "Off".<br><br>
<table width=100% bgcolor="#ffffcc">
<tr>
<td>
<code><pre>
<!-- Web.Config Configuration File -->
<configuration>
<system.web>
<customErrors mode="Off"/>
</system.web>
</configuration></pre></code>
</td>
</tr>
</table>
<br>
<b>Notes:</b> The current error page you are seeing can be replaced by a custom error page by modifying the "defaultRedirect" attribute of the application's <customErrors> configuration tag to point to a custom error page URL.<br><br>
<table width=100% bgcolor="#ffffcc">
<tr>
<td>
<code><pre>
<!-- Web.Config Configuration File -->
<configuration>
<system.web>
<customErrors mode="RemoteOnly" defaultRedirect="mycustompage.htm"/>
</system.web>
</configuration></pre></code>
</td>
</tr>
</table>
<br>
</body>
</html>
Shown like below is the error that gets shown. MS Engineers confirms this feature. Seems to have been fixed for Sharepoint 2010.
<html>
<head>
<title>Runtime Error</title>
<style>
body {font-family:"Verdana";font-weight:normal;font-size: .7em;color:black;}
p {font-family:"Verdana";font-weight:normal;color:black;margin-top: -5px}
b {font-family:"Verdana";font-weight:bold;color:black;margin-top: -5px}
H1 { font-family:"Verdana";font-weight:normal;font-size:18pt;color:red }
H2 { font-family:"Verdana";font-weight:normal;font-size:14pt;color:maroon }
pre {font-family:"Lucida Console";font-size: .9em}
.marker {font-weight: bold; color: black;text-decoration: none;}
.version {color: gray;}
.error {margin-bottom: 10px;}
.expandable { text-decoration:underline; font-weight:bold; color:navy; cursor:hand; }
</style>
</head>
<body bgcolor="white">
<span><H1>Server Error in '/' Application.<hr width=100% size=1 color=silver></H1>
<h2> <i>Runtime Error</i> </h2></span>
<font face="Arial Helvetica Geneva SunSans-Regular sans-serif ">
<b> Description: </b>An application error occurred on the server. The current custom error settings for this application prevent the details of the application error from being viewed remotely (for security reasons). It could however be viewed by browsers running on the local server machine.
<br><br>
<b>Details:</b> To enable the details of this specific error message to be viewable on remote machines please create a <customErrors> tag within a "web.config" configuration file located in the root directory of the current web application. This <customErrors> tag should then have its "mode" attribute set to "Off".<br><br>
<table width=100% bgcolor="#ffffcc">
<tr>
<td>
<code><pre>
<!-- Web.Config Configuration File -->
<configuration>
<system.web>
<customErrors mode="Off"/>
</system.web>
</configuration></pre></code>
</td>
</tr>
</table>
<br>
<b>Notes:</b> The current error page you are seeing can be replaced by a custom error page by modifying the "defaultRedirect" attribute of the application's <customErrors> configuration tag to point to a custom error page URL.<br><br>
<table width=100% bgcolor="#ffffcc">
<tr>
<td>
<code><pre>
<!-- Web.Config Configuration File -->
<configuration>
<system.web>
<customErrors mode="RemoteOnly" defaultRedirect="mycustompage.htm"/>
</system.web>
</configuration></pre></code>
</td>
</tr>
</table>
<br>
</body>
</html>
Index Dat file 16 meg Gotcha
We had a batch program that copied files using webDav to SharePoint locations. Sometimes it would completely die and hay we get to hear all the noise.
It turns out its a feature of the webDav process running with the WebClient Services. It builds a file called Index.dat in the
C:\Documents and Settings\LocalService\Local Settings\Temporary Internet Files\Content.IE5 directory
It grows everytime more files are written to location and guess what there is an upper limit of 16 meg for the file. Therefore, if its over that, the mechanisms crashes and you have to reset the file to get going again.
The following actions need to be performed by a Server Admin.
1. Login to the server where the batch program runs from. Login with the account that the job runs under. It caches something with the account logged in used to re-start it that suppresses any challenge and response prompt after reactivation.
2. Open a Cmd Prompt window then run
3. Run the following command.
net stop webclient
net stop mrxdav
4. Then backup the Index.dat file located in C:\Documents and Settings\LocalService\Local Settings\Temporary Internet Files\Content.IE5
5. Then delete the Index.dat file located in C:\Documents and Settings\LocalService\Local Settings\Temporary Internet Files\Content.IE5
6. Run the following command.
net start mrxdav
net start webclient
7. Then quick test, On Run command box navigate to the webDav location eg \\xxx.com\test\Shared
Voila Voila, the noise starts dying.
Updated, seems like Win Server 2008 with IE10 and beyond may not suffer this issue anymore. The file names have changed too and the index.dat file is called WebcacheV01.dat.
C:\user\username\AppData\Local\Microsoft\Windows\WebCache\WebcacheV01.dat
There does not seem to be a file size limit to this either. http://www.sevenforums.com/browsers-mail/311407-ie10-uses-webcachev01-dat-vs-index-dat-files-how-clear-delete.html
It turns out its a feature of the webDav process running with the WebClient Services. It builds a file called Index.dat in the
C:\Documents and Settings\LocalService\Local Settings\Temporary Internet Files\Content.IE5 directory
It grows everytime more files are written to location and guess what there is an upper limit of 16 meg for the file. Therefore, if its over that, the mechanisms crashes and you have to reset the file to get going again.
The following actions need to be performed by a Server Admin.
1. Login to the server where the batch program runs from. Login with the account that the job runs under. It caches something with the account logged in used to re-start it that suppresses any challenge and response prompt after reactivation.
2. Open a Cmd Prompt window then run
3. Run the following command.
net stop webclient
net stop mrxdav
4. Then backup the Index.dat file located in C:\Documents and Settings\LocalService\Local Settings\Temporary Internet Files\Content.IE5
5. Then delete the Index.dat file located in C:\Documents and Settings\LocalService\Local Settings\Temporary Internet Files\Content.IE5
6. Run the following command.
net start mrxdav
net start webclient
7. Then quick test, On Run command box navigate to the webDav location eg \\xxx.com\test\Shared
Voila Voila, the noise starts dying.
Updated, seems like Win Server 2008 with IE10 and beyond may not suffer this issue anymore. The file names have changed too and the index.dat file is called WebcacheV01.dat.
C:\user\username\AppData\Local\Microsoft\Windows\WebCache\WebcacheV01.dat
There does not seem to be a file size limit to this either. http://www.sevenforums.com/browsers-mail/311407-ie10-uses-webcachev01-dat-vs-index-dat-files-how-clear-delete.html
Workflow to copy attachments from one list to another fails
SharePoint Designer 2007 Workflow hangs when attachment field is attempted to copy over from source to a destination list.
Tried it in a SharePoint Designer 2007 workflow.
Been told and confirm it is a feature of SharePoint 2007 by MS Engineer who can replicate and see the system message that attachments cannot be individually copied with SharePoint Designer Workflow.
NB.. So it won't let you just copy the attachments of the list item to another. Umm and I have told the feature is still the same in SharePoint 2010.
The only way is for a custom .NET programmed solution to achieve the fype of functionality.
Tried it in a SharePoint Designer 2007 workflow.
Been told and confirm it is a feature of SharePoint 2007 by MS Engineer who can replicate and see the system message that attachments cannot be individually copied with SharePoint Designer Workflow.
NB.. So it won't let you just copy the attachments of the list item to another. Umm and I have told the feature is still the same in SharePoint 2010.
The only way is for a custom .NET programmed solution to achieve the fype of functionality.
Thursday, 31 October 2013
Change Count text in SharePoint List with Code
Some very useful code that can change more than 1 Count property's text in a SharePoint list webpart.
For example I want Count = 10 to be changed to Total = 10
Code below can change 2 webpart's count that are on the same page.
NB.. Some of GUID IDs for Table needs to be substituted.
<script type="text/javascript">
//
// Some code to change the label for each of the list view tables with the Count = xx to Total = xx
var aggrHTMLInProgress = $('TABLE[id*={1973257D-0EF7-4C2A-AB5C-8E92348673F3}-{79952389-ED0A-44B2-B8D7-805CE39F0F38}] > TBODY[id*=aggr] > tr > td > table > tbody > tr > td > nobr > b');
var aggrTextInProgress = aggrHTMLInProgress.text();
var newTextForInProgress = "Total" + aggrTextInProgress.substring(5);
aggrHTMLInProgress.html(newTextForInProgress);
var aggrHTMLCompleted = $('TABLE[id*={1973257D-0EF7-4C2A-AB5C-8E92348673F3}-{038EBE13-6C6B-47E2-A695-CFBAC095F365}] > TBODY[id*=aggr] > tr > td > table > tbody > tr > td > nobr > b');
var aggrTextCompleted = aggrHTMLCompleted.text();
var newTextForCompleted = "Total" + aggrTextCompleted.substring(5);
aggrHTMLCompleted.html(newTextForCompleted);
//-->
</script>
The id*={1973257D-0EF7-4C2A-AB5C-8E92348673F3}-{79952389-ED0A-44B2-B8D7-805CE39F0F38} and TBODY[id*=aggr] can change on different list and views. These are variables and must be looked up in the view source to match your list and view that you are using. They change on every list and every view.
If there were only one webaprt that is grouped. The text can also be changed with this technique in principle.
Consider below.
Where you have to change the Count to show Total
The following script will change it.
<script type="text/javascript">
//
// Some code to change the label for each of the list view tables with the Count = xx to Total = xx
var aggrHTMLInProgress = $('TABLE[id*={1973257D-0EF7-4C2A-AB5C-8E92348673F3}-{6DAB6104-AF6B-43E6-AF81-9B6F1FC4AC94}] > TBODY[id*=aggr3-1__] > tr > td > table > tbody > tr > td > nobr > b');
var aggrTextInProgress = aggrHTMLInProgress.text();
var newTextForInProgress = "Total" + aggrTextInProgress.substring(5);
aggrHTMLInProgress.html(newTextForInProgress);
var aggrHTMLCompleted = $('TABLE[id*={1973257D-0EF7-4C2A-AB5C-8E92348673F3}-{6DAB6104-AF6B-43E6-AF81-9B6F1FC4AC94}] > TBODY[id*=aggr3-2__] > tr > td > table > tbody > tr > td > nobr > b');
var aggrTextCompleted = aggrHTMLCompleted.text();
var newTextForCompleted = "Total" + aggrTextCompleted.substring(5);
aggrHTMLCompleted.html(newTextForCompleted);
var aggrHTMLTotal = $('TABLE[id*={1973257D-0EF7-4C2A-AB5C-8E92348673F3}-{6DAB6104-AF6B-43E6-AF81-9B6F1FC4AC94}] > TBODY[id=aggr] > tr > td > table > tbody > tr > td > nobr > b');
var aggrTextTotal = aggrHTMLTotal.text();
var newTextForTotal = "Total" + aggrTextTotal.substring(5);
aggrHTMLTotal.html(newTextForTotal);
//-->
</script>
The result is this shown below. Notice the Table id is now the same. But the TBODY is different for each. Both highlighted in the code above.
For example I want Count = 10 to be changed to Total = 10
Code below can change 2 webpart's count that are on the same page.
NB.. Some of GUID IDs for Table needs to be substituted.
<script type="text/javascript">
//
// Some code to change the label for each of the list view tables with the Count = xx to Total = xx
var aggrHTMLInProgress = $('TABLE[id*={1973257D-0EF7-4C2A-AB5C-8E92348673F3}-{79952389-ED0A-44B2-B8D7-805CE39F0F38}] > TBODY[id*=aggr] > tr > td > table > tbody > tr > td > nobr > b');
var aggrTextInProgress = aggrHTMLInProgress.text();
var newTextForInProgress = "Total" + aggrTextInProgress.substring(5);
aggrHTMLInProgress.html(newTextForInProgress);
var aggrHTMLCompleted = $('TABLE[id*={1973257D-0EF7-4C2A-AB5C-8E92348673F3}-{038EBE13-6C6B-47E2-A695-CFBAC095F365}] > TBODY[id*=aggr] > tr > td > table > tbody > tr > td > nobr > b');
var aggrTextCompleted = aggrHTMLCompleted.text();
var newTextForCompleted = "Total" + aggrTextCompleted.substring(5);
aggrHTMLCompleted.html(newTextForCompleted);
//-->
</script>
The id*={1973257D-0EF7-4C2A-AB5C-8E92348673F3}-{79952389-ED0A-44B2-B8D7-805CE39F0F38} and TBODY[id*=aggr] can change on different list and views. These are variables and must be looked up in the view source to match your list and view that you are using. They change on every list and every view.
If there were only one webaprt that is grouped. The text can also be changed with this technique in principle.
Consider below.
Where you have to change the Count to show Total
The following script will change it.
<script type="text/javascript">
//
// Some code to change the label for each of the list view tables with the Count = xx to Total = xx
var aggrHTMLInProgress = $('TABLE[id*={1973257D-0EF7-4C2A-AB5C-8E92348673F3}-{6DAB6104-AF6B-43E6-AF81-9B6F1FC4AC94}] > TBODY[id*=aggr3-1__] > tr > td > table > tbody > tr > td > nobr > b');
var aggrTextInProgress = aggrHTMLInProgress.text();
var newTextForInProgress = "Total" + aggrTextInProgress.substring(5);
aggrHTMLInProgress.html(newTextForInProgress);
var aggrHTMLCompleted = $('TABLE[id*={1973257D-0EF7-4C2A-AB5C-8E92348673F3}-{6DAB6104-AF6B-43E6-AF81-9B6F1FC4AC94}] > TBODY[id*=aggr3-2__] > tr > td > table > tbody > tr > td > nobr > b');
var aggrTextCompleted = aggrHTMLCompleted.text();
var newTextForCompleted = "Total" + aggrTextCompleted.substring(5);
aggrHTMLCompleted.html(newTextForCompleted);
var aggrHTMLTotal = $('TABLE[id*={1973257D-0EF7-4C2A-AB5C-8E92348673F3}-{6DAB6104-AF6B-43E6-AF81-9B6F1FC4AC94}] > TBODY[id=aggr] > tr > td > table > tbody > tr > td > nobr > b');
var aggrTextTotal = aggrHTMLTotal.text();
var newTextForTotal = "Total" + aggrTextTotal.substring(5);
aggrHTMLTotal.html(newTextForTotal);
//-->
</script>
The result is this shown below. Notice the Table id is now the same. But the TBODY is different for each. Both highlighted in the code above.
Simple Slide Show for CEWP
I was asked to create a simple slide show embedded into a SharePoint page. I could not just plonk in a SharePoint Slide show link like this
Came across a simple slide show that can be embedded into a CEWP for a SharePoint page. Must be credited to dynamicdrive.com for use.
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script>
<script type="text/javascript" src="http://www.dynamicdrive.com/dynamicindex14/fadeslideshow.js">
</script>
<script type="text/javascript">
var mygallery2=new fadeSlideShow({
wrapperid: "fadeshow2", //ID of blank DIV on page to house Slideshow
dimensions: [905, 679], //width/height of gallery in pixels. Should reflect dimensions of largest image
imagearray: [
["http://xxx.com/Resources/EducationalCorner1.png", "", "", ""],
["http://xxx.com/Resources/EducationalCorner2.png", "", "", ""],
["http://xxx.com/Resources/EducationalCorner3.png"],
["http://xxx.com/Resources/EducationalCorner4.png", "", "", ""],
["http://xxx.com/Resources/EducationalCorner5.png"],
["http://xxx.com/Resources/EducationalCorner6.png"],
["http://xxx.com/Resources/EducationalCorner7.png"],
["http://xxx.com/Resources/EducationalCorner8.png"],
["http://xxx.com/Resources/EducationalCorner9.png"],
["http://xxx.com/Resources/EducationalCorner10.png"],
["http://xxx.com/Resources/EducationalCorner11.png"]//<--no trailing comma after very last image element!
],
displaymode: {type:'manual', pause:2500, cycles:0, wraparound:false},
persist: false, //remember last viewed slide and recall within same session?
fadeduration: 500, //transition duration (milliseconds)
descreveal: "ondemand",
togglerid: "fadeshow2toggler"
})
</script>
<table align=center cellpadding=0 cellspacing=0>
<tr>
<td>
<div id="fadeshow2" style="background-color:transparent"></div>
<div id="fadeshow2toggler" style="width:900px; text-align:center; margin-top:10px">
<a href="#" class="prev"><img src="http://xxx.com/Resources/LeftOff.png" style="border-width:0" /></a> <span class="status" style="margin:0 50px; font-weight:bold"></span> <a href="#" class="next"><img src="http://xxx.com/Resources/RightOn.png" style="border-width:0" /></a>
</div></td></tr>
</table>
http://xxx.com/officeAdmin/Photo%20Library/Forms/slidshow.aspx?ViewStyle=slideshow&RootFolder=%2018%20Oct%202013
as a pop up as it was required that it sat inside a page.
Came across a simple slide show that can be embedded into a CEWP for a SharePoint page. Must be credited to dynamicdrive.com for use.
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script>
<script type="text/javascript" src="http://www.dynamicdrive.com/dynamicindex14/fadeslideshow.js">
</script>
<script type="text/javascript">
var mygallery2=new fadeSlideShow({
wrapperid: "fadeshow2", //ID of blank DIV on page to house Slideshow
dimensions: [905, 679], //width/height of gallery in pixels. Should reflect dimensions of largest image
imagearray: [
["http://xxx.com/Resources/EducationalCorner1.png", "", "", ""],
["http://xxx.com/Resources/EducationalCorner2.png", "", "", ""],
["http://xxx.com/Resources/EducationalCorner3.png"],
["http://xxx.com/Resources/EducationalCorner4.png", "", "", ""],
["http://xxx.com/Resources/EducationalCorner5.png"],
["http://xxx.com/Resources/EducationalCorner6.png"],
["http://xxx.com/Resources/EducationalCorner7.png"],
["http://xxx.com/Resources/EducationalCorner8.png"],
["http://xxx.com/Resources/EducationalCorner9.png"],
["http://xxx.com/Resources/EducationalCorner10.png"],
["http://xxx.com/Resources/EducationalCorner11.png"]//<--no trailing comma after very last image element!
],
displaymode: {type:'manual', pause:2500, cycles:0, wraparound:false},
persist: false, //remember last viewed slide and recall within same session?
fadeduration: 500, //transition duration (milliseconds)
descreveal: "ondemand",
togglerid: "fadeshow2toggler"
})
</script>
<table align=center cellpadding=0 cellspacing=0>
<tr>
<td>
<div id="fadeshow2" style="background-color:transparent"></div>
<div id="fadeshow2toggler" style="width:900px; text-align:center; margin-top:10px">
<a href="#" class="prev"><img src="http://xxx.com/Resources/LeftOff.png" style="border-width:0" /></a> <span class="status" style="margin:0 50px; font-weight:bold"></span> <a href="#" class="next"><img src="http://xxx.com/Resources/RightOn.png" style="border-width:0" /></a>
</div></td></tr>
</table>
Subscribe to:
Posts (Atom)