Ambos lados, revisión anterior Revisión previa Próxima revisión | Revisión previa |
wiki:4.-cliente:4.5.-cliente-replica:c.-seguimiento-replica-de-ficheros:start [2017/08/18 12:06] – ↷ Page moved from wiki:4.-cliente:4.5.-cliente-replica:c.-seguimiento_replica-de-ficheros:start to wiki:4.-cliente:4.5.-cliente-replica:c.-seguimiento-replica-de-ficheros:start ejetoro | wiki:4.-cliente:4.5.-cliente-replica:c.-seguimiento-replica-de-ficheros:start [2022/02/25 14:28] (actual) – [Ejemplo de uso en Android] ary |
---|
| ======MONITOREO DE RÉPLICA DE FICHEROS====== |
| \\ |
| ==== Log de réplica de ficheros ==== |
| |
| Si están ocurriendo problemas a la hora de replicar ficheros, es posible crear una colección que recupere los datos de la cola de réplica en el dispositivo.\\ |
| \\ |
| Lo especial de esta colección es que existe un **connection** para comunicaciones con la base de datos de replica de ficheros: |
| \\ |
| <connection prefix="" name="Info_ReplicaFiles" connstring="Provider=Xone Remote Provider;Data Source=local;ProgID=com.xone.db.impl.replicafiles.RplFilesConnection;Timeout=60" /> |
| \\ |
| STATUS: |
| * 0 - Comienzo de replica de ficheros |
| * 202 - descarga error |
| * 201 - descarga fichero ok |
| * resto de errores - errores http comunes |
| \\ |
| \\ |
| {{:wiki:4.-cliente:4.5.-cliente-replica:c.-seguimiento-replica-de-ficheros:replica.png?direct&1400|}} |
| \\ |
| \\ |
| ==== Ejemplo de uso en Android ==== |
| |
| Con un progID y una cadena de conexión especiales, esta colección recupera los datos de los ficheros a replicar. |
| |
| <code xml> |
| <coll name="ReplicaFiles" fontsize="8" title="ReplicaFiles" objname="master_replica_files" updateobj="master_replica_files" progid="ASData.CASBasicDataObj" sql="SELECT * |
| FROM ##PREF##master_replica_files" filter="STATUS!=201 AND REPLICATYPE=1" cell-bgcolor="#FFFFFF" cell-height="50" show-selected-item="false" check-owner="false" dependent="false" connection="Info_ReplicaFiles" loadall="false" show-toolbar="true" editmask="8"> |
| <connection prefix="" name="Info_ReplicaFiles" connstring="Provider=Xone Remote Provider;Data Source=local;ProgID=com.xone.db.impl.replicafiles.RplFilesConnection;Timeout=60" /> |
| <group name="General" id="1" /> |
| <frame name="page_contact" width="100%" height="100%" bgcolor="#FFFFFF" /> |
| <frame name="progress_frame" frame="page_contact" width="100" height="30" framebox="true" bgcolor="#505050" align="left|center" /> |
| <frame name="progress_bar" frame="progress_frame" width="##FLD_MAP_CALCULOBLOCK##" height="28" framebox="true" bgcolor="#FF0000" align="left|center" /> |
| <prop name="LICENSE" title="Licencia" labelwidth="0" textfont-size="10" forecolor="#000000" text-border="false" fieldsize="14" size="150" type="T" visible="7" group="1" frame="page_contact" /> |
| <prop name="FILENAME" title="Nombre" labelwidth="0" textfont-size="10" forecolor="#000000" text-border="false" fieldsize="14" size="150" type="T" visible="7" group="1" frame="page_contact" /> |
| <prop name="STATUS" title="Status" labelwidth="6" textfont-size="10" forecolor="#000000" text-border="false" fieldsize="6" size="150" type="N" visible="7" group="1" frame="page_contact" /> |
| <prop name="MAP_IMAGEN" title="B.Tras" path="./icons/progress.png" width="##FLD_MAP_CALCULOBLOCK##" height="60" labelwidth="0" fieldsize="6" size="150" type="IMG" visible="0" group="1" frame="progress_frame" /> |
| <prop name="MAP_TL" title="" labelwidth="1" fieldsize="6" size="150" type="TL" visible="0" group="1" frame="progress_bar" /> |
| <prop name="MAP_CALCULOBLOCK" title="Porciento" labelwidth="6" textfont-size="10" forecolor="#000000" text-border="false" fieldsize="6" size="150" type="N" visible="7" group="1" frame="page_contact" /> |
| <prop name="BLOCK" title="B.Tras" labelwidth="6" textfont-size="10" forecolor="#000000" text-border="false" fieldsize="6" size="150" type="N" visible="7" group="1" frame="page_contact" /> |
| <prop name="BLOCKS" title="Total" labelwidth="6" textfont-size="10" forecolor="#000000" text-border="false" fieldsize="6" size="150" type="N" visible="7" group="1" frame="page_contact" newline="false" /> |
| <load> |
| <action name="runscript"> |
| <script language="VBScript"> |
| if this("BLOCKS")>0 then |
| this("MAP_CALCULOBLOCK")=this("BLOCK")*100/this("BLOCKS") |
| else |
| this("MAP_CALCULOBLOCK")=0 |
| end if |
| </script> |
| </action> |
| </load> |
| </coll> |
| </code> |
| |
| |