This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add-SPSolution "c:\Paradigma.GrupoMundial.Innovacion.JobInstall.wsp" | |
Install-SPSolution -Identity "Paradigma.GrupoMundial.Innovacion.JobInstall.wsp" -GACDeployment | |
Enable-SPFeature -Identity "Paradigma.GrupoMundial.Innovacion.JobInstall_Feature1" -Url "http://localhost:10963" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Possible mismatch between the reported error with code = 0x81070504 and message: "There is no Web named "/ServiciosEmpleados/PersonalMencion/Forms/AllItems.aspx"." and the returned error with code 0x80070002. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public partial class Afiliado | |
{ | |
public Afiliado() | |
{ | |
this.CategoriasXAfiliado = new HashSet<CategoriaXAfiliado>(); | |
this.Productos = new HashSet<Producto>(); | |
this.Sucursales = new HashSet<Sucursal>(); | |
} | |
public System.Guid IdAfiliado { get; set; } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function ($) { | |
$.fn.ajaxloader = function () { | |
var ajaxloader = $('<div class="Ajax-Loader"><div class="Ajax-Loader-Overlay"></div><div class="Ajax-Loader-Image ui-corner-all"><img src="DesktopModules/DondeCompro/UI/recursos/img/loadinfo.net.gif"/></div></div>'); | |
this.after(ajaxloader); | |
ajaxloader.css('top', this.position().top).width(this.outerWidth()).height(this.outerHeight()); | |
ajaxloader.find('.Ajax-Loader-Overlay').css('opacity', 0.5).width(this.outerWidth()).height(this.outerHeight()); | |
ajaxloader.find('.Ajax-Loader-Image').css('top', -((ajaxloader.height() / 2) + 36)); | |
ajaxloader.hide(); | |
return ajaxloader; | |
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<system.serviceModel> | |
<!-- ... --> | |
<diagnostics> | |
<messageLogging logEntireMessage="true" logMalformedMessages="true" | |
logMessagesAtServiceLevel="true" logMessagesAtTransportLevel="true" /> | |
</diagnostics> | |
</system.serviceModel> | |
<system.diagnostics> | |
<sources> | |
<source name="System.ServiceModel" switchValue="Warning, ActivityTracing" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
The type 'DondeCompro.Data.Afiliado' cannot be serialized to JSON because its IsReference setting is 'True'. The JSON format does not support references because there is no standardized format for representing references. To enable serialization, disable the IsReference setting on the type or an appropriate parent class of the type. | |
System.Runtime.Serialization.Json.DataContractJsonSerializer.get_RootContract() | |
System.Runtime.Serialization.Json.DataContractJsonSerializer.InternalWriteObjectContent(XmlWriterDelegator writer, Object graph) | |
System.Runtime.Serialization.Json.DataContractJsonSerializer.InternalWriteObject(XmlWriterDelegator writer, Object graph) | |
System.Runtime.Serialization.XmlObjectSerializer.WriteObjectHandleExceptions(XmlWriterDelegator writer, Object graph, DataContractResolver dataContractResolver) | |
System.Runtime.Serialization.Json.DataContractJsonSerializer.WriteObject(XmlDictionaryWriter writer, Object graph) | |
System.ServiceModel.Dispatcher.DataContractJsonSerializerOperationFormatter.Seri |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function () { | |
var nCurrentFormData_SetFormData = CurrentFormData_SetFormData; | |
CurrentFormData_SetFormData = function () { | |
nCurrentFormData_SetFormData.apply(this, arguments); | |
//Your custom code here | |
} | |
})(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function Restore-SPUserInfo{ | |
[CmdletBinding()] | |
param( | |
[Parameter(Mandatory=$true, HelpMessage='data container url')] | |
[Alias('webUrl')] | |
[string]$url, | |
[Parameter(Mandatory=$true, HelpMessage='library template type id')] | |
[Alias('libraryTemplateType')] | |
[int]$templateType, | |
[Parameter(Mandatory=$false, HelpMessage='parent content type id for the data you want to process')] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#add indexes to a field on a list | |
Add-PsSnapin Microsoft.SharePoint.PowerShell -ErrorAction SilentlyContinue | |
function IndexField($fieldName, $spList) | |
{ | |
$spField = $spList.Fields[$fieldName] | |
$spField.Indexed = $true | |
$spField.Update() |