Friday, December 21, 2012

O site não é válido. Falta a biblioteca de documentos 'Páginas'.

Problem:  When activating a Feature the following message is shown

"O site não é válido. Falta a biblioteca de documentos 'Páginas'."

Solution: Open PowerShell and write these lines


$web = get-spweb http://sitecollection/subsite
$NewID = $web.Lists["Páginas"].ID
$web.AllProperties["__PagesListId"] = $NewID.ToString()
$web.Update()

Wait 5 minutes and check again. Note: If you check seconds later, the message still shows up. So wait a little bit more.

Wednesday, December 5, 2012

stsadm -o execadmsvcjobs


When deploying a Solution, Feature or Form a message is shown
"Solution XPTO is not being executed because the administration service on this server is not started. This job definition can be run manually using 'stsadm -o execadmsvcjobs'"

Solution:
1- Go to Services.msc on your server
2- Start the service called "windows sharepoint services administration" or  "SharePoint 2010 Administration". Depends on what version you have 2007 or 2010
3- Now your jobs gets executed in time.

Tuesday, November 27, 2012

Error you cannot input more than 255 characters MultiChoice Field


IF you have a field with values with more than 255 characters to a choice field and you add them all to your document, the following message is shown:

"you cannot input more than 255 characters"


Solution: Create a List with all the options of this field and modify the field on the Document Library to type Lookup. Select the checkbox "Allow unlimited length in document libraries"

Now you can have more than 255 characters in choice field.

This also works with the easylinkdocs Solution on codeplex http://easylinkdocs.codeplex.com/



Note: This only happen in document library. Not in custom lists.

Wednesday, November 21, 2012

SharePoint Error: Cannot import the Ad Rotator Web Part

When adding Ad Rotator Web Part to another Web App and error appear "Cannot import the Ad Rotator Web Part"

That's because the Solutions is not implemented in Central Administration.

Solution: 

1- Go to Central Administration
2- System Settings
3- Manage Farm Solutions
4- Select Solution "sectorpoint.products.adrotator.wsp"
5- Select "Deploy Solutions"
6- Select the Web Application you trying to add the Web Part
7- After Deploying try to add the Web Part again
8- Done

Hope it works.

Tuesday, May 29, 2012

Erro excel, word Não é possível abrir o livro

Problema: Ao tentar abrir um documento excel, word recebemos a mensagem "Não é possível abrir o livro"


Solução: 


1- Tentar abrir novamente o documento
2- Logo de seguida, ir ao Event Viewer, abrir o erro em questão e guardar o nome da base de dados e o utilizador que tem acesso negado.
3- Executar as seguintes linhas no Powershell para dar permissão ao utilizador dos serviços do Office Web App.



$webApp = Get-SPWebApplication "http://SiteCollection"
$webApp.GrantAccessToProcessIdentity("DOMAIN\SERVICEACCOUNT")



Nota: Conceder permissões através da base de dados vai contra a garantia do produto, segundo a Microsoft. Por isso, utilize sempre o Powershell.

Monday, May 7, 2012

ddwrt:IfNew Sharepoint Designer adicionar imagem novo

Dica que poderá ser útil ao criar uma WebPart no Sharepoint Designer.

Não encontrei forma de colocar a função ddwrt:IfNew a funcionar no Sharepoint Designer.


Contudo, podemos fazer a fórmula manualmente que é a seguinte:


(ddwrt:FormatDateTime(string(ddwrt:Today()),2057,'yyyMMdd') -  ddwrt:FormatDateTime(string(@Created),2057,'yyyMMdd')) < 3

Nesse caso, a imagem "novo" irá aparecer em todas as linhas com menos de 3 dias.

Como enviar email à pessoa seleccionada no Form

Como podemos retornar o nome da pessoa do campo Pessoa/Grupo de um Formulário InfoPath ?

Solução: 
  1. Promover o campo no InfoPath
  2. Seleccionar AccountID, em vez de DisplayName.
  3. Em seguida, verifique se a Função está no primeiro.
    1. Se o campo albergar várias pessoas, seleciona intercalar.





Erro g_ExpGroupXSLTQueue' is undefined

Problema: Após a instalação de outra língua do Sharepoint, é normal surgir o seguinte erro:

Erro: g_ExpGroupXSLTQueue' is undefined


Solução: Instalar o hotfix http://support.microsoft.com/kb/2553117/en-us

Friday, May 4, 2012

HTTP Error 503. The service is unavailable

Service Unavailable -------------------------------------------------------------------------------- 
 HTTP Error 503. The service is unavailable. 

If you see this message just do:

1- Go to IIS Manager (cmd -> inetmgr)
2- Select the Application pool of the site(if you don't know which one, look at the port ) and start it.
3- Done ;)

Error occurred in deployment step Recycle IIS Application Pool


Problema: Ao tentar fazer deploy no Visual Studio ocorre o seguinte erro Error occurred in deployment step 'Recycle IIS Application Pool'


Solução: Utilizar um user que tenha permissões para fazer deploy de funcionalidade como o Farm administrator, se voltar poderá tentar executar o seguinte comando para fazer refresh ao serviço de user code 
cmd -> net stop spusercodev4
net start spusercodev4



Friday, March 30, 2012

Linking Documents between libraries

Now there is a feature available for free in codeplex for linking documents easily.

It does synchronize libraries with one main library and all others are secondaries with link to the original document. So you only need to update one document and it is synchronize with every library.


Have a nice day!


Monday, March 12, 2012

Usar o sharepoint como explorador do windows ?

Deixo aqui uma boa dica para quem quer usar o Sharepoint com o explorador do windows.

Normalmente, abrimos o site, procuramos a biblioteca aonde queremos carregar os documentos e clicamos no botão de abrir o explorador.


Em vez disso podemos simplesmente, escrever \\servidor\DavWWWRoot .


Dessa forma é possível navegar livremente em todos os sites, subsites, listas, livrarias e pastas.


Espero ter ajudado.

Thursday, March 8, 2012

ContentTypes ou Tipos de conteúdo e InfoPath Forms/Formulários

Dúvida: Será que posso usar formulários com documentos, tudo na mesma biblioteca ?

Resposta: Sim, com algumas configurações, tanto na biblioteca como no formulário.

Os contenttypes/Tipos de conteúdo podem ser configurados de forma a salver formulários, e por sua vez podemos ter contenttypes e documentos, tudo numa biblioteca.
Como ?
1º Construir o formulário no InfoPath.
2º Publicar no InfoPath como tipo de conteúdo numa outra biblioteca qualquer, e depois adicionar o tipo de conteúdo do site à biblioteca do Sharepoint. Segue um link para ajudar muito bem explicado http://www.mikhaildikov.com/2008/05/sharepoint-folders-need-more-love.html
3º Podem ainda configurar o formulário para ser publicado na pasta respectiva, assim funciona como um documento. Sempre que é criado fica guardado na mesma localização. http://blogs.msdn.com/b/infopath/archive/2006/11/08/submitting-to-this-document-library.aspx

Desta forma, tenho documentos e formulários na mesma biblioteca, bem organizados com promoção de campos e tudo ;)

Mais informação útil aqui em inglês:
http://blogs.msdn.com/b/andrew_may/archive/2006/07/10/sharepointbeta2infopathformsincontenttypes.aspx

Thursday, February 9, 2012

Trick to Export xml from a list any SharePoint Site

Need to understand how things are donne behind the scenes ?

Little trick that can help you out:
http://server/_vti_bin/owssvr.dll?Cmd=ExportList&List={GUID}

To get the List GUID, moveover one list item ;)