Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn More

View all

Sign in to view all badges

Extracting Data Using HTTPService Without mx:Columns

Avatar

Avatar
Level 2
alice_data
Level 2

Likes

0 likes

Total Posts

14 posts

Correct Reply

0 solutions
View profile

Avatar
Level 2
alice_data
Level 2

Likes

0 likes

Total Posts

14 posts

Correct Reply

0 solutions
View profile
alice_data
Level 2

25-07-2008

Hi, Guys:



Has anyone tried accessing the database through HTTPService,
and not use mx:Columns?

One of my columns in my database has really long text blobs,
so I don't really want the column name along with the content of
what is in the content to be in place along with the other columns
when I access the database through HTTPService.



I tried using something like mx:TextArea and put it in
mx:DataGrid, since it is still part of the database, but the screen
displayed a syntactical error message I have also tried putting in
the dataProvider in mx:TextArea so that it could link back to the
database I extracted from the HTTPService, which was also
disallowed. Is it possible if I just have the text blob extracted
separately and have it change according to what the users select
from the entries in the DataGrid I specified?



This is what I have now:



<mx:VBox width="450">

<mx:FormItem label="friend">

<mx:DataGrid id="friend_find"

dataProvider="{rssRequest3.lastResult.friends.friend}">

<mx:columns>

<mx:DataGridColumn dataField="id" width="25"
headerText="ID"/>

<mx:DataGridColumn dataField="name" width="108"
headerText="name"/>

</mx:columns>

<mx:TextArea id="friend_desc" width="300" height="100"
text="What Should I put here?"/>

</mx:DataGrid>

</mx:FormItem>

</mx:VBox>



Can anyone tell me what I might have done wrong here?

Thanks in advance.

Replies

Avatar

Avatar
Boost 1
Level 2
Michael_Borbor
Level 2

Likes

2 likes

Total Posts

93 posts

Correct Reply

3 solutions
Top badges earned
Boost 1
Affirm 3
Affirm 1
View profile

Avatar
Boost 1
Level 2
Michael_Borbor
Level 2

Likes

2 likes

Total Posts

93 posts

Correct Reply

3 solutions
Top badges earned
Boost 1
Affirm 3
Affirm 1
View profile
Michael_Borbor
Level 2

02-08-2008

In you want to insert a component you should use an
itemrenderer or an itemeditor. You cannot insert directly a
component like you did in a datagrid.