Hi, I want to update array of nested CDT structure. I am trying

Hi,

I want to update array of nested CDT structure.
I am trying to use function updatecdt() for this from shared component “CDT Manipulation”

Following is example:

with(

local!original: { {a:1,b:{1,2}} , {a:2,b:2} },
local!updatedb1:{4},
local!updatedb2:{7},

updatecdt(local!original, { b:{local!updatedb1,local!updatedb2} })

)
OUTPUT -> [a:1,b:4]; [a:2,b:7]

However if we give:

local!updatedb2:{7,8}, Then it’s giving error as: “Error evaluating function 'updatecdt' : Length of input arrays must equal length of CDT/Dictionary array”

How to achive this?

Any help will be appreciated.

Thanks!

OriginalPostID-192528

OriginalPostID-192528

  Discussion posts and replies are publicly visible