-
I have a repeat control that’s “manually” building a View, and taht repeat control defines “rowData” as a variable holding the entry representing the current row. Inside the repeat is an xp:tr to build a table row from the View row, and inside that are various things whose content and rendered= attribute are computed using the repeat-declared rowData variable. This works perfectly.- Now I’m adding xp:eventHandler tags to respond to events, one of which colorizes the row under the cursor, which is using dojo.addClass() to change the CSS for that xp:tr tag. But I don’t want this to colorize if the row is a category, so added an exclusion with rowData.isCategory(). The browser complains that rowData doesn’t exist.
-
I would expect this to work. The handler type is javascript, and the variable is javascript, but obviously handler JS is out of scope somehow.
-
I’m poking around in Firebug but I can’t even find a reference to rowData by using search, nor does browsing appear to cough one up, either.
-
How does one use a repeat control’s variable in an xp:eventHandler? I presume it’s a scoping issue, but perhaps it’s not.
-
Thanks for your time…
Subject: SOLVED: Ima tard…
- The repeat control is server side, the dojo call is client side. Duhhh!