SID-01896: Version track of form
| Status: |
Unanswered |
TWiki version: |
4.2.1 |
Perl version: |
|
| Category: |
CategoryForms |
Server OS: |
linux |
Last update: |
10 years ago |
Hi,
How to track versions of a form associated to topics?
Let's say there are several topics which share the same form.
For example
After changing the form all topics should be edited to have the new form feature.
To track which topic has not been edited in order to update the topic with the new form I would introduce a Formversion form item this way:
Label indicates that the value is read only - topic changers should not change value.
I introduced another label which allows to search subtopics of a topic in any depth within the tree:
| Parents |
label |
|
.SupportForum. |
I use these forms to associate my form with a topic and remove the form:
- Dissociate any forms from a topic or create a topic with no form:
When topic is associated to the form this way then values appear attached to the topic. Then I edited the form's Formversion value from "1.0" to "2.0" and added new form item "Menu4" and saved the form. Then I edited a topic which is associated with my form and new form item appeared but the label remained the same "1.0". When topic receives a new parent I have to remove the form from topic then associate again to make the parents formitem re-calculated.
I tried this with 4.2.1 twiki version and also with 6.0.0. but labels are not updated.
When I used 6.0's associate with form option then the constant values were not added to the topic at all.
Thanks,
Laszlo
--
Laszlo Lajoshazi - 2014-03-25
Discussion and Answer
I am not sure I understand what you want to do, but you can change a label field with a URL parameter (such as via hidden input field) to the edit or save script. For example, a
Formversion=2.0 URL parameter would update the Formversion field.
--
Peter Thoeny - 2014-03-25
Thanks Peter for the prompt reply. When a topic is edited a t=nnnn URL parameter appears so I used this t for testing. Both 4.2.1 and 6.0.0 gave the same result: it is updated at the first edit only. Please see the form :
http://twiki.org/cgi-bin/view/Sandbox/SampleFormSID01896
and a sample topic which is associated with the form:
http://twiki.org/cgi-bin/view/Sandbox/SampleTopic11SID01896
Is this what you suggested?
Which behavior would you expect of read only form values? I think it should be updated each time when topic is updated with the value of form... or should be re-calculated when the form contains some variables.
Which script is used to update the topic's form values when a topic is edited?
--
Laszlo Lajoshazi - 2014-03-26
Closing this question after more than 30 days of inactivity. Feel free to reopen if needed. Consider engaging one of the
TWiki consultants if you need timely help. We invite you to
get involved with the community, it is more likely you get community support if you support the open source project!
--
Peter Thoeny - 2015-12-03
If you answer a question - or someone answered one of your questions - please remember to edit the page and set the status to answered. The status selector is below the edit box.