WRITE-JSON
 

WRITE-JSON

4 posts, 0 answered
  1. Roger Blanchard
    Roger Blanchard avatar
    413 posts
    Registered:
    29 Jun 2018
    07 Mar
    Link to this post
    Is there a reason why after calling WRITE-JSON in the example below the EcommCustomerSnapshot is no longer AVAILABLE? 

    oEcommSnapshotView:EcommCustomerSnapshot:BufferHandle:WRITE-JSON ("LONGCHAR", 
                                                                      lcMessage,
                                                                      FALSE, // formatted
                                                                      ?,// encoding 
                                                                      FALSE, // omit initial values
                                                                      FALSE // omit outer object
                                                                      ). 
  2. Mike Fechner
    Mike Fechner avatar
    342 posts
    Registered:
    14 Sep 2016
    07 Mar in reply to Roger Blanchard
    Link to this post
    I'm afraid that is just how Progress has implemented the WRITE-JSON

    In the ABL, it's traversing the records using the Buffers.
  3. Roger Blanchard
    Roger Blanchard avatar
    413 posts
    Registered:
    29 Jun 2018
    07 Mar in reply to Mike Fechner
    Link to this post
    Wow...

    Is there any way to get it back using the dataset model class?

    I can save what I need in variables but that is a pain in the .... 
  4. Roger Blanchard
    Roger Blanchard avatar
    413 posts
    Registered:
    29 Jun 2018
    07 Mar in reply to Roger Blanchard
    Link to this post
    I can use SERIALIZE-ROW and get what I need and that keeps the buffer in scope. 

    Thanks,
4 posts, 0 answered