This question about Topic Markup Language and applications: Answered

FORMFIELD/QUERY does not find data form values from included page

My topic has a Form attached to it with the field DocumentID of type text.

I see the value of the field if I code the following line in my topic page.

Project ID:

However, if I put this line into an included topic and include the file in my topic, the field value is not found and will not show up in the rendered topic web page which is included as follows:

Warning: Can't find topic Support.DocControlHeader

I have used the following lines with the same negative results in an included topic.

Project ID:
Project ID:

How can I display the contents of a field of a form attached to the including topic?
Is there some way to pass BASETOPIC or INCLUDINGTOPIC to the QUERY macro?

Using the FORMFIELD or QUERY on the topic page is not an option because the WYSIWYG editor destroys the formating of the data in a WORKFLOW controlled topic.

These macros work relative to the topic on which they are written.

If you want them to work on some other topic, you'll have to be more specific.

For VarFORMFIELD, you can pass a topic parameter, Eg.


Or the equivalent for VarQUERY:

-- PaulHarvey - 18 Aug 2011

For some reason the text inside the verbatim doesn't look right when viewing the topic but in the edit mode is ok. I took out the:
And now it looks OK.

-- PompetardO - 28 Oct 2011

QuestionForm edit

Subject Topic Markup Language and applications
Version Foswiki 1.1.3
Status Answered
Related Topics
Topic revision: r3 - 28 Oct 2011, PompetardO - This page was cached on 24 May 2019 - 06:15.

The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. See Copyright Statement. Creative Commons License    Legal Imprint    Privacy Policy