The same code runs fine in C/S. But when deployed with PowerServer, you get the “not recognizing PBDOM_Document” error.
Here is a screenshot of the error:
PowerBuilder 2022 and its MRs
PowerServer 2022 and its MRs
PBDOM220.pbd file is missing when PBDOM functions are used.
Use PBDOM.pbx to replace PBDOM220.pbd.
1. Remove PBDOM220.pbd from the current application and import PBDOM.pbx to the current application’s PBL.
For how to adding pbdom.pbx to your application, refer to the following link:
2. Add PBDOM.pbx as external file in PowerServer project, and redeploy it to resolve the issue.
BTW, if your PowerClient project encounters the same "not recognizing PBDOM_Document" error, you can also use this solution.