Visual Builder

Get Involved. Join the Conversation.

Topic

    David Pham
    Sending data from an SDP from one page to another results in...Answered
    Topic posted June 18, 2019 by David PhamGreen Ribbon: 100+ Points, tagged Action Flows, REST 
    17 Views, 2 Comments
    Title:
    Sending data from an SDP from one page to another results in a loss of key values?
    Summary:
    When I am sending data from one page to the other, only some of the values from my keys/pairs in my SDP object is kept.
    Content:

    I have a table on my page that is bounded to an SDP, whose data I get from a GET request. I want it so that, on a click of a row, that row's data will be sent to the next page to populate a form. Right now, only a couple of my fields are populated and not all on the form after the navigation to the second page is complete.

    To debug on my first screen, I have an action chain that prints out the contents of the row that I clicked (I used the action TableFirstSelectedRowChange) before the navigation. The print statement shows all fields of the row I clicked, and none of the values are null.

    To debug on my second screen, after the navigation to the second page has been completed, I have a VBenter action on the second page which prints out the contents of the data that I passed from the first page. Here, a majority of the values are null. Why is this? 

    I've attached a video below.

    Document:

    Best Comment

    Shay Shmeltzer

    What is the data type of the parameter you use on the second page? (puthubsters)

    Try having it based on the same type as the one that is used in your first page for a row.

    Comment

     

    • Shay Shmeltzer

      What is the data type of the parameter you use on the second page? (puthubsters)

      Try having it based on the same type as the one that is used in your first page for a row.

      • David Pham

        Hey Shay,

        I was using the types predefined for me by the "Edit" feature that you can add to tables. This did not work, so I ended up making my own types/variables manually and it is now being passed correctly. Thanks.