# Dynamic data passing thru Rails to Flash

**URL:** <https://www.ruby-forum.com/t/dynamic-data-passing-thru-rails-to-flash/60242>\
**Category:** Rails\
**Created:** [May 11, 2006, 3:08pm UTC](https://www.ruby-forum.com/t/dynamic-data-passing-thru-rails-to-flash/60242 "2006-05-11T15:08:12Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![gbalaji](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/g/c77e96/32.png) [@gbalaji](https://www.ruby-forum.com/u/gbalaji)\
**Post date:** [May 11, 2006, 3:08pm UTC](https://www.ruby-forum.com/t/dynamic-data-passing-thru-rails-to-flash/60242/1 "2006-05-11T15:08:12Z")

</div>

Hi,

I am using Flash Dashboard and 3 sets of listbox.

When i change my first list box say name i need to dynamically change  
the second list box and from the second list box when i choose an name i  
need to change the content according to this in the third list box.

How can i pass this datas from database in rails.

thanx  
g.balaji

---

<div class="post-metadata">

**Author:** ![gbalaji](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/g/c77e96/32.png) [@gbalaji](https://www.ruby-forum.com/u/gbalaji)\
**Post date:** [May 12, 2006, 5:34am UTC](https://www.ruby-forum.com/t/dynamic-data-passing-thru-rails-to-flash/60242/2 "2006-05-12T05:34:05Z")

</div>

gopal balaji wrote:

> Hi,
> 
> I am using Flash Dashboard and 3 sets of listbox.
> 
> When i change my first list box say name i need to dynamically change  
> the second list box and from the second list box when i choose an name i  
> need to change the content according to this in the third list box.
> 
> How can i pass this datas from database in rails.
> 
> thanx  
> g.balaji

Anyone help me with my query.

I have 3 list box from which, When i select the first list box data i  
need the second list box data relevant to the first one selected and the  
same for the third list box.I need to pick the data from database and  
pass it to the flash.

How can i do this with rails.

Any thoughts or help.

gbalaji

---

<div class="post-metadata">

**Author:** ![gbalaji](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/g/c77e96/32.png) [@gbalaji](https://www.ruby-forum.com/u/gbalaji)\
**Post date:** [May 12, 2006, 5:59am UTC](https://www.ruby-forum.com/t/dynamic-data-passing-thru-rails-to-flash/60242/3 "2006-05-12T05:59:11Z")

</div>

Hi Gopal,  
Can you narrow down your problem at bit.

Are you having trouble accessing you database in your Rails app?  
Are you having trouble passing data to Flash from your database?  
Are you having trouble building a dynamic listbox from the results of a  
previous listbox?

If you can narrow the problem down I’m sure someone will be able to help  
you. Make sure to include any errors that you are getting.

-Eric G.  
[ericgoodwin.com](http://ericgoodwin.com)

---

<div class="post-metadata">

**Author:** ![gbalaji](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/g/c77e96/32.png) [@gbalaji](https://www.ruby-forum.com/u/gbalaji)\
**Post date:** [May 12, 2006, 6:20am UTC](https://www.ruby-forum.com/t/dynamic-data-passing-thru-rails-to-flash/60242/4 "2006-05-12T06:20:46Z")

</div>

This is difficult to do with IE. Most would use RJS for the  
implementation.

If you search the archives, Ezra provided a solution to this. Search  
for  
posts with Dynamic in their title and you’ll find it.

---

<div class="post-metadata">

**Author:** ![gbalaji](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/g/c77e96/32.png) [@gbalaji](https://www.ruby-forum.com/u/gbalaji)\
**Post date:** [May 12, 2006, 8:45am UTC](https://www.ruby-forum.com/t/dynamic-data-passing-thru-rails-to-flash/60242/5 "2006-05-12T08:45:04Z")

</div>

> How can i do this with rails.
> 
> Any thoughts or help.
> 
> gbalaji

Might not be what you need, but one option to consider if you can’t  
figure it out is to output to an XML file. XML is easy to deal with in  
Flash

---

<div class="post-metadata">

**Author:** ![gbalaji](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/g/c77e96/32.png) [@gbalaji](https://www.ruby-forum.com/u/gbalaji)\
**Post date:** [May 12, 2006, 5:19pm UTC](https://www.ruby-forum.com/t/dynamic-data-passing-thru-rails-to-flash/60242/6 "2006-05-12T17:19:19Z")

</div>

Eric G. wrote:

> Hi Gopal,  
> Can you narrow down your problem at bit.
> 
> Are you having trouble accessing you database in your Rails app?  
> Are you having trouble passing data to Flash from your database?  
> Are you having trouble building a dynamic listbox from the results of a  
> previous listbox?
> 
> If you can narrow the problem down I’m sure someone will be able to help  
> you. Make sure to include any errors that you are getting.
> 
> -Eric G.  
> [ericgoodwin.com](http://ericgoodwin.com)

Hi Eric,  
Thanks for your reply.

Yes I need to have “Trouble in buildeing a dynamic listbox from the  
results of a previous listbox”.

I dont know how to approach this.

We are previously doing this in php where we fill pass from flash to and  
fro to php and we need need to do this using rails.If you can help us it  
will be of great help.

Thanx  
G.Balaji

---

<div class="post-metadata">

**Author:** ![gbalaji](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/g/c77e96/32.png) [@gbalaji](https://www.ruby-forum.com/u/gbalaji)\
**Post date:** [May 13, 2006, 7:13am UTC](https://www.ruby-forum.com/t/dynamic-data-passing-thru-rails-to-flash/60242/7 "2006-05-13T07:13:04Z")

</div>

Guest wrote:

> Eric G. wrote:
> 
> > Hi Gopal,  
> > Can you narrow down your problem at bit.
> > 
> > Are you having trouble accessing you database in your Rails app?  
> > Are you having trouble passing data to Flash from your database?  
> > Are you having trouble building a dynamic listbox from the results of a  
> > previous listbox?
> > 
> > If you can narrow the problem down I’m sure someone will be able to help  
> > you. Make sure to include any errors that you are getting.
> > 
> > -Eric G.  
> > [ericgoodwin.com](http://ericgoodwin.com)
> 
> Hi Eric,  
> Thanks for your reply.
> 
> Yes I need to have “Trouble in buildeing a dynamic listbox from the  
> results of a previous listbox”.
> 
> I dont know how to approach this.
> 
> We are previously doing this in php where we fill pass from flash to and  
> fro to php and we need need to do this using rails.If you can help us it  
> will be of great help.
> 
> Thanx  
> G.Balaji

Any thoughts on passing dynamicaly data from database to subsequent list  
box.

Meaning - I have 3 list box  
I need the first list box to show from database and when its related  
data in 2 listbox and when i choose it shows the subsequent in 3rd.

ex.

Campaign 1 -  
ver 1  
name 1  
name 2  
ver 2  
name 1  
name 2  
Campaign 2 -  
ver 1  
…  
ver 2  
…

and so on and so forth

g.balaji
