you can configure a run data data transform action on click event of the button, where you need to use the property set options to save the property into the pyWorkPage(primary page) and then can copy it to your custom page.
what is this enrollment id in your case, it is already a id generated or you want to generate a id on save of every row?
Thank you for posting your query on PSC. This looks like an inactive post and hence, we suggest you create a new post for your query. Click on the Write a Post button that’s at the top of this screen and also on our Pega Support Community homepage. Once created, please reply back here with the URL of the new post.
We have also sent you a private message opening up a communication channel in case you have any further questions.