Árvore de páginas

Versões comparadas

Chave

  • Esta linha foi adicionada.
  • Esta linha foi removida.
  • A formatação mudou.
HTML

<div id="main-content" class="wiki-content group">
	<h3
		id="id-2.AssociaçãodeRegistrosdoBancodeDadoscomDocumentosnoGED-2.1.Objetivo">
		<strong>2.1. ObjetivoObjective</strong>
	</h3>
	<p align="LEFT">Permitir>Allow althe usuariouser realizarto upload/download de una document to the
		documento a la central de documentos del FLUIG(GED), vinculando este a
		un registro en la base de datos de negocio. Esta funcionalidad se
		podrá utilizar en formularios metadatos del tipo CRUDFreeForm o
		FLUIG(GED) document center, linking it to a record in business
		database. This functionality can be used in metadata forms of the type
		CRUDFreeForm or FreeForm.</p>
	<p align="LEFT">&#160;</p>
	<h3
		id="id-2.AssociaçãodeRegistrosdoBancodeDadoscomDocumentosnoGED-2.2.GuiadeUtilização">
		<strong>2.2. GuíaUse de uso<Guide</strong>
	</h3>
	<p align="LEFT">
		CuandoWhen a enform unincludes formularioa serecord presentaselected unby registrothe seleccionadouser, porits el<strong>Related
		usuario, el componente de <strong>Acciones Relacionadas<	Actions</strong> del
		mismo puede presentar un ítem para permitir asociar un documento
		cualquiera con el registro seleccionado. La Figuracomponent can present an item to allow the association of any
		document with the selected record. Figure 1.2.a presentapresents a unMetadata
		CRUD Metadatoswith cona unselected registrorecord. seleccionado,When cuandothe eluser usuarioclicks haga<strong>Related
			clic en <strong>Acciones Relacionadas<Actions</strong>, the <strong>Document Association</strong> seitem presentará el ítem <strong>Asociaciónwill be
			de Documentos</strong>presented.
	</p>
	<p align="LEFT">
		<img class="confluence-embedded-image image-center"
			src="http://tdn.totvs.com/download/attachments/81789095/image00.png?version=2&modificationDate=1381350303000&api=v2"
			data-image-src="http://tdn.totvs.com/download/attachments/81789095/image00.png?version=2&modificationDate=1381350303000&api=v2">
	</p>
	<p align="LEFT" style="text-align: center;">
		<strong>Gráfico<strong>Figure 1.2:.a</strong>
	</p>
	<p align="LEFT">
		<span>En<span>In elthe casocase deof CRUDFreeForm, when cuandothe eluser usuarioselects seleccionaa
			un registrorecord (sóloonly 1) enin the lasearch redgrid, dethe búsqueda,document automáticamenteassociation elitem
			elementoshould Asociaciónbe deautomatically documentosavailable. deberáIn estarthe disponible.case Enof elFreeForm, casothe
			deABLScript FreeFormcode seshall deberábe utilizarused unto códigoenable ABLScript para habilitar el
			elementothe item. </span><span>&#160;</span>
	</p>
	<p align="LEFT">
		<span>Cuando<span>When elthe usuariouser haceclicks clic en el elemento <strong>Documentothe <strong>Document
				asociación<Association</strong> item, sethe presentaráwindow lapresented ventanain delFigure gráfico 1.2. bb will be
			displayed.
		</span>
	</p>
	<p align="LEFT" style="text-align: center;">
		<img class="confluence-embedded-image image-center"
			src="http://tdn.totvs.com/download/attachments/81789095/image02.png?version=1&modificationDate=1381854680000&api=v2"
			data-image-src="http://tdn.totvs.com/download/attachments/81789095/image02.png?version=1&modificationDate=1381854680000&api=v2"><strong>Gráfico><strong>Figure
			1.2.b</strong>
	</p>
	<p align="LEFT">
		DespuésAfter deconfirming confirmarthe laoperation, operaciónthe sewindow presentaráof ante el usuario laFigure 1.2.c will be
		ventanapresented delto Gráfico 1.2.c. Allíthe user, podráwhere hacerthe clicuser encan elclick botónthe <strong>Seleccionar<<strong>Select</strong>
		parabutton elegirto unchoose archivoa enfile elin equipothe local machine.
	</p>
	<p align="LEFT">
		<img class="confluence-embedded-image image-center"
			src="http://tdn.totvs.com/download/attachments/81789095/image03.png?version=1&modificationDate=1381854823000&api=v2"
			data-image-src="http://tdn.totvs.com/download/attachments/81789095/image03.png?version=1&modificationDate=1381854823000&api=v2">
	</p>
	<p align="LEFT" style="text-align: center;">
		<strong>Figura<strong>Figure 1.2.c</strong>
	</p>
	<p align="LEFT">&#160;</p>
	<p align="LEFT">El sistema cargará el archivo y lo enviará a una
		carpeta en el GED. Luego aparecerá la pantalla que se muestra en el
		gráfico>The system will then load the file and send it to a
		folder in GED. Then it displays the screen shown in Figure 1.2.d.</p>
	<p align="LEFT">
		<img class="confluence-embedded-image image-center"
			src="http://tdn.totvs.com/download/attachments/81789095/image04.png?version=1&modificationDate=1381855014000&api=v2"
			data-image-src="http://tdn.totvs.com/download/attachments/81789095/image04.png?version=1&modificationDate=1381855014000&api=v2">
	</p>
	<p align="LEFT" style="text-align: center;">
		<strong>Figura<strong>Figure 1.2.d</strong>
	</p>
	<p align="LEFT">Después de insertar un documento, el usuario podrá
		agregar opcionalmente otros archivos para asociar con el mismo
		registro, como se muestra en el gráfico >After adding a document, the user has the option to
		add other files to associate with the same record, as shown in Figure
		1.2.e.</p>
	<p align="LEFT">
		<img class="confluence-embedded-image image-center"
			src="http://tdn.totvs.com/download/attachments/81789095/image05.png?version=1&modificationDate=1381855187000&api=v2"
			data-image-src="http://tdn.totvs.com/download/attachments/81789095/image05.png?version=1&modificationDate=1381855187000&api=v2">
	</p>
	<p align="LEFT" style="text-align: center;">
		<strong>Gráfico<strong>Figure 1.2.e</strong>
	</p>
	<p align="LEFT">
		EnIn otrasanother ocasionessituation, elthe usuariouser podrámay volverselect a seleccionar el <strong>mismo<the <strong>same</strong>
		registrorecord again, abriropen las<strong>Related <strong>Acciones Relacionadas<Actions</strong> and yclick again hacerin
		clic nuevamente en <strong>Asociación de documentos<<strong>Document Association</strong> (Gráfico
		Figure 1.2.a). DesdeFrom este punto el usuario podrá descargar dos archivosthis point,
		asociados nuevamente a la máquina local o eliminar la asociación del
		documento con el registro, como se muestra en los gráficosthe user can download one of the files associated back to the local
		machine or remove the document association with the record, as shown
		in figures 1.2.f yand 1.2
		.g.
	</p>
	<p align="LEFT">
		<img class="confluence-embedded-image image-center"
			src="http://tdn.totvs.com/download/attachments/81789095/image06.png?version=1&modificationDate=1381855306000&api=v2"
			data-image-src="http://tdn.totvs.com/download/attachments/81789095/image06.png?version=1&modificationDate=1381855306000&api=v2">
	</p>
	<p align="LEFT" style="text-align: center;">
		<strong>Gráfico<strong>Figure 1.2.f</strong>
	</p>
	<p align="LEFT" style="text-align: center;">
		<img class="confluence-embedded-image image-center"
			src="http://tdn.totvs.com/download/attachments/81789095/image07.png?version=1&modificationDate=1381855561000&api=v2"
			data-image-src="http://tdn.totvs.com/download/attachments/81789095/image07.png?version=1&modificationDate=1381855561000&api=v2">Gráfico><strong>Figure
			1.2.g</img>strong>
	</p>
	<p align="LEFT">&#160;</p>
	<h3
		id="id-2.AssociaçãodeRegistrosdoBancodeDadoscomDocumentosnoGED-2.3.GuiadeProgramação">
		<strong>2.3. GuíaProgramming de Programación<Guide</strong>
	</h3>
	<p>
		Para el componente de <strong>Acciones Relacionadas<In order for the component of <strong>Related Actions</strong> deof una <strong>CRUDFreeForm</strong>
		puedato be mostrarable elto elementopresent <strong>Asociaciónthe de<strong>Document Documentos<Association</strong> item,
		debe establecerse mediante ABLScript la propiedad <strong>enableDocRel</strong>,
		como se muestra en el ejemplo siguientethe <strong>enableDocRel</strong> property must be set via the
		ABLScript, as shown in the following example:
	</p>
	<p align="LEFT" class="western" style="margin-left: 37.4333px;">
		<span><strong>DEFINIRPROPIEDAD<<span><strong>SETPROPERTY</strong></span><span>(relatedActions,
			"<“</span><span>enableDocRel</span><span><strong>"span><span><strong>”, true).</strong></span>
	</p>
	<p align="LEFT" class="western" style="margin-left: 7.0px;">
		<span><strong><br /></strong>Enstrong>In casocase deof formularios <strong>FreeForm</strong>
			elforms, desarrolladorthe deberádeveloper agregarshould eladd componentethe <strong>RelatedActionsOperation</strong>.
			Cuando haya un registro seleccionado en el formulario, se debecomponent to the form. When there is a selected record in the form,
			ejecutarrun una script similar alto the siguientefollowing:</span>
	</p>
	<div class="code panel pdl" style="border-width: 1px;">
		<div class="codeContent panelContent pdl">
			<pre class="theme: Eclipse; brush: plain; gutter: true"
				style="font-size: 12px;">DEFINE VARIABLE relatedActions AS WIDGET-HANDLE.
