Quantcast
Channel: PTC Community: Message List - Arbortext
Viewing all articles
Browse latest Browse all 3717

Re: How do I modify the content of one fo my elements?

$
0
0

Hi Paulette--

 

The easiest thing is to delete the old content and insert the new. Something like this should do the trick:

 

function replaceContent(oid, newContent) {

# where oid is the oid you want to modify, and newContent is a markup string you want to put there instead of what's there now

oid_delete(oid, 0x2); # 0x2 flag = delete element content, but preserve tags

goto_oid(oid);

insert(newContent);

}

 

--Clay


Viewing all articles
Browse latest Browse all 3717

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>