[Xerte] How to get the actual node/icon in an event script
Peter Huppertz
peter.huppertz at baselgovernance.org
Thu Jan 29 19:58:27 GMT 2009
Hi Julian,
thanks for your response. Perhaps my question was not clear enough. What I
want to do is to make a generic onRelease event for my next button in the
entry frame. On the top level this is rootIcon.nextPage(), in a framework
it is frameworkID.nextPage(), in a decision it is decisionID.nextPage().
That is clear. Now I'm looking for a possibility to tell my generic
onRelease what the correct scope is. At the moment I use a variable
actualLevel which stores the scope of nextPage() (e.g. I set actualLevel =
decision1 so actualLevel.nextPage() calls the next page in the decision).
So for every decision/framework I integrate I have to make a script which
fills in the actual level variable correctly with the id of the
decision/framework. Is there an easier way to do this (I tried to use
this._parent instead of the ID, but this._parent is always _level0) ?
Thanks for you patience.
Peter
==================================
Peter Huppertz
E-learning and IT Specialist
International Centre for Asset Recovery
Basel Institute on Governance
Phone: +41 61 205 55 18
Fax: +41 61 267 55 19
From:
Julian Tenney <Julian.Tenney at nottingham.ac.uk>
To:
"Xerte discussion list" <xerte at lists.nottingham.ac.uk>
Date:
01/29/2009 06:03 PM
Subject:
RE: [Xerte] How to get the actual node/icon in an event script
Sent by:
xerte-bounces at lists.nottingham.ac.uk
iconID.nextPage(), where iconID is the id of the decision icon, not the
page icons.
From: xerte-bounces at lists.nottingham.ac.uk on behalf of Peter Huppertz
Sent: Thu 29/01/2009 13:51
To: xerte at lists.nottingham.ac.uk
Subject: [Xerte] How to get the actual node/icon in an event script
Dear list,
I have a Xerte piece which has different levels of pages using decision
icons. I implemented a navigation in an entry frame that just calls
rootIcon.nextPage() when the next button is clicked. This works fine for
the navigation on the top level but fails obviously for subpages of a
decision icon (instead of the next page in the decision icon the next top
level page is opened). I think I have to replace rootIcon with the actual
(sub-)page I'm on, but can't figure out, how to do that without a lot of
hassle (e.g. implementing a script on every page which stores the actual
page reference in a variable).
Peter
==================================
Peter Huppertz
E-learning and IT Specialist
International Centre for Asset Recovery
Basel Institute on Governance
Phone: +41 61 205 55 18
Fax: +41 61 267 55 19_______________________________________________
Xerte mailing list
Xerte at lists.nottingham.ac.uk
http://lists.nottingham.ac.uk/mailman/listinfo/xerte
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.nottingham.ac.uk/pipermail/xerte/attachments/20090129/0b0f0fc5/attachment.html
More information about the Xerte
mailing list