Hi Adepters--
Does anyone know of a way to update the gentext just for a single
element in a document? For example, after some code makes a change to an
attribute value, I would like the gentext for the element to be updated
to reflect the change in the editor view--but I don't want to do a
global refresh for the entire document (which can take a long time) just
to pick up that one change. I'm looking for something like this, in the
case where the gentext includes some attribute value:
function update_element(oid, attrname, attrval) {
# update the OID
oid_modify_attr(oid, attrname, attrval);
# refresh the OID's gentext to pick up the change
oid_update_gentext(oid);
}
I'm trying to either discover a built-in function to do the job of
"oid_update_gentext(oid)", or write one of my own, but so far haven't
had any luck. Has anyone been able to do this? Thanks.
--Clay
Clay Helberg
Senior Consultant
TerraXML