duivvv
%Europe/Berlin %594 %2006, 14:16
ok volgende vraag
is het mogelijk om als dataprovider een variabel path te gebruiken ?
zoals
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
height="100%" width="100%" creationComplete="usersFeed.send()">
<mx:Script>
[Bindable]
private var tabel:String = "clients";
[Bindable]
private var nn:String = "client";
</mx:Script>
<mx:HTTPService url="http://localhost/flexTijdsReg/PHP/test.php?tb={tabel}" id="usersFeed"/>
<mx:DataGrid dataProvider="{'usersFeed.lastResult.' + tabel + '.' + nn}" width="658" editable="true">
<mx:columns>
<mx:DataGridColumn dataField="clientID"/>
<mx:DataGridColumn dataField="name"/>
<mx:DataGridColumn dataField="address"/>
<mx:DataGridColumn dataField="zip"/>
</mx:columns>
</mx:DataGrid>
</mx:Application>
dit werkt dus al zeker niet :S
<mx:DataGrid dataProvider="{'usersFeed.lastResult.' + tabel + '.' + nn}" width="658" editable="true">
is het mogelijk om als dataprovider een variabel path te gebruiken ?
zoals
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
height="100%" width="100%" creationComplete="usersFeed.send()">
<mx:Script>
[Bindable]
private var tabel:String = "clients";
[Bindable]
private var nn:String = "client";
</mx:Script>
<mx:HTTPService url="http://localhost/flexTijdsReg/PHP/test.php?tb={tabel}" id="usersFeed"/>
<mx:DataGrid dataProvider="{'usersFeed.lastResult.' + tabel + '.' + nn}" width="658" editable="true">
<mx:columns>
<mx:DataGridColumn dataField="clientID"/>
<mx:DataGridColumn dataField="name"/>
<mx:DataGridColumn dataField="address"/>
<mx:DataGridColumn dataField="zip"/>
</mx:columns>
</mx:DataGrid>
</mx:Application>
dit werkt dus al zeker niet :S
<mx:DataGrid dataProvider="{'usersFeed.lastResult.' + tabel + '.' + nn}" width="658" editable="true">