Load Attachment dialog
Loading the Attachment dialog page provides the user with an XHTML page that contains the attachment editing or creating interface. Information about the current attachment (being edited) or the new attachment (being created) is dynamically inserted into the XHTML template.
Example API call
/servlets3/wietmsd?id=1520980553210&book=s1000d_bike_41&collection=default&time=1520980551974&target=annot&action=attachment_dlg
Parameters
| Parameter | Description |
|---|---|
target | annot |
action | attachment_dlg |
id | A session ID that is valid for this collection and publication combination. |
collection | The name of the collection that the publication is registered in, such as default. |
book | The name of the publication, such as s1000d_bike_41. |
time | To prevent browser-side caching of data, especially with AJAX requests, it is important to make a URL unique. The most effective technique to accomplish this is to include a date parameter that is based on the time at which the call is made. |
XML post data
This API call requires XML post data to complete. An example of that XML data is given here.<bmdata>
<docid>S1000DBIKE-AAA-D00-00-00-00-AA-663-A-A</docid>
<eid>10</eid>
<eidoffset>0</eidoffset>
<location>s1000d_bike_41%5CBike%204.1%5CBicycle%5CBicycle%20-%20Standard%20repair%20procedures</location>
<annot_id>undefined</annot_id>
</bmdata>
Returns
- On success
- The XHTML page, attachment_dlg.html is loaded from the current skin.
- On failure
- Returns nothing.