[Xerte] Updating IconIDs

Julian Tenney Julian.Tenney at nottingham.ac.uk
Mon Jul 27 09:18:24 BST 2009

You can't use a number as an iconID. You need something valid, like


References are not updated, no. The way to minimise any disrtuption is
to be a bit more dynamic in your code:


myIcon = Icon.parentNode().clip(); //returns the page icon the script is



that way, you don't need to actually give icons IDs quite a lot of the


Set embedVars to 1 to have 'Hello {forename} {surname}, how are you
today?' work in a display icon. If those values change, you can update
the display icon with your code:


myDisplayIcon.setText(myIcon.rawText); //or something like that...
...maybe a iconID.refreshText() method would be useful




From: xerte-bounces at lists.nottingham.ac.uk
[mailto:xerte-bounces at lists.nottingham.ac.uk] On Behalf Of
ron at kccsoft.com
Sent: Saturday, July 25, 2009 4:32 AM
To: 'Xerte discussion list'
Subject: RE: [Xerte] Updating IconIDs


Am I wrong here or does Xerte not update referenced iconID's when they
are changed?  


For instance if I make an icon ID '100' and reference it from 5 places,
then later change the icon ID to '101' - the 5 referenced places do not
change, correct?  They need to be manually changed? Is there any way to
deal with this other than the 'Find' feature?


Other question: Is there any direct equivalent in Xerte to AW's 'call
and return' navigation and the 'update displayed variables' checkbox on
display icons?





-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.nottingham.ac.uk/pipermail/xerte/attachments/20090727/c1df3350/attachment.html

More information about the Xerte mailing list