on 11-28-2008 11:58 AM
Hello,
I am trying to get access to a variable in a DataGrid in Adobe Flex. Without integrating FlashIsland it is working very well with the following coding:
<mx:DataGridColumn dataField="url" headerText="Infos" width="15">
<mx:itemRenderer>
<mx:Component>
<mx:Button label="Details anzeigen" click="outerDocument.getURL(data.url)" />
</mx:Component>
</mx:itemRenderer>
</mx:DataGridColumn>
When integrating in SAP with FlashIsland I use the following coding:
<mx:DataGridColumn dataField="" headerText="Infos" width="20"> <mx:itemRenderer> <mx:Component> <mx:Button label="Details anzeigen" click="outerDocument.getURL(data.link)"/> </mx:Component> </mx:itemRenderer> </mx:DataGridColumn> I get the error message: TypeError: Error #2007: Parameter url must be non-null. at global/flash.net::navigateToURL() at ZREWE_KAT02/getURL() at ZREWE_KAT02_inlineComponent1/___Button1_click() The error seems to be that I do not get access to the variable .
Any help is very much appreciated.
regards
stefan
Is link actually the name of the context attribute that gets passed through the island? Generally the names are generated by the xBCML renderer and can be aliased so that they don't even match the name from Web Dynpro. This is why you are supposed to do the name mapping to a flex string variable for each context attribute within a context node. Keep in mind that this name is just a string holding the actual, runtime column name in the Flex datasource. You have to access the column name using dynamic references in Flex.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
89 | |
10 | |
10 | |
9 | |
6 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.