Hi All,
I am getting the response from exec procedure like below:
[success:true,error:,parameters:[BOOKS_CURSOR:[quantity:23,author:Collectif,price:3.74,title:Peppa Pig: Fun at the Fair]; [quantity:7,author:Judith Simanovsky,price:4.99,title:Panda Goes to the Olympics]],result:]
But I need to save the values of BOOKS_CURSOR in Books CDT which has quantity, author,price & title fields. Can you please guide how can I do it?
Thanks
Discussion posts and replies are publicly visible
Look into the cast() function.Something like this should work:
cast( typeof(type!Typeofyourcdt), local!value)
It should be formatted as below, and your label names should match your CDT field names:
cast( typeof({type!Book()}), {{quantity:23,author:"Collectif",price:3.74,title:"Peppa Pig: Fun at the Fair"}, {quantity:7,author:"Judith Simanovsky",price:4.99,title:"Panda Goes to the Olympics"}})
Let me know if that works for you.