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.
%FORMFIELD{"DocumentID" topic="%BASEWEB%.%BASETOPIC%"}%
Or the equivalent for
VarQUERY:
%QUERY{"'%BASEWEB%.%BASETOPIC%'/DocumentID"}%
--
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:
%JQREQUIRE{"chili"}%
And now it looks OK.
--
PompetardO - 28 Oct 2011