Work class property in Data class section problem
We have sections created in Data classes. We need to show some Work class basic properties in these Data class sections. We were defining and hardcoding pyWorkPage in pages and classes tab for Data sections for such requirements in Pega 7. But after upgrading to Pega 8 it throws errors when we submit the cell. Errors are like "property is not defined in class Work-ProjectManagement-CheckIn".
What is the best practice in general? Copying the Data class sections into Work class and use Work class sections? Or creating the work class properties in Data class?