Question
I have read some of the topics on this subject, but most are quite old & I'm a bit confused about the current state of play.
We have several dynamic searches as select values for forms. They all get expanded properly once the topic to which the form is attahced is edited, but...
When using a form like this one I'm using to enter the support question the value from the list is passed into the edit for the new topic, but I'm guessing that the validation of the url parameters happens
before variable expansion, as the entries for any dynamic lists are ignored, despite being correct & visible in the url
Is this the correct behaviour?
If so, can anybody think of how I can pass select results into a topic create with dynamic options?
Environment
--
ChrisHogan - 29 Nov 2007
Answer
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.
Did I understand you right, that you try to edit a topic with some values preselected using url parameters, but these aren't selected during edit?
Please rephrase your question and provide more details.
--
MichaelDaum - 29 Nov 2007
Sorry, I wasn't clear enough.
I have a couple of cases, so an example: I've a list of organizations, generated by searching through topics (each organization topic has a form with address, email & other details).
I want to add a contact, who is an employee of one of these organizations. I fill in his/her name (which becomes the contact topic name), select the organization & add a few extra details - but the organization value, although passed properly as a url parameter doesn't set the "organization" field in my contact form, because the list of organizations is generated dynamically, so I suppose it doesn't exist at the point the url parameter is checked for validity.
If I change organization to a text field, the value is set, so I know my hand-built form is OK. It's an order of events thingy again.
--
ChrisHogan - 30 Nov 2007
Sussed it!
If I do my search in a separate topic to the form definition topic & refer to it so:
| [[SearchForOrganizations][Organization]] | select | 1 |
Then the search list is expanded before the url parameter is passed in.
Isn't TWiki grand?
--
ChrisHogan - 30 Nov 2007
Closing this support question after more than 30 days of inactivity. Please feel free to re-open if needed.
--
PeterThoeny - 01 Jan 2008