DEFINE VARIABLE data AS CHARACTER.
DEFINE TEMP-TABLE ttFullRecId
   FIELD databaseName AS CHARACTER
   FIELD tableName AS CHARACTER
   FIELD recordKeys AS CHARACTER.
DEFINE TEMP-TABLE ttRecId
   FIELD cdn_cliente AS INTEGER
   FIELD cod_empresa AS CHARACTER.
CREATE ttRecId.
ttRecId.cdn_cliente = 3455.
ttRecId.cod_empresa = "1".
data = JSON-ENCODE(ttRecId, true).
CREATE ttFullRecId.
ttFullRecId.databaseName = "emsuni".
ttFullRecId.tableName = "cliente".
ttFullRecId.recordKeys = data.
data = JSON-ENCODE(ttFullRecId, true).
SETPROPERTY(relatedActions, "enableDocRel", true).
CALLFUNCTION(relatedActions, "setDocRecordId", data).</pre>
		</div>
	</div>
	<p>&#160;</p>
	<p align="LEFT" class="western" style="margin-left: 7.0px;">
		<span>La<span>Information informaciónabout sobreassociations lasbetween asociaciones entre registro yrecord and
			documentosdocuments seis almacenanstored enin unaa tablatable llamadanamed <strong>docto_ged_relac_rec</strong>
			enin elthe bancoEMSFND EMSFNDdatabase.<br />
		</span>
	</p>
	<p>&#160;</p>
	<p>
		<strong><br /></strong>
	</p>
</div>