Quantcast
Channel: Adobe Community : Popular Discussions - LiveCycle Workbench
Viewing all articles
Browse latest Browse all 69588

Dynamic SetValue

$
0
0

Hi al,

 

I am creating a process in Workbench ES2 that takes a map (myMap) and an XML variable (myXML). The output is an xml-variable with some updated nodes (with values from the map.

 

The map looks like this:

 

<map>

  <entry>

    <string>form1/sub_Person/fld_Name</string>

    <string>Kim Christensen</string>

  </entry>

  <entry>

    <string>form1/sub_Person/fld_Address</string>

    <string>Rodeo Drive</string>

  </entry>

</map>

 

I need to have a "Set Value" service in a loop with one line that looks like this in the first iteration:

 

/process_data/myXML/myMap[key[1]] = myMap[id=key[1]]

 

This would update the "fld_Name" field in my XML to "Kim Christensen"

 

And the second iteration should update the field "fld_Address" to "Rodeo Drive".

 

I just cant make this work with a Set Value service. I have been experimenting with the object:

 

com.adobe.idp.workflow.dsc.type.SetValueMapping

 

but I can not really find any documentation or examples of how to use this.

 

Can you help out?

 

Thanks in advance

 

Sincerely

Kim Christensen

Dafolo A/S


Viewing all articles
Browse latest Browse all 69588

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>