none
Sharepoint Online 2013 Formulario Personalizado, acción no disponible adjuntar ficheros. RRS feed

  • Pregunta

  • Buenos días, 

    tengo una lista en sharepoint y he personalizado con java script el formulario de nuevo, creando mi nuevoformulario.aspx. Cuando hago esto el botón de arriba de la ribbon de acciones se deshabilita el botón de adjuntar ficheros. Sin embargo el formulario de nuevo por defecto NewForm.aspx si que lo tiene habilitado. 

    No entiendo el proque al perosnalizar el formulario crear el mio propio con mi estilo y demás esa acción desaparece.

    Alguien me puede ayudar por favor.

    GRcias, 

    Sharepoint Online 2013 Formulario Personalizado, acción no disponible adjuntar ficheros.

    miércoles, 5 de octubre de 2016 11:28

Todas las respuestas

  • Hola eletrusky

    En el código de JavaScript del formulario tienes mapeada la ruta del NewForm.aspx por ejemplo:

    <Form Type="NewForm" Url="NewForm.aspx" SetupPath="pages\form.aspx" WebPartZoneID="Main" UseDefaultListFormWebPart="False">

    Cualquier duda por favor avísame, gracias.

    Saludos cordiales.


    EP!! Blog: http://keepcalmlovesharepoint.blogspot.mx/ SharePoint Administrator | Developer

    • Propuesto como respuesta Moderador M viernes, 14 de octubre de 2016 19:54
    • Votado como útil Moderador M martes, 18 de octubre de 2016 16:23
    jueves, 13 de octubre de 2016 16:53
  • Buenas Eduardo,

    He revisado el código JS del formulario el fichero, NuevoFormulario.aspx, y no tengo mapeada la ruta que comentas. El no tener mapeada dicha ruta es lo que puede estar ocasionando que no funcione?? Adjunto el codigo de mi NuevoFormulario.aspx por si me puedes ayudar a detectar el poruqe con ésta página no se activa el botón de los adjuntos y con el NewForm.aspx por defecto si. 

    <%@ Page language="C#" MasterPageFile="~masterurl/default.master"    Inherits="Microsoft.SharePoint.WebPartPages.WebPartPage,Microsoft.SharePoint,Version=16.0.0.0,Culture=neutral,PublicKeyToken=71e9bce111e9429c" meta:webpartpageexpansion="full" meta:progid="SharePoint.WebPartPage.Document"  %>
    <%@ Register Tagprefix="SharePoint" Namespace="Microsoft.SharePoint.WebControls" Assembly="Microsoft.SharePoint, Version=16.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %> <%@ Register Tagprefix="Utilities" Namespace="Microsoft.SharePoint.Utilities" Assembly="Microsoft.SharePoint, Version=16.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %> <%@ Import Namespace="Microsoft.SharePoint" %> <%@ Assembly Name="Microsoft.Web.CommandUI, Version=16.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %> <%@ Register Tagprefix="WebPartPages" Namespace="Microsoft.SharePoint.WebPartPages" Assembly="Microsoft.SharePoint, Version=16.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
    <asp:Content ContentPlaceHolderId="PlaceHolderPageTitle" runat="server">
    	<SharePoint:ListFormPageTitle runat="server"/>
    </asp:Content>
    <asp:Content ContentPlaceHolderId="PlaceHolderPageTitleInTitleArea" runat="server">
    	<span class="die">
    		<SharePoint:ListProperty Property="LinkTitle" runat="server" id="ID_LinkTitle"/>
    	</span>
    </asp:Content>
    <asp:Content ContentPlaceHolderId="PlaceHolderPageImage" runat="server">
    	<img src="/_layouts/15/images/blank.gif?rev=44" width='1' height='1' alt="" data-accessibility-nocheck="true"/>
    </asp:Content>
    <asp:Content ContentPlaceHolderId="PlaceHolderMain" runat="server">
    <SharePoint:UIVersionedContent UIVersion="4" runat="server">
    	<ContentTemplate>
    	<div style="padding-left:5px">
    	</ContentTemplate>
    </SharePoint:UIVersionedContent>
    	<table class="ms-core-tableNoSpace" id="onetIDListForm">
    	 <tr>
    	  <td>
    	 <WebPartPages:WebPartZone runat="server" FrameType="None" ID="Main" Title="loc:Main"><ZoneTemplate>
    <WebPartPages:ContentEditorWebPart runat="server" __MarkupType="xmlmarkup" WebPart="true" __WebPartId="{28C6C2D7-F882-4C2C-92E0-22E831AE2704}" >
    <WebPart xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.microsoft.com/WebPart/v2">
      <Title>Editor de contenido</Title>
      <FrameType>Default</FrameType>
      <Description>Permite a los autores escribir contenido de texto enriquecido.</Description>
      <IsIncluded>true</IsIncluded>
      <PartOrder>2</PartOrder>
      <FrameState>Normal</FrameState>
      <Height />
      <Width />
      <AllowRemove>true</AllowRemove>
      <AllowZoneChange>true</AllowZoneChange>
      <AllowMinimize>true</AllowMinimize>
      <AllowConnect>true</AllowConnect>
      <AllowEdit>true</AllowEdit>
      <AllowHide>true</AllowHide>
      <IsVisible>false</IsVisible>
      <DetailLink />
      <HelpLink />
      <HelpMode>Modeless</HelpMode>
      <Dir>Default</Dir>
      <PartImageSmall />
      <MissingAssembly>No se puede importar este elemento web.</MissingAssembly>
      <PartImageLarge>/_layouts/15/images/mscontl.gif</PartImageLarge>
      <IsIncludedFilter />
      <ExportControlledProperties>true</ExportControlledProperties>
      <ConnectionID>00000000-0000-0000-0000-000000000000</ConnectionID>
      <ID>g_28c6c2d7_f882_4c2c_92e0_22e831ae2704</ID>
      <ContentLink xmlns="http://schemas.microsoft.com/WebPart/v2/ContentEditor">/NotasGastos/SiteAssets/JS/NuevaNotaGastos.js</ContentLink>
      <Content xmlns="http://schemas.microsoft.com/WebPart/v2/ContentEditor" />
      <PartStorage xmlns="http://schemas.microsoft.com/WebPart/v2/ContentEditor" />
    </WebPart>
    </WebPartPages:ContentEditorWebPart>
    <WebPartPages:DataFormWebPart runat="server" EnableOriginalValue="False" DisplayName="Notas de gasto" ViewFlag="1048584" ViewContentTypeId="" Default="FALSE" ListUrl="" ListDisplayName="" ListName="{87FB7760-7E68-4DF6-B5FB-7F0A77B49D2A}" ListId="87fb7760-7e68-4df6-b5fb-7f0a77b49d2a" PageType="PAGE_NEWFORM" PageSize="-1" UseSQLDataSourcePaging="True" DataSourceID="" ShowWithSampleData="False" AsyncRefresh="False" ManualRefresh="False" AutoRefresh="False" AutoRefreshInterval="60" NoDefaultStyle="TRUE" InitialAsyncDataFetch="False" Title="Notas de gasto" FrameType="TitleBarOnly" SuppressWebPartChrome="False" Description="" IsIncluded="True" PartOrder="4" FrameState="Normal" AllowRemove="True" AllowZoneChange="True" AllowMinimize="True" AllowConnect="True" AllowEdit="True" AllowHide="True" IsVisible="True" DetailLink="" HelpLink="" HelpMode="Modeless" Dir="Default" PartImageSmall="" MissingAssembly="No se puede importar este elemento web." ImportErrorMessage="No se puede importar este elemento web." PartImageLarge="" IsIncludedFilter="" ExportControlledProperties="True" ConnectionID="00000000-0000-0000-0000-000000000000" ID="g_094c1ded_0327_4a93_a4ac_8c8b731beee8" ChromeType="TitleOnly" ExportMode="All" __MarkupType="vsattributemarkup" __WebPartId="{094C1DED-0327-4A93-A4AC-8C8B731BEEE8}" __AllowXSLTEditing="true" WebPart="true" Height="" Width=""><DataSources>
    <SharePoint:SPDataSource runat="server" DataSourceMode="ListItem" SelectCommand="&lt;View&gt;&lt;Query&gt;&lt;Where&gt;&lt;Eq&gt;&lt;FieldRef Name=&quot;ContentType&quot;/&gt;&lt;Value Type=&quot;Text&quot;&gt;Notas de gastos&lt;/Value&gt;&lt;/Eq&gt;&lt;/Where&gt;&lt;/Query&gt;&lt;/View&gt;" UseInternalName="True" UseServerDataFormat="True"><SelectParameters><WebPartPages:DataFormParameter ParameterKey="ListItemId" PropertyName="ParameterValues" DefaultValue="0" Name="ListItemId"></WebPartPages:DataFormParameter><WebPartPages:DataFormParameter ParameterKey="weburl" PropertyName="ParameterValues" DefaultValue="https://ticiasoft1es.sharepoint.com/NotasGastos" Name="weburl"></WebPartPages:DataFormParameter><WebPartPages:DataFormParameter ParameterKey="ListID" PropertyName="ParameterValues" DefaultValue="{87FB7760-7E68-4DF6-B5FB-7F0A77B49D2A}" Name="ListID"></WebPartPages:DataFormParameter>
    			</SelectParameters><UpdateParameters><WebPartPages:DataFormParameter ParameterKey="ListItemId" PropertyName="ParameterValues" DefaultValue="0" Name="ListItemId"></WebPartPages:DataFormParameter><WebPartPages:DataFormParameter ParameterKey="weburl" PropertyName="ParameterValues" DefaultValue="https://ticiasoft1es.sharepoint.com/NotasGastos" Name="weburl"></WebPartPages:DataFormParameter><WebPartPages:DataFormParameter ParameterKey="ListID" PropertyName="ParameterValues" DefaultValue="{87FB7760-7E68-4DF6-B5FB-7F0A77B49D2A}" Name="ListID"></WebPartPages:DataFormParameter>
    			</UpdateParameters><InsertParameters><WebPartPages:DataFormParameter ParameterKey="ListItemId" PropertyName="ParameterValues" DefaultValue="0" Name="ListItemId"></WebPartPages:DataFormParameter><WebPartPages:DataFormParameter ParameterKey="weburl" PropertyName="ParameterValues" DefaultValue="https://ticiasoft1es.sharepoint.com/NotasGastos" Name="weburl"></WebPartPages:DataFormParameter><WebPartPages:DataFormParameter ParameterKey="ListID" PropertyName="ParameterValues" DefaultValue="{87FB7760-7E68-4DF6-B5FB-7F0A77B49D2A}" Name="ListID"></WebPartPages:DataFormParameter>
    			</InsertParameters><DeleteParameters><WebPartPages:DataFormParameter ParameterKey="ListItemId" PropertyName="ParameterValues" DefaultValue="0" Name="ListItemId"></WebPartPages:DataFormParameter><WebPartPages:DataFormParameter ParameterKey="weburl" PropertyName="ParameterValues" DefaultValue="https://ticiasoft1es.sharepoint.com/NotasGastos" Name="weburl"></WebPartPages:DataFormParameter><WebPartPages:DataFormParameter ParameterKey="ListID" PropertyName="ParameterValues" DefaultValue="{87FB7760-7E68-4DF6-B5FB-7F0A77B49D2A}" Name="ListID"></WebPartPages:DataFormParameter>
    			</DeleteParameters>
    </SharePoint:SPDataSource>
    </DataSources>
    <Xsl>
    
    
    
    <xsl:stylesheet xmlns:x="http://www.w3.org/2001/XMLSchema" xmlns:dsp="http://schemas.microsoft.com/sharepoint/dsp" version="1.0" exclude-result-prefixes="xsl msxsl ddwrt" xmlns:ddwrt="http://schemas.microsoft.com/WebParts/v2/DataView/runtime" xmlns:asp="http://schemas.microsoft.com/ASPNET/20" xmlns:__designer="http://schemas.microsoft.com/WebParts/v2/DataView/designer" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:msxsl="urn:schemas-microsoft-com:xslt" xmlns:SharePoint="Microsoft.SharePoint.WebControls" xmlns:ddwrt2="urn:frontpage:internal">
    	<xsl:output method="html" indent="no"/>
    	<xsl:decimal-format NaN=""/>
    	<xsl:param name="dvt_apos">&apos;</xsl:param>
    	<xsl:param name="ManualRefresh"></xsl:param>
    	<xsl:variable name="dvt_1_automode">0</xsl:variable>
    	<xsl:template match="/" xmlns:x="http://www.w3.org/2001/XMLSchema" xmlns:dsp="http://schemas.microsoft.com/sharepoint/dsp" xmlns:asp="http://schemas.microsoft.com/ASPNET/20" xmlns:__designer="http://schemas.microsoft.com/WebParts/v2/DataView/designer" xmlns:SharePoint="Microsoft.SharePoint.WebControls">
    		<xsl:choose>
    			<xsl:when test="($ManualRefresh = 'True')">
    				<table width="100%" border="0" cellpadding="0" cellspacing="0">
    					<tr>
    						<td valign="top">
    							<xsl:call-template name="dvt_1"/>
    						</td>
    						<td width="1%" class="ms-vb" valign="top">
    							<img src="/_layouts/15/images/staticrefresh.gif" id="ManualRefresh" border="0" onclick="javascript: {ddwrt:GenFireServerEvent('__cancel')}" alt="Click here to refresh the dataview."/>
    						</td>
    					</tr>
    				</table>
    			</xsl:when>
    			<xsl:otherwise>
    				<xsl:call-template name="dvt_1"/>
    			</xsl:otherwise>
    		</xsl:choose>
    	</xsl:template>
    	
    	<xsl:template name="dvt_1">
    		<xsl:variable name="dvt_StyleName">ListForm</xsl:variable>
    		<xsl:variable name="Rows" select="/dsQueryResponse/Rows/Row"/>
    		<div>
    			<span id="part1">
    				<table border="0" width="100%">
    					<xsl:call-template name="dvt_1.body">
    						<xsl:with-param name="Rows" select="$Rows"/>
    					</xsl:call-template>
    				</table>
    			</span>
    			<SharePoint:AttachmentUpload runat="server" ControlMode="New"/>
    			<SharePoint:ItemHiddenVersion runat="server" ControlMode="New"/>
    		</div>
    	</xsl:template>
    	<xsl:template name="dvt_1.body">
    		<xsl:param name="Rows"/>
    		<!--<tr>
    			<td class="ms-toolbar" nowrap="nowrap">
    				<table>
    					<tr>
    						<td width="99%" class="ms-toolbar" nowrap="nowrap"><IMG SRC="/_layouts/15/images/blank.gif" width="1" height="18"/></td>
    						<td class="ms-toolbar" nowrap="nowrap">
    							<SharePoint:SaveButton runat="server" ControlMode="New" id="savebutton1"/>
    						</td>
    						<td class="ms-separator"> </td>
    						<td class="ms-toolbar" nowrap="nowrap" align="right">
    							<SharePoint:GoBackButton runat="server" ControlMode="New" id="gobackbutton1"/>
    						</td>
    					</tr>
    				</table>
    			</td>
    		</tr>-->
    		<tr>
    			<td class="ms-toolbar" nowrap="nowrap">
    				<SharePoint:FormToolBar runat="server" ControlMode="New"/>
    				<SharePoint:ItemValidationFailedMessage runat="server" ControlMode="New"/>
    			</td>
    		</tr>
    		<xsl:call-template name="dvt_1.rowedit"/>
    				<!--<tr>
    			<td class="ms-toolbar" nowrap="nowrap">
    				<table>
    					<tr>
    						<td width="99%" class="ms-toolbar" nowrap="nowrap"><IMG SRC="/_layouts/15/images/blank.gif" width="1" height="18"/></td>
    						<td class="ms-toolbar" nowrap="nowrap">
    							<SharePoint:SaveButton runat="server" ControlMode="New" id="savebutton2"/>
    						</td>
    						<td class="ms-separator">&#160;</td>
    						<td class="ms-toolbar" nowrap="nowrap" align="right">
    							<SharePoint:GoBackButton runat="server" ControlMode="New" id="gobackbutton2"/>
    						</td>
    					</tr>
    				</table>
    			</td>
    		</tr>-->
    		<tr>
    			<td class="ms-toolbar" nowrap="nowrap">
    				<table>
    					<tr>
    						<td width="99%" class="ms-toolbar" nowrap="nowrap"><IMG SRC="/_layouts/15/images/blank.gif" width="1" height="18"/></td>
    						<td class="ms-toolbar" nowrap="nowrap">
    							<!--<SharePoint:SaveButton runat="server" ControlMode="New" id="savebutton2"/>-->
    							<!--FUEN-->
    							<!--<input style="margin-right:5px" type="button" value="Limpiar" name="btnClean" onclick="LimpiarFormulario()" />-->
    							<!--<input style="margin-right:5px" type="button" value="Guardar" name="btnSave" onclick="GuardarDatosSolicitud();{ddwrt:GenFireServerEvent('__commit;__redirect={https://ticiasoft1es.sharepoint.com/suiterrhh/SitePages/SOLICITUDES.aspx}')}; " />-->
    							<input style="margin-right:5px;text-align:center" type="button" value="Guardar" name="btnSave" onclick="GuardarDatosNota()" />							
    							<input style="margin-right:0px;text-align:center" type="button" value="Cancelar" name="btnCancel" onclick="VolverANotas()" />
    							<!--FUEN-->
    							<!--<input type="button" value="Guardar" name="btnSave" onclick="javascript:fguardar(); {ddwrt:GenFireServerEvent('__commit;__redirect={https://ticiasoft1es.sharepoint.com/suiterrhh/Lists/Solicitudes2/AllItems.aspx}')}; " />-->
    						</td>
    						<td class="ms-separator">
    							<xsl:text xmlns:ddwrt="http://schemas.microsoft.com/WebParts/v2/DataView/runtime" ddwrt:nbsp-preserve="yes" disable-output-escaping="yes">&amp;nbsp;</xsl:text>
    						</td>
    						<td class="ms-toolbar" nowrap="nowrap" align="right">
    							<!--<SharePoint:GoBackButton runat="server" ControlMode="New" id="gobackbutton2"/>-->
    						</td>
    					</tr>
    				</table>
    			</td>
    		</tr>
    	</xsl:template>
    	<xsl:template name="dvt_1.rowedit">
    		<xsl:param name="Pos" select="position()"/>
    		<tr>
    			<td>
    			<table class="myTableEdit">
    				<!--<table border="0" cellspacing="0" width="100%">-->
    					<tr>
    						<td width="190px" valign="top" class="ms-formlabel">
    							<H3 class="ms-standardheader">
    								<b>Empleado<span class="ms-formvalidation"> (*)</span></b>
    							</H3>
    						</td>
    						<td width="400px" valign="top" class="ms-formbody">
    							<!--<SharePoint:ClientPeoplePicker runat="server" id="ff10{$Pos}" ControlMode="New" FieldName="Empleado" __designer:bind="{ddwrt:DataBind('i',concat('ff10',$Pos),'Value','ValueChanged','ID',ddwrt:EscapeDelims(string(@ID)),'@Empleado')}"/>-->
    							
    							<SharePoint:FormField runat="server" id="ff10{$Pos}" ControlMode="New" FieldName="Empleado" __designer:bind="{ddwrt:DataBind('i',concat('ff10',$Pos),'Value','ValueChanged','ID',ddwrt:EscapeDelims(string(@ID)),'@Empleado')}"/>
    							<SharePoint:FieldDescription runat="server" id="ff10description{$Pos}" FieldName="Empleado" ControlMode="New"/>
    						</td>
    					</tr>
    					<tr>
    						<td width="190px" valign="top" class="ms-formlabel">
    							<H3 class="ms-standardheader">
    								<b>Fecha gasto<span class="ms-formvalidation"> (*)</span></b>
    							</H3>
    						</td>
    						<td width="400px" valign="top" class="ms-formbody">
    							<div style="width:90%; float: left;"> 
    								<SharePoint:FormField runat="server" id="ff5{$Pos}" ControlMode="New" FieldName="Fecha_x0020_gasto" __designer:bind="{ddwrt:DataBind('i',concat('ff5',$Pos),'Value','ValueChanged','ID',ddwrt:EscapeDelims(string(@ID)),'@Fecha_x0020_gasto')}"/>
    							</div>
    							<div style="width:10%; float: left;">
    								<input style="margin-left:-200%" type="button" value="Obtener proyectos" name="btnObt"/>
    							</div>
    							
    							<SharePoint:FieldDescription runat="server" id="ff5description{$Pos}" FieldName="Fecha_x0020_gasto" ControlMode="New"/>
    							<div class="width75">
    								<label id="errorFecha" class="errorComprobacion">El campo debe tener el formato DD/MM/AAAA</label>
    							</div>
    						</td>
    					</tr>
    					<tr>
    						<td width="190px" valign="top" class="ms-formlabel">
    							<H3 class="ms-standardheader">
    								<b>Proyecto<span class="ms-formvalidation"> (*)</span></b>
    							</H3>
    						</td>
    						<td width="400px" valign="top" class="ms-formbody">
    							<SharePoint:FormField runat="server" id="ff1{$Pos}" ControlMode="New" FieldName="Proyecto" __designer:bind="{ddwrt:DataBind('i',concat('ff1',$Pos),'Value','ValueChanged','ID',ddwrt:EscapeDelims(string(@ID)),'@Proyecto')}"/>
    							<SharePoint:FieldDescription runat="server" id="ff1description{$Pos}" FieldName="Proyecto" ControlMode="New"/>
    						</td>
    					</tr>
    					<tr id="idViaje" style="display:none">
    						<td width="190px" valign="top" class="ms-formlabel">
    							<H3 class="ms-standardheader">
    								<b>Viaje</b>
    							</H3>
    						</td>
    						<td width="400px" valign="top" class="ms-formbody">
    							<SharePoint:FormField runat="server" id="ff2{$Pos}" ControlMode="New" FieldName="Viaje" __designer:bind="{ddwrt:DataBind('i',concat('ff2',$Pos),'Value','ValueChanged','ID',ddwrt:EscapeDelims(string(@ID)),'@Viaje')}"/>
    							<SharePoint:FieldDescription runat="server" id="ff2description{$Pos}" FieldName="Viaje" ControlMode="New"/>
    						</td>
    					</tr>
    					<tr>
    						<td width="190px" valign="top" class="ms-formlabel">
    							<H3 class="ms-standardheader">
    								<b>Concepto<span class="ms-formvalidation"> (*)</span></b>
    							</H3>
    						</td>
    						<td width="400px" valign="top" class="ms-formbody">
    							<SharePoint:FormField runat="server" id="ff3{$Pos}" ControlMode="New" FieldName="Concepto0" __designer:bind="{ddwrt:DataBind('i',concat('ff3',$Pos),'Value','ValueChanged','ID',ddwrt:EscapeDelims(string(@ID)),'@Concepto0')}"/>
    							<SharePoint:FieldDescription runat="server" id="ff3description{$Pos}" FieldName="Concepto0" ControlMode="New"/>
    						</td>
    					</tr>
    					<!--<tr>
    						<td width="190px" valign="top" class="ms-formlabel">
    							<H3 class="ms-standardheader">
    								<nobr>Descripción gasto<span class="ms-formvalidation"> (*)</span>
    								</nobr>
    							</H3>
    						</td>
    						<td width="400px" valign="top" class="ms-formbody">
    							<SharePoint:FormField runat="server" id="ff4{$Pos}" ControlMode="New" FieldName="Title" __designer:bind="{ddwrt:DataBind('i',concat('ff4',$Pos),'Value','ValueChanged','ID',ddwrt:EscapeDelims(string(@ID)),'@Title')}"/>
    							<SharePoint:FieldDescription runat="server" id="ff4description{$Pos}" FieldName="Title" ControlMode="New"/>
    						</td>
    					</tr>-->
    					<tr>
    						<td width="190px" valign="top" class="ms-formlabel">
    							<H3 class="ms-standardheader">
    								<b>Descripción gasto<span class="ms-formvalidation"> (*)</span>
    								</b>
    							</H3>
    						</td>
    						<td width="400px" valign="top" class="ms-formbody">
    							<SharePoint:FormField runat="server" id="ff11{$Pos}" ControlMode="New" FieldName="DescripcionGasto" __designer:bind="{ddwrt:DataBind('i',concat('ff11',$Pos),'Value','ValueChanged','ID',ddwrt:EscapeDelims(string(@ID)),'@DescripcionGasto')}"/>
    							<SharePoint:FieldDescription runat="server" id="ff11description{$Pos}" FieldName="DescripcionGasto" ControlMode="New"/>
    						</td>
    					</tr>
    					
    
    					<tr>
    						<td width="190px" valign="top" class="ms-formlabel">
    							<H3 class="ms-standardheader">
    								<b>Cantidad<span class="ms-formvalidation"> (*)</span></b>
    							</H3>
    						</td>
    						<td width="400px" valign="top" class="ms-formbody">
    							<SharePoint:FormField runat="server" id="ff6{$Pos}" ControlMode="New" FieldName="Cantidad" __designer:bind="{ddwrt:DataBind('i',concat('ff6',$Pos),'Value','ValueChanged','ID',ddwrt:EscapeDelims(string(@ID)),'@Cantidad')}"/>
    							<SharePoint:FieldDescription runat="server" id="ff6description{$Pos}" FieldName="Cantidad" ControlMode="New"/>
    							<div class="width75">
    								<label id="errorCantidad" class="errorComprobacion">El campo debe ser numérico</label>
    							</div>
    							<div class="width75">
    								<label id="errorCantidad2" class="errorComprobacion">El valor debe contener como mucho 2 decimales</label>
    							</div>
    
    
    						</td>
    					</tr>
    
    					<tr>
    						<td width="190px" valign="top" class="ms-formlabel">
    							<H3 class="ms-standardheader">
    								<b>Precio Unitario<span class="ms-formvalidation"> (*)</span></b>
    							</H3>
    						</td>
    						<td width="400px" valign="top" class="ms-formbody">
    							<SharePoint:FormField runat="server" id="ff7{$Pos}" ControlMode="New" FieldName="Precio_x0020_Unitario" __designer:bind="{ddwrt:DataBind('i',concat('ff7',$Pos),'Value','ValueChanged','ID',ddwrt:EscapeDelims(string(@ID)),'@Precio_x0020_Unitario')}"/>
    							<SharePoint:FieldDescription runat="server" id="ff7description{$Pos}" FieldName="Precio_x0020_Unitario" ControlMode="New"/>
    							<div class="width75">
    								<label id="errorPrecio" class="errorComprobacion">El campo debe ser numérico</label>
    							</div>
    							<div class="width75">
    								<label id="errorPrecio2" class="errorComprobacion">El valor debe contener como mucho 2 decimales</label>
    							</div>
    
    						</td>
    					</tr>
    					<tr>
    						<td width="190px" valign="top" class="ms-formlabel">
    							<H3 class="ms-standardheader">
    								<b>Importe<span class="ms-formvalidation"> (*)</span></b>
    							</H3>
    							<p style="white-space:pre-line;">
    								<SharePoint:FieldDescription runat="server" id="ff8description{$Pos}" FieldName="Importe" ControlMode="New"/>
    							</p>
    						</td>
    						<td width="400px" valign="top" class="ms-formbody">
    							<SharePoint:FormField runat="server" id="ff8{$Pos}" ControlMode="New" FieldName="Importe" __designer:bind="{ddwrt:DataBind('i',concat('ff8',$Pos),'Value','ValueChanged','ID',ddwrt:EscapeDelims(string(@ID)),'@Importe')}"/>
    							
    							<div class="width75">
    								<label id="errorImporte" class="errorComprobacion">El campo debe ser numérico</label>
    							</div>
    							<div class="width75">
    								<label id="errorImporte2" class="errorComprobacion">El valor debe contener como mucho 2 decimales</label>
    							</div>
    
    						</td>
    					</tr>
    					<tr>
    						<td width="190px" valign="top" class="ms-formlabel">
    							<H3 class="ms-standardheader">
    								<b>Divisa<span class="ms-formvalidation"> (*)</span></b>
    							</H3>
    							<p style="white-space:pre-line;">
    								<SharePoint:FieldDescription runat="server" id="ff14description{$Pos}" FieldName="Divisa" ControlMode="New"/>
    							</p>
    						</td>
    						<td width="400px" valign="top" class="ms-formbody">
    							<SharePoint:FormField runat="server" id="ff14{$Pos}" ControlMode="New" FieldName="Divisa" __designer:bind="{ddwrt:DataBind('i',concat('ff14',$Pos),'Value','ValueChanged','ID',ddwrt:EscapeDelims(string(@ID)),'@Divisa')}"/>
    							
    						</td>
    					</tr>
    					<tr>
    						<td width="190px" valign="top" class="ms-formlabel">
    							<H3 class="ms-standardheader">
    								<b>Facturable a cliente</b>
    							</H3>
    						</td>
    						<td width="400px" valign="top" class="ms-formbody">
    							<SharePoint:FormField runat="server" id="ff9{$Pos}" ControlMode="New" FieldName="Facturable_x0020_a_x0020_cliente" __designer:bind="{ddwrt:DataBind('i',concat('ff9',$Pos),'Value','ValueChanged','ID',ddwrt:EscapeDelims(string(@ID)),'@Facturable_x0020_a_x0020_cliente')}"/>
    							<SharePoint:FieldDescription runat="server" id="ff9description{$Pos}" FieldName="Facturable_x0020_a_x0020_cliente" ControlMode="New"/>
    						</td>
    					</tr>
    					<tr>
    						<td width="190px" valign="top" class="ms-formlabel">
    							<H3 class="ms-standardheader">
    								<b>Forma de pago<span class="ms-formvalidation"> (*)</span>
    								</b>
    							</H3>
    						</td>
    						<td width="400px" valign="top" class="ms-formbody">
    							<SharePoint:FormField runat="server" id="ff12{$Pos}" ControlMode="New" FieldName="FormaDePago" __designer:bind="{ddwrt:DataBind('i',concat('ff12',$Pos),'Value','ValueChanged','ID',ddwrt:EscapeDelims(string(@ID)),'@FormaDePago')}"/>
    							<SharePoint:FieldDescription runat="server" id="ff12description{$Pos}" FieldName="FormaDePago" ControlMode="New"/>
    						</td>
    					</tr>
    					<tr id="idNumTarj" style="display:none;">
    						<td width="190px" valign="top" class="ms-formlabel">
    							<H3 class="ms-standardheader">
    								<b>Número de tarjeta<span class="ms-formvalidation"> (*)</span>
    								</b>
    							</H3>
    							<p style="white-space:pre-line;">
    								<SharePoint:FieldDescription runat="server" id="ff13description{$Pos}" FieldName="NumeroTarjeta" ControlMode="New"/>
    							</p>
    						</td>
    						<td width="400px" valign="top" class="ms-formbody">
    							<SharePoint:FormField runat="server" id="ff13{$Pos}" ControlMode="New" FieldName="NumeroTarjeta" __designer:bind="{ddwrt:DataBind('i',concat('ff13',$Pos),'Value','ValueChanged','ID',ddwrt:EscapeDelims(string(@ID)),'@NumeroTarjeta')}"/>
    							
    						</td>
    					</tr>
    					<tr id="idAttachmentsRow">
    						<td nowrap="true" valign="top" class="ms-formlabel" width="20%">
    							<SharePoint:FieldLabel ControlMode="New" FieldName="Attachments" runat="server"/>
    						</td>
    						<td valign="top" class="ms-formbody" width="80%">
    							<SharePoint:FormField runat="server" id="AttachmentsField" ControlMode="New" FieldName="Attachments" __designer:bind="{ddwrt:DataBind('i','AttachmentsField','Value','ValueChanged','ID',ddwrt:EscapeDelims(string(@ID)),'@Attachments')}"/>
    							<script>
    					          var elm = document.getElementById(&quot;idAttachmentsTable&quot;);
    					          if (elm == null || elm.rows.length == 0)
    					          document.getElementById(&quot;idAttachmentsRow&quot;).style.display=&apos;none&apos;;
    					        </script>
    						</td>
    					</tr>
    					<tr>
    						<td valign="top" class="ms-formlabel">
    							<h3 class="ms-standardheader"><b>Documento adjunto</b></h3>
    						</td>
    						<td valign="top" class="ms-form-body" style="width:75%;">
    							<div id="NGSelectFile" class="selectFile">
    								<input style="border:0;" type="file" id="NGFile" value="Examinar..." />
    							</div>
    							<div id="miNG" class="ms-formlabel selectFile">	
    							</div>
    						</td>
    					</tr>
    					<xsl:if test="$dvt_1_automode = '1'" ddwrt:cf_ignore="1">
    						<tr>
    							<td colspan="99" class="ms-vb">
    								<span ddwrt:amkeyfield="ID" ddwrt:amkeyvalue="ddwrt:EscapeDelims(string(@ID))" ddwrt:ammode="view"></span>
    							</td>
    						</tr>
    					</xsl:if>
    				</table>
    			</td>
    		</tr>
    	</xsl:template>
    </xsl:stylesheet></Xsl>
    <DataFields>
    </DataFields>
    <ParameterBindings>
    		 <ParameterBinding Name="ListItemId" Location="QueryString(ID)" DefaultValue="0"/>
    		 <ParameterBinding Name="weburl" Location="None" DefaultValue="https://ticiasoft1es.sharepoint.com/NotasGastos"/>
    		 <ParameterBinding Name="ListID" Location="None" DefaultValue="{87FB7760-7E68-4DF6-B5FB-7F0A77B49D2A}"/>
    		 <ParameterBinding Name="dvt_apos" Location="Postback;Connection"/>
    		 <ParameterBinding Name="ManualRefresh" Location="WPProperty[ManualRefresh]"/>
    		 <ParameterBinding Name="UserID" Location="CAMLVariable" DefaultValue="CurrentUserName"/>
    		 <ParameterBinding Name="Today" Location="CAMLVariable" DefaultValue="CurrentDate"/>
    	 </ParameterBindings>
    </WebPartPages:DataFormWebPart>
    
    		</ZoneTemplate></WebPartPages:WebPartZone>
    	  </td>
    	 </tr>
    	</table>
    <SharePoint:UIVersionedContent UIVersion="4" runat="server">
    	<ContentTemplate>
    	</div>
    	</ContentTemplate>
    </SharePoint:UIVersionedContent>
    </asp:Content>
    <asp:Content ContentPlaceHolderId="PlaceHolderAdditionalPageHead" runat="server">
    	<SharePoint:DelegateControl runat="server" ControlId="FormCustomRedirectControl" AllowMultipleControls="true"/>
    	<SharePoint:UIVersionedContent UIVersion="4" runat="server"><ContentTemplate>
    		<SharePoint:CssRegistration Name="forms.css" runat="server"/>
    	</ContentTemplate></SharePoint:UIVersionedContent>
    </asp:Content>
    <asp:Content ContentPlaceHolderId="PlaceHolderTitleLeftBorder" runat="server">
    <table cellpadding="0" height="100%" width="100%" cellspacing="0">
     <tr><td class="ms-areaseparatorleft"><img src="/_layouts/15/images/blank.gif?rev=44" width='1' height='1' alt="" data-accessibility-nocheck="true"/></td></tr>
    </table>
    </asp:Content>
    <asp:Content ContentPlaceHolderId="PlaceHolderTitleAreaClass" runat="server">
    <script type="text/javascript" id="onetidPageTitleAreaFrameScript">
    	if (document.getElementById("onetidPageTitleAreaFrame") != null)
    	{
    		document.getElementById("onetidPageTitleAreaFrame").className="ms-areaseparator";
    	}
    </script>
    </asp:Content>
    <asp:Content ContentPlaceHolderId="PlaceHolderBodyAreaClass" runat="server">
    <SharePoint:StyleBlock runat="server">
    .ms-bodyareaframe {
    	padding: 8px;
    	border: none;
    }
    </SharePoint:StyleBlock>
    </asp:Content>
    <asp:Content ContentPlaceHolderId="PlaceHolderBodyLeftBorder" runat="server">
    <div class='ms-areaseparatorleft'><img src="/_layouts/15/images/blank.gif?rev=44" width='8' height='100%' alt="" data-accessibility-nocheck="true"/></div>
    </asp:Content>
    <asp:Content ContentPlaceHolderId="PlaceHolderTitleRightMargin" runat="server">
    <div class='ms-areaseparatorright'><img src="/_layouts/15/images/blank.gif?rev=44" width='8' height='100%' alt="" data-accessibility-nocheck="true"/></div>
    </asp:Content>
    <asp:Content ContentPlaceHolderId="PlaceHolderBodyRightMargin" runat="server">
    <div class='ms-areaseparatorright'><img src="/_layouts/15/images/blank.gif?rev=44" width='8' height='100%' alt="" data-accessibility-nocheck="true"/></div>
    </asp:Content>
    <asp:Content ContentPlaceHolderId="PlaceHolderTitleAreaSeparator" runat="server"/>
    

     


    lunes, 17 de octubre de 2016 7:00