Skip to main content
October 2, 2023
Question

How assign MAP data to a CDT array

  • October 2, 2023
  • 2 replies
  • 1 view

Hi there,

I have a map type process variable (maybe name it as "vv") in a process model, with data like this:

{returned=[mat=111, pt=5555, sc=44, bn=EEE],[mat=222, pt=3333, sc=44, bn=III],
PopUpText=No records found,
LoginStatus=true,
connection=xxx}

A CDT "returned" is defined with the 4 fields (mat, pt, sc, bn). And I define a CDT process variable "r1" which can store multiple values. can I use the following to get the "returned" data in MAP variable "vv" to CDT variable "r1"? 

save

pv!vv.returned 

into:

pv!ri

could anyone know? thanks!

Lin

2 replies

harshitb6843
October 3, 2023

If the fields are exactly with the same name, then yes, otherwise you will have to create a conversion rule that converts the map into CDT by assigning fields individually!

linp0001Author
October 11, 2023

Thanks