Hello Michelle,
the reason for the exception seams to be that you address a doctype within your query which is not registered within the web.xml file of your application.
If ?Standard_Text? is the root of your document, you must register which collection is used to store document of this doctype. If Standard_Text is not your document root, you must define queries starting from the root element. E.g.
/Root[SubElement/Standard_Text/Shot_Name=?XYZ?]
Concerning your question about preloading the text into a JavaScript array, you can use the Browse tag if Standard_Text is the root of your documents. For example:
…
var textArray = new Array(
<bdm:directcommand document=?stdTextList? type=?query? … queryparm=?Short_Name~=*?/>
<bdm:browse document=?stdTextList? … pagesize=?100000?>
?<bdm:display select=?/Standard_Text/ShortName?/>?, ?<bdm:display select = ?/Standard_Text/Text?
</bdm:browse>
),
…
Remark:
- directcommand of type query loads document lists. It must be enclosed by a form tag (see documentation).
- if Standard_Text is not the document root you have to use a browse tag with enclosed loop (see also documentation and simple examples for loop and browse tag).
I have never tried out to create JavaScript Code with our JSP tags, but I don?t see any reason why it should not work.
Good look,
Christian.
#Tamino#webMethods#API-Management