Specifications

The Design Notes API 289
Returns
A string that contains the value of the key.
Example
See MMNotes.getKeys() on page 289.
MMNotes.getKeyCount()
Description
Gets the number of key/value pairs in the specified Design Notes file.
Arguments
fileHandle
The argument is the file handle that MMNotes.open() returns.
Returns
An integer that represents the number of key/value pairs in the Design Notes file.
MMNotes.getKeys()
Description
Gets a list of all the keys in a Design Notes file.
Arguments
fileHandle
The argument is the file handle that MMNotes.open() returns.
Returns
An array of strings where each string contains the name of a key.
Example
The following code might be used in a custom floating panel to display the Design Notes
information for the active document:
var noteHandle = MMNotes.open(dw.getDocumentDOM().URL);
var theKeys = MMNotes.getKeys(noteHandle);
var noteString = "";
var theValue = "";
for (var i=0; i < theKeys.length; i++){
theValue = MMNotes.get(noteHandle,theKeys[i]);
noteString += theKeys[i] + " = " theValue + "\n";
}
document.theForm.bigTextField.value = noteString;
// always close noteHandle
MMNotes.close(noteHandle);