Tags:
create new tag
view all tags

SID-01896: Version track of form

Status: Unanswered 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:

Name Type Size Values
Formversion label   1.0
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:
Topic name

  • Dissociate any forms from a topic or create a topic with no form:
New topic name

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

      Change status to:
ALERT! 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.
SupportForm
Status Unanswered
Title Version track of form
SupportCategory CategoryForms
TWiki version 4.2.1
Server OS linux
Web server apache
Perl version

Browser & version

Edit | Attach | Watch | Print version | History: r4 < r3 < r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r4 - 2015-12-03 - PeterThoeny
 
  • Learn about TWiki  
  • Download TWiki
This site is powered by the TWiki collaboration platform Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2026 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.