Changing a fragment

Avatar

Avatar
Validate 1
Level 4
Elaine_Schmitz
Level 4

Like

1 like

Total Posts

109 posts

Correct reply

1 solution
Top badges earned
Validate 1
Boost 1
Affirm 1
View profile

Avatar
Validate 1
Level 4
Elaine_Schmitz
Level 4

Like

1 like

Total Posts

109 posts

Correct reply

1 solution
Top badges earned
Validate 1
Boost 1
Affirm 1
View profile
Elaine_Schmitz
Level 4

26-01-2009

Let's say you add a field to a fragment. Two forms use the fragment. Are both forms affected as soon as that fragment is saved? I'm specifically referring to forms mid-workflow? Or do only new forms that are created AFTER the fragment is saved get the updated fragment?



Thanks

Replies

Avatar

Avatar
Boost 500
Level 10
pguerett
Level 10

Likes

612 likes

Total Posts

7,689 posts

Correct reply

692 solutions
Top badges earned
Boost 500
Boost 50
Boost 5
Boost 3
Boost 250
View profile

Avatar
Boost 500
Level 10
pguerett
Level 10

Likes

612 likes

Total Posts

7,689 posts

Correct reply

692 solutions
Top badges earned
Boost 500
Boost 50
Boost 5
Boost 3
Boost 250
View profile
pguerett
Level 10

26-01-2009

All forms that use that fragment will pick up the new field each time they are rendered. So yes both forms will pick up the new field.

Avatar

Avatar
Validate 1
Level 4
Elaine_Schmitz
Level 4

Like

1 like

Total Posts

109 posts

Correct reply

1 solution
Top badges earned
Validate 1
Boost 1
Affirm 1
View profile

Avatar
Validate 1
Level 4
Elaine_Schmitz
Level 4

Like

1 like

Total Posts

109 posts

Correct reply

1 solution
Top badges earned
Validate 1
Boost 1
Affirm 1
View profile
Elaine_Schmitz
Level 4

26-01-2009

thanks Paul, so now let's say you delete a field from a fragment. A form, that uses the fragment is in the middle of a workflow process. The workflow references that field. Is that field, although no longer visible on the form, still accessible via the xml representation of the data (the xfaForm data)? Or will the workflow stall?



Thank you in advance!

Avatar

Avatar
Boost 500
Level 10
pguerett
Level 10

Likes

612 likes

Total Posts

7,689 posts

Correct reply

692 solutions
Top badges earned
Boost 500
Boost 50
Boost 5
Boost 3
Boost 250
View profile

Avatar
Boost 500
Level 10
pguerett
Level 10

Likes

612 likes

Total Posts

7,689 posts

Correct reply

692 solutions
Top badges earned
Boost 500
Boost 50
Boost 5
Boost 3
Boost 250
View profile
pguerett
Level 10

27-01-2009

The statement will fail ...the field will not be there! Depending on how you built the process it may stall!

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

21-02-2009

I'd like to clarify Paul's response. (Sorry Paul:-)

1. Fragments

It depends on how you are using the forms containing the fragments:

- If you're using XDP format,

the fragments are refreshed immediately whenever the form is rendered.

- If you're using PDF format, the fragments are ONLY refreshed the next time you open the form inside of Designer.



2. Deleting fields

If you're using an XML schema in your form (highly recommended) the element will still exist (although it will of course be blank) even if the field bound to it is deleted. (I'm 99% sure of this, but you should check.)

In addition, I'm reasonably sure (although again, please check) that if you use an XPath expression to reference an invalid location, you just get null returned - it does not throw an exception. So I don't think your process will stall, but it may not execute as you'd expect.



All of this should be reasonably easy to verify by building some simple test cases.



Howard

http:/www.avoka.com