Problem: Changing logtohistorylistactivity in the workflow isn't working/updating on workflow history.
Only when created it gets updated.
Solution: Every time you deploy the workflow you have to restart the service spusercodev4:
1- open cmd and run "net stop spusercodev4"
2- "net start spusercodev4" in order to refresh the service
Now the workflow gets updated ;))
Wednesday, November 2, 2011
Form error Can't move focus to the control because it is invisible, not enabled, or of a type that does not accept the focus
Problem: When openning the InfoPath Form, we get a javascript error "Can't move focus to the control because it is invisible, not enabled, or of a type that does not accept the focus".
If we check the code in javascript it check if toolbar is visible.
"if(e.v3RichTextControlOnFormInIE)"
Solution: Add toolbar on Form, so when you editing an RichText, you have the toolbar in top of the page without errors! Looks like it's a bug, when you don't add Form toolbar...
1- Go to Form Options
2- Browser Show InfoPath commands/ Mostrar comandos do InfoPath no Friso
3- Ok
4- Create a new form and check if error disappear.
Worked for me ;-) Hope it works for you.
If we check the code in javascript it check if toolbar is visible.
"if(e.v3RichTextControlOnFormInIE)"
Solution: Add toolbar on Form, so when you editing an RichText, you have the toolbar in top of the page without errors! Looks like it's a bug, when you don't add Form toolbar...
1- Go to Form Options
2- Browser Show InfoPath commands/ Mostrar comandos do InfoPath no Friso
3- Ok
4- Create a new form and check if error disappear.
Worked for me ;-) Hope it works for you.
Labels:
Erros,
InfoPath 2010,
Sharepoint
Tuesday, August 30, 2011
Management/Maintenance of WebParts default.aspx?contents=1
Problem: One of your sites, default.aspx page, can't be open... :S cause one unexpected error derived from an Web Part.
Solution: Add this line to your site ?contents=1.
That way you can manage your WebParts in MaintenanceWebPart page.
1- So lets say http://server//site/default.aspx?contents=1
2- Remove the problematic or the last Web Part or the one you know that is causing the error.
Solution: Add this line to your site ?contents=1.
That way you can manage your WebParts in MaintenanceWebPart page.
1- So lets say http://server//site/default.aspx?contents=1
2- Remove the problematic or the last Web Part or the one you know that is causing the error.
Labels:
Sharepoint,
Sharepoint 2010,
WebPart
Thursday, August 25, 2011
Errors were found when compiling the workflow. The workflow files were saved but cannot be run.
Problem: When publishing Workflow in SharePoint Designer. We get a message Errors were found when compiling the workflow. The workflow files were saved but cannot be run.
Resolution:
1- Go to "C:\inetpub\wwwroot\wss\VirtualDirectories\ " of the specific Site.
Open web.config
3- Find the first line with "httpRuntime".
4- Add the attribute executionTimeout="300"
The whole line should look like this
5- Save web.config
6- Do iisreset /noforce
7- Close Designer and re open.
8- Delete Workflow and recreate.
9- Save and publish ;)
Worked for me..Hope it works for you.
Resolution:
1- Go to "C:\inetpub\wwwroot\wss\VirtualDirectories\
Open web.config
3- Find the first line with "httpRuntime".
4- Add the attribute executionTimeout="300"
The whole line should look like this
5- Save web.config
6- Do iisreset /noforce
7- Close Designer and re open.
8- Delete Workflow and recreate.
9- Save and publish ;)
Worked for me..Hope it works for you.
Labels:
Sharepoint 2010,
Sharepoint Designer,
Workflows
Monday, August 22, 2011
Can't open old/moved/copied forms - Permission problem Sharepoint
Problem: When opening a Form you get a message like this "A form template (.xsn) file can not be accessed. You may not have the required permissions to open the file."
Resolution: Can be permissions of course ... Otherwise can be a missing template.
If you deleted the template you have to restore or republish in order to open the Form.
;))
Resolution: Can be permissions of course ... Otherwise can be a missing template.
If you deleted the template you have to restore or republish in order to open the Form.
;))
Labels:
Forms,
InfoPath 2010,
permissões,
Sharepoint
Wednesday, August 3, 2011
Remove column title ContentType
Problem : If you add one contentType to a list, Title column is automatically added.
If you need to remove only the column Title, you can't cause remove button is hidden.
Solution:
Run a simple power shell script.
$web = Get-SPWeb http://server
$list = $web.Lists["Lib"]
$f= $list.Fields["Title"]
$ct =$list.ContentTypes["New Folder"]
$ct.FieldLinks.Delete($f.InternalName)
$ct.Update()
Now you have a contentType without Title column ;))
If you need to remove only the column Title, you can't cause remove button is hidden.
Solution:
Run a simple power shell script.
$web = Get-SPWeb http://server
$list = $web.Lists["Lib"]
$f= $list.Fields["Title"]
$ct =$list.ContentTypes["New Folder"]
$ct.FieldLinks.Delete($f.InternalName)
$ct.Update()
Now you have a contentType without Title column ;))
Labels:
Column,
content type,
Sharepoint,
Sharepoint 2010
Monday, August 1, 2011
Como eliminar a coluna de site imagem da página ou imagem de rollup ou imagem de contacto
Problema: Quando a queremos eliminar a coluna de site imagem da página ou imagem de rollup ou imagem de contacto, não aparece o botão.
Resolução: Apenas é possível mostrar o botão eliminar com execução de código.
PowerShell:
$web = Get-SPWeb http://server
$list = $web.Lists["Documentos"]
$field = $list.Fields["Page Image"] ou
$field = $list.Fields["Rollup image"] ou
$field = $list.Fields["Contact image"]
$field.AllowDeletion = “true”
$field.Update()
Ou pelo Visual Studio:
using(SPSite site = new SPSite("http://server"))
{
using(SPWeb web = site.OpenWeb())
{
SPList list = web.Lists.TryGetList("Documentos");
SPField field = list.Fields["Page Image"];
SPField field2 = list.Fields["Rollup image"];
SPField field3 = list.Fields["Contact image"];
field.AllowDeletion = true;
field.Update();
}
}
Agora o botão eliminar já aparece nas opções da coluna ;)
Resolução: Apenas é possível mostrar o botão eliminar com execução de código.
PowerShell:
$web = Get-SPWeb http://server
$list = $web.Lists["Documentos"]
$field = $list.Fields["Page Image"] ou
$field = $list.Fields["Rollup image"] ou
$field = $list.Fields["Contact image"]
$field.AllowDeletion = “true”
$field.Update()
Ou pelo Visual Studio:
using(SPSite site = new SPSite("http://server"))
{
using(SPWeb web = site.OpenWeb())
{
SPList list = web.Lists.TryGetList("Documentos");
SPField field = list.Fields["Page Image"];
SPField field2 = list.Fields["Rollup image"];
SPField field3 = list.Fields["Contact image"];
field.AllowDeletion = true;
field.Update();
}
}
Agora o botão eliminar já aparece nas opções da coluna ;)
Labels:
Coluna,
PowerShell,
programmatically,
Sharepoint 2010,
Visual Studio
Subscribe to:
Posts (Atom)