Hello,
-- We are facing missing content in the pdf generation and we use the default pdf button from Orbeon. We found the problem is from xxf:get-request-header(), which is not passed into the pdf request when the button is clicked. We defined some variables which are from xxf:get-request-header and put them in the 'relevant' of the bind. Please see one example: <xf:model id="fr-form-model" xxf:expose-xpath-types="true"> <xf:var name="is-appraisal" value="xxf:get-request-header('isAppraiser') = 'true'"/> ..... <xf:bind id="questionnaire" name="questionnaire" ref="questionnaire" relevant="$is-appraisal"> .... We have the pdf version of that form instance, that 'questionnaire' is missing, but it is fine with edit, new and view modes. Could you help us to find a solution to pass those request headers to Pdf generation please? We have many forms which are using that kind of variables. Is possible to do it in properties-local.xml? How to do that there? Many Thanks, You received this message because you are subscribed to the Google Groups "Orbeon Forms" group. To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email]. To post to this group, send email to [hidden email]. |
Administrator
|
Chunyu,
We have a related issues: https://github.com/orbeon/orbeon-forms/issues/1397 In the meanwhile, you should be able to work around this by forwarding headers: <property as="xs:string" name="oxf.http.forward-headers" value="...space-separated header names to forward..."/> Which Orbeon Forms version are you using, by the way? -Erik |
Hi Eric,
-- We are using a custom edition on top of 4.10 Orbeon CE edition, the exact number is 4.10.2.marklogic.201602022321-CE. However, I tried the solution below in the properties-local.xml and it does not work in pdf still. Some sections with those variables are in the 'relevant' of bind are still missing.
<property as="xs:string" name="oxf.http.forward-headers" value="isAppraiser isApplicant isAppraisalReviewer isApplicationApprover"/> Could you please look into this? We have a lot of forms which have the similar problem and the site is on live now. Thanks, Chunyu On Monday, 21 March 2016 17:28:04 UTC, ebruchez wrote: Chunyu, You received this message because you are subscribed to the Google Groups "Orbeon Forms" group. To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email]. To post to this group, send email to [hidden email]. |
Administrator
|
Chunyu,
I have reproduced the issue now. It works with the upcoming 4.11, but not 4.10, with this fix we did back last September: https://github.com/orbeon/orbeon-forms/issues/1078 I have backported the fix to your build and will send it to you via our support site. -Erik |
Hi Eric,
That's great! Thanks, Chunyu
-- On Wednesday, 6 April 2016, Erik Bruchez <[hidden email]> wrote: Chunyu, You received this message because you are subscribed to the Google Groups "Orbeon Forms" group. To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email]. To post to this group, send email to [hidden email]. |
Free forum by Nabble | Edit this page |