Philip Nye wrote: > > I am trying to build a command which inserts some externally generated text. > > I can do this using "run" to generate the text and then "insertString" or > "paste" with "%_" and this works in element content. > > However, what I really want is to use the same functionality when editing > within a text-field object. > > e.g. text-field(attribute, "attname", ...)
The text-field is a *view* of attribute "attname". If you change the value of "attname" (for example, using a macro-command based on command putAttribute -- see http://www.xmlmind.com/xmleditor/_distrib/docs/commands/ch06s39.html), the content of the text-field will automatically be updated. For example, change the value of the attribute using the Attribute tool and see what happens to the corresponding text-field.

