Skip to main content
lokeshm0005
August 1, 2022
Question

regarding Pv data into CDT

  • August 1, 2022
  • 2 replies
  • 0 views

I have a text of pv value like { "user" = "ABC", "class" = "EFG",.....} this and i want this to store into cdt to the related names [ user : "ABC", class : "EFG"]

    2 replies

    harshitb6843
    August 1, 2022

    I am not 100% clear with your question but it looks like you are trying to cast a text value to a CDT vaue. If yes, then you can use the below expression. 

    cast(
      typeof(type!yourCDT()),
      "value to cast"
    )

    richardm900458
    August 1, 2022

    did you have some more information?
    Is your initial string value a string?