I've got an itemRenderer in a datagrid that's rendering a linkbutton 
with a script.

The following doesn't work because it's not valid XML, with the " 
symbols in the click value...

<mx:DataGridColumn headerText="Entity ID" width="100" dataField="ENTITYID">
        <mx:itemRenderer>
                <mx:Component>
                        <mx:LinkButton label="{data.ENTITYID}" 
click="navigateToURL(new 
URLRequest("javascript:popup_ultraslim('/tools/entityLookup3/entity_details.cfm?ENTITYID="
 
+ this.label + "',750,550)"), '_self');"/>
                </mx:Component>
        </mx:itemRenderer>
</mx:DataGridColumn>

I originally had a function defined in the same file that did that and I 
called like like this:

<mx:LinkButton label="{data.ENTITYID}" 
click="launchDetailsWindow(this.label);"/>

But it kept telling me that launchDetailsWindow was a "possibly 
undefined function", leading me to believe that I don't understand 
scoping in itemrenders :)

Rick


--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/flexcoders/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 


Reply via email to