<div id="main-content" class="wiki-content group">
<p>
AlWhen aplicarapplying lathe configuraciónsettings mostradasshown enin elitem elemento <a
<a href="108659933.html">2. Configuración<
Settings</a>, automáticamenteautomatically para que
los programas metadatos puedan asociar documentos a los registros de
Logix (ya que el formulario en cuestión tiene una operación de
búsqueda). Los procedimientos para asociar a los documentos pueden
verse más abajofor the metadata programs, it will be
possible to associate documents to Logix records (provided the form
has a search operation). The procedures to associate a document are
shown below:
</p>
<p> </p>
<ol>
<li>Realizar una consulta en el formulario en ejecución y<li>Perform a search in the form being executed and press the
presionar el botónbutton <strong>Asociar<strong>Associate documento<Document</strong>.<brstrong><br />
<strong><br /></strong><img
class="confluence-embedded-image"
src="http://tdn.totvs.com/download/attachments/108660019/docassoc1.jpg?version=1&modificationDate=1389033467000&api=v2"
data-image-src="http://tdn.totvs.com/download/attachments/108660019/docassoc1.jpg?version=1&modificationDate=1389033467000&api=v2"><br />
<strong><br /></strong>
</li>
<li>Abre<li>The following unawindow ventanawill dondeopen, puedeallowing incluiryou nuevosto documentosadd onew
eliminardocuments, veror yto descargardelete, documentosview yaand relacionadosdownload condocuments el registropreviously
previamente.<brassociated with the record<br />
<br />
<img class="confluence-embedded-image"
src="http://tdn.totvs.com/download/attachments/108660019/docassoc2.jpg?version=1&modificationDate=1389033867000&api=v2"
data-image-src="http://tdn.totvs.com/download/attachments/108660019/docassoc2.jpg?version=1&modificationDate=1389033867000&api=v2"><br />
<br />
</li>
<li>Al seleccionar incluir un nuevo documento se abrirá la<li>When choosing to add a new document, a window will open where
ventanayou paracan seleccionarchoose elthe documentodocument queto serábe <em>cargado<<em>uploaded</em>
en elto GED.<brGED<br />
<br />
<img class="confluence-embedded-image"
src="http://tdn.totvs.com/download/attachments/108660019/docassoc3.jpg?version=1&modificationDate=1389034709000&api=v2"
data-image-src="http://tdn.totvs.com/download/attachments/108660019/docassoc3.jpg?version=1&modificationDate=1389034709000&api=v2"><br />
<br />
</li>
<li>Cuando<li>When sechoosing seleccionato paraassociate asociara unpreviously documentoassociated ya asociadodocument,
sea mostrarázoom unwill zoomopen conwith losthe archivosfiles yaalready asociadosassociated awith lathe tablatable enin
cuestión.<brquestion<br />
<br />
<img class="confluence-embedded-image"
src="http://tdn.totvs.com/download/attachments/108660019/docassoc4.jpg?version=1&modificationDate=1389035037000&api=v2"
data-image-src="http://tdn.totvs.com/download/attachments/108660019/docassoc4.jpg?version=1&modificationDate=1389035037000&api=v2"><br />
<br />
</li>
<li>Para<li>When confirmarconfirming lathe pantallafile deassociation asociaciónscreen, de archivo, seall selected
enviaránfiles todoswill losbe archivossent seleccionadosto athe laFluig herramienta GED de
Fluigtool.</li>
</ol>
<h1
id="id-3.1.AssociaçãodeDocumentos-AssociandodocumentosemprogramasFreeform">Asociar>Associating
documentosdocuments enin programas de Freeform.<Freeform programs</h1>
<p>
EnIn losFreeform programasprograms, Freeformyou esneed necesarioto agregaadd la operaciónthe <strong>Asociar<strong>Associate
documentos<Documents</strong> manualmente siguiendo el código siguienteoperation manually, according to the code below:
</p>
<p> </p>
<ol>
<li><p>Crear<li><p>Create elthe botón LDocAssociationButton on enthe la barra detool bar,
herramientasand yadd agregara un 4GL paraevent elfor mismothis evento.<button</p>
<style type="text/css">
.string {
color: red;
}
.command {
color: blue;
}
pre {
background-color: #F0F0F0;
border: 1px solid #BBB;
padding: 5px;
}
</style> <pre>
<span class="command">LET</span> m_opcao_doc_assoc = _ADVPL_create_component(<span
class="command">NULL</span>,<span class="string">"LDOCASSOCIATIONBUTTON"</span>,m_menubar_reference)
<span class="command">CALL</span> _ADVPL_set_property(m_opcao_doc_assoc,<span
class="string">"EVENT"</span>,<span class="string">"log5500_document_association"</span>)
</pre>
<p>
<span style="color: rgb(255, 255, 255);">.</span>
</p></li>
<li><p>En<li><p>In elthe casoevent deof lathe teclabutton, quewhich seis ejecuta cuando se haceexecuted by
clicclicking enon lathe operaciónassociating dedocument asociar documentooperation, debethe informartable enand lathe
pantallaprimary dekey asociaciónof cuálthe esrecord lathat tablawill ybe laassociated clavewith primariathe deldocument
registroshould quebe seinformed asociato conthe elassociation documentoscreen, compruebealso tambiéncheck siif lathe
búsquedasearch fuewas realizadaperformed porby elthe usuariouser antesbefore detaking realizar cualquier
acción.<any action</p>
<style type="text/css">
.string {
color: red;
}
.command {
color: blue;
}
.comment {
color: #008000;
}
pre {
background-color: #F0F0F0;
border: 1px solid #BBB;
padding: 5px;
}
</style> <pre>
<span class="comment">#-------------------------------------#</span>
<span class="command">FUNCTION</span> log5500_document_association()
<span class="comment">#-------------------------------------#</span>
<span class="command">DEFINE</span> l_doc_assoc_reference <span
class="command">VARCHAR</span>(10)<br />
<span class="command">IF NOT</span> m_consulta_ativa <span
class="command">THEN</span> <span class="command">CALL</span> _ADVPL_set_property(m_statusbar,<span
class="string">'ERROR_TEXT'</span>,<span class="string">'PrimeroEfetue hagaprimeiramente laa consulta.'</span>) <span
class="command">RETURN FALSE END IF</span><br />
<span class="command">LET</span> l_doc_assoc_reference = _ADVPL_get_property(m_opcao_doc_assoc,<span
class="string">'DOC_ASSOCIATION_REFERENCE'</span>) <span
class="command">CALL</span> _ADVPL_set_property(l_doc_assoc_reference,<span
class="string">'TABLE_NAME'</span>,<span class="string">'log_usu_niv_sist'</span>) <span
class="command">CALL</span> _ADVPL_set_property(l_doc_assoc_reference,<span
class="string">'ADD_RECORD'</span>,<span class="string">'usuario'</span>,mr_usuario.cod_usuario) <span
class="command">CALL</span> _ADVPL_set_property(l_doc_assoc_reference,<span
class="string">'ADD_RECORD'</span>,<span class="string">'empresa'</span>,mr_usuario.cod_empresa)<br />
<span class="command">RETURN TRUE END FUNCTION</span>
</pre></li>
</ol>
</div>
|