Posted: 1 Feb 2018 1:24 EST Last activity: 19 Feb 2018 10:03 EST
Unable to render the section using include jsp tag from HTML while accessing it from mobile app
We are using PRPC V7.2.2 for our app and our app is running in mobile & desktop versions. We have a requirement to send the PDF in our application. For that, we are using the below steps and is working properly in Desktop version but we see some issues while rendering the sections in the PDF using mobile.
1) We have an activity where it is being called from a utility in the process flow
2) In the above activity, we have a property-set-HTML where we call the necessary section using the HTML rule instance
3) From the HTML rule instance, we are calling the include jsp tag to pull the necessary sections to be shown on the PDF
Assuming you are using a hybrid mobile client, when you reference a section using pega:include, can you first confirm that your included section is packaged so that it is available to the client device on SYNC?
indicates section rendering failed and it is most probably due to broken/corrupt template tree due to non-auto generated code.
This looks like an offline-enabled application because UI templating is enabled for non-offline apps only in 7.3+ versions. It is possible to render the section correctly by forcing non-template UI but your use-case will not work because there will be no work page context during packaging and even if it;s there you'll not have access to other sections you're trying to call. You'll need to switch to some client-side alternatives for this requirement. Or, you can send PDF as part of your flow which will happen the next time sync happens.
I can't go with non Auto generated section option since I have many sections to modify them. I can't prepare and send the PDF later through an agent or whatever the alternative option. Why because the PDF data needs to be sent as a part of my Docusign API request. Is there any alternative way I can get this thing done?