See 
http://stackoverflow.com/questions/8146260/best-practice-for-populating-dropdown-based-on-other-dropdown-selection-in-web2p/8152910#8152910
.

On Tuesday, October 29, 2013 8:39:20 AM UTC-4, aabhas majumdar wrote:
>
> I have to create a form which has 2 fields source and destination . I have 
> a table Location1 in db.py with source and destination .
> I wanted to implement the view such that if i select a source from the 
> drop down list of source then in destination only those destinations will 
> be in drop down list whose source in database is the source entered.
> Example:
> database:
>  SOURCE - DESTINATION
>  USA        -   INDIA
>  USA        -    JAPAN
>  INDIA       -   CHINA
>  JAPAN     -   CHINA
>
> now in views if i select USA in SOURCE from dropdown list  
> of("USA","INDIA","JAPAN")  my destination dropdown list should contain only 
> ("INDIA","JAPAN")
>
>

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to