Resolution:
To resolve this problem, make sure that the Site URL property value of the SharePoint project in Visual Studio matches the URL assigned to the Default Zone for the alternate access mappings of the web application. Using another zone, such as Intranet, for the URL will not resolve the error. The project’s Site URL and the URL in the Default Zone must be the same. To access alternate access mappings, click Application Management in the SharePoint 2010 Central Administration utility, then click the Configure alternate access mappings link under Web Applications.
More information Create zones for Web applications.
Showing posts with label programmatically. Show all posts
Showing posts with label programmatically. Show all posts
Wednesday, December 28, 2011
Tuesday, December 27, 2011
Object doesn't support this property or method
Verificar o elemento que chama a função.
No meu caso chamava o elemento não existia.
$('#minhaGaleria').gallery();
1. Verifique o ID com o firebug ou IE developer.
2. Verifique a função se existe e se o ficheiro .js está linkado para a página no header.
Have fun!!
No meu caso chamava o elemento não existia.
$('#minhaGaleria').gallery();
1. Verifique o ID com o firebug ou IE developer.
2. Verifique a função se existe e se o ficheiro .js está linkado para a página no header.
Have fun!!
Labels:
Erros,
jQuery,
programmatically,
Sharepoint,
Sharepoint 2010,
WebPart
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
Saturday, July 16, 2011
Internal Name of Column Type / Tipo
Humm Levei uns bons minutos para encontrar o nome interno da Coluna Tipo/Type...
Vou partilhar para poupar tempo aos próximos.
Internal Name of Column Type is "DocIcon".
Utilizei para esconder essa mesma coluna.
view.ViewFields.Delete("DocIcon");
Vou partilhar para poupar tempo aos próximos.
Internal Name of Column Type is "DocIcon".
Utilizei para esconder essa mesma coluna.
view.ViewFields.Delete("DocIcon");
Labels:
Internal Name,
programmatically,
Sharepoint,
Sharepoint 2010
DefaultView.ViewFields not working
Comando DefaultView.ViewFields não funciona se usado dessa forma.
Exemplos:
list.DefaultView.ViewFields.Delete("something"); or
list.DefaultView.ViewFields.Add("something");
É necessário a criação de uma variável para o DefaultView!!!
SPView view = list.DefaultView;
view.ViewFields.Delete("something");
view.Update();
;)
Exemplos:
list.DefaultView.ViewFields.Delete("something"); or
list.DefaultView.ViewFields.Add("something");
É necessário a criação de uma variável para o DefaultView!!!
SPView view = list.DefaultView;
view.ViewFields.Delete("something");
view.Update();
;)
Labels:
programmatically,
Sharepoint,
Sharepoint 2010,
Views,
Visual Studio
Tuesday, March 29, 2011
<nativehr>hex2Char error: Code point out of range: 80070002</nativehr><nativestack></nativestack>:null
Erro significa o mesmo que : "File not found, verify if the URL is right"
ATENÇÃO: o formato deve ser: "/SubSite/Folder/file.pdf" ou "/SubSite/file.pdf"
ATENÇÃO: o formato deve ser: "/SubSite/Folder/file.pdf" ou "/SubSite/file.pdf"
Labels:
charp,
Erros,
programmatically,
Visual Studio
Como getFileByURL, getSPItemByURL, getItemByURL
Function is Web.GetListItem(AbsoluteURL);
AbsoluteURL = "/SubSite/Folder/file.pdf";
AbsoluteURL = "/SubSite/Folder/file.pdf";
Labels:
csharp,
programmatically,
Visual Studio
Subscribe to:
Posts (Atom)