Un foro de discusión para nuestra comunidad de hispano hablante
By gguerrero
#822228
Estimados,

Me gustaría saber si hay alguna forma para importar un xml en un dynaform de tal manera que pueda llenar la información del dynaform con los datos que vienen desde el xml. ???

De antemano muchas gracias y feliz año nuevo!

Saludos
User avatar
By amosbatto
#822230
Aca es un proceso que demuestra como hacer esto:
(34.47 KiB) Downloaded 334 times
Ver el codigo de JavaScript y el trigger en el proceso

Puedes subir un archivo con este contenido para probarlo:
Code: Select all
<?xml version="1.0" encoding="UTF-8"?>
<document>
  <author>Herman Melville</author>
  <title>Moby Dick</title>
  <bookReview>An American classic filled with literary and historical references. 
  A long read but definitely worth it.</bookReview>
  <publishDate>2012-06-24 08:00:00</publishDate>
</document> 
By gguerrero
#822245
Amos,

De antemano muchas gracias por tu ayuda, pero lamentablemente no logré hacer funcionar la solución. Esto es lo que me muestra... (nosotros usamos versión cloud de PM)
Code: Select all
System Exception.

RuntimeException:

Serialization of 'SimpleXMLElement' is not allowed
At serialize() in /opt/processmaker/workflow/engine/classes/Cases.php line 862
At Cases->updateCase() 
in /opt/processmaker/workflow/engine/methods/cases/cases_Step.php line 257
At require_once() in /opt/processmaker/workflow/public_html/sysGeneric.php line 1108
At include() in /opt/processmaker/workflow/public_html/app.php line 45
Sabes que puede ser?

Muchas gracias!! :D
User avatar
By amosbatto
#822251
Puedes usar esta versión del proceso para evitar aquel error:
(34.5 KiB) Downloaded 311 times
Cuando importas el proceso, tienes que seleccionar la opción "Update the current process, overwriting all tasks and steps":
overwriteProcess.png
overwriteProcess.png (26.04 KiB) Viewed 4771 times
Want to create your own meme coin?

In the world of cryptocurrencies, a unique and exc[…]

The market for cryptocurrencies is demonstrating a[…]

What's SAP FICO?

Embarking on a dissertation can be one of the most[…]

Hello. For rental housing, there are software solu[…]