So my last post got no help, so here is something that maybe
someone out there can help me with. I have been google'n for days
and cannot find this done anywhere.
I would like a user to select an item from a combo box.
then a list populates from that selection into a datagrid.
the user would then select a choice from the data grid
The selection that the user makes would be a link and would
take them to another page in the same window _self or a seperate
window. I dont really care.
Pretty simple i think , but i just cannot figure it out.
please please please someone help.
I could really use it .
I have the PHP code and the databases working i just dont
know how to make that content clickable in the data grid.
>> i just dont know how to make that content clickable
in the data grid
When you click a cell in the grid, an event gets fired:
cellPress. You respond to that event using a listener object.
Define a function on the listener object with the same name as the
event and in the function use getURL() to open a website.
Assuming you have a dataprovider for the grid like:
You can hide columns if you want: (set this before you assign
now set the dataprovider for the grid
and setup a listener for the cellPress event
var my_listener:Object=new Object();
//open the website of the school
cellPress passes an object containing:
columnIndex: A number that indicates the index of the column
that was pressed. The first position is 0.
itemIndex: A number that indicates the index of the row that
was pressed. The first position is 0.
type: The string "cellPress".
So we use the itemIndex to get the url from the dataprovider.