Dynamic Template Url in xfaForm

Avatar

Avatar
Validate 1
Level 2
Clookes
Level 2

Like

1 like

Total Posts

55 posts

Correct reply

0 solutions
Top badges earned
Validate 1
Boost 1
View profile

Avatar
Validate 1
Level 2
Clookes
Level 2

Like

1 like

Total Posts

55 posts

Correct reply

0 solutions
Top badges earned
Validate 1
Boost 1
View profile
Clookes
Level 2

04-02-2009

Hi,



In a xfaForm variable, under Template Url, how would I be able to make this dynamic?



I would like to use different xdp forms depending on the input.



Thanks in advance.

Replies

Avatar

Avatar
Coach
Level 10
Jasmin_Charbonn
Level 10

Likes

149 likes

Total Posts

2,154 posts

Correct reply

97 solutions
Top badges earned
Coach
Give Back 1000
Give back 900
Give Back 800
Give back 600
View profile

Avatar
Coach
Level 10
Jasmin_Charbonn
Level 10

Likes

149 likes

Total Posts

2,154 posts

Correct reply

97 solutions
Top badges earned
Coach
Give Back 1000
Give back 900
Give Back 800
Give back 600
View profile
Jasmin_Charbonn
Level 10

04-02-2009

When you create your xfaForm variable you need to configure a render service (under Advanced Settings).



The render service is responsible to render the actual form (xdp) into a PDF. Usually you choose the renderPDFForm from the Process Management to render the pdf.



If you look at that renderPDFForm process, you'll see that it uses the variable /process_data/@formUrl to specify the url to the xdp. This variable is set when you configure formURL property of the render service (under Advanced Settings).



Usually we set it to Task->Form URL, but you could use your own variable there that contains the path to your XDP.



Jasmin

Avatar

Avatar
Validate 1
Level 2
Clookes
Level 2

Like

1 like

Total Posts

55 posts

Correct reply

0 solutions
Top badges earned
Validate 1
Boost 1
View profile

Avatar
Validate 1
Level 2
Clookes
Level 2

Like

1 like

Total Posts

55 posts

Correct reply

0 solutions
Top badges earned
Validate 1
Boost 1
View profile
Clookes
Level 2

04-02-2009

That works, thank you~

Avatar

Avatar
Boost 5
Level 9
HowardTreisman
Level 9

Likes

5 likes

Total Posts

936 posts

Correct reply

9 solutions
Top badges earned
Boost 5
Boost 3
Boost 1
Affirm 5
Affirm 3
View profile

Avatar
Boost 5
Level 9
HowardTreisman
Level 9

Likes

5 likes

Total Posts

936 posts

Correct reply

9 solutions
Top badges earned
Boost 5
Boost 3
Boost 1
Affirm 5
Affirm 3
View profile
HowardTreisman
Level 9

20-02-2009

Another way is to just use a Set Value step to set the xfaForm variable's formUrl value to the URL of the form you want to use. Then you don't need to mess with the Render process parameters.<br />From memory, it would be something like:<br />/process_data/my_xfa_form/object/template_url = <URL of your template><br />Howard<br />http://www.avoka.com