Platon Technologies
not logged in Login Registration
EnglishSlovak
open source software development celebrating 10 years of open source development! Wednesday, November 11, 2026
About Us
Magazine
Open Source
CVS
Services
Index  »  Projects  »  phpMyEdit  »  Bug list  »  Bug #314

Viewing Bug Advanced Details [ Jump to Bugnotes ] [ Bug History ] [ Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0000314 core / field option feature always 2005-03-02 23:22 2005-03-06 21:37
 
Reporter michal View Status public  
Assigned To
Priority normal Resolution open Platform i386
Status feedback Duplicate ID OS FreeBSD
Projection none Version 5.1
ETA none Product Version current from CVS
  Product Build
  Votes 1
 
Summary submenu in dropdown
Description i've really came to need to have menu-submenu option when adding, as was described several times in forum.
it's a situation where there is a city_id as a foreign key from tables cities (standard values option). however i want to have an extra 'region' dropdown which will display only cities from the region in the 'city' dropdown (some cities will not be visible).
Steps To Reproduce i believe this can be done with some js/dhtml code. the problem is i have no idea how it should look like (so that it works with all browsers). i can implement it into the core class, not much of problem.

so can you guide me/post here code that would work as expected ?
Additional Information / Solution
 
System Description
Attached Files

Bug Notes
hbernard
2005-03-05 12:39

We can do this with OnChange property.

A simple API could be :

$opts['fdd']['foo_field'] = Array(
...
'onchange_reload' => true,
...
 
nepto
2005-03-05 13:22

How about disable this on Add page and construct proper drop-down on the Change page according to the selected city?

(: well, imperfect workaround, however still better than JS mess :)
 
hbernard
2005-03-05 14:10

nepto, I agree with your workaround.

The trouble to make it working with reload is that the JS should be very clever (sending already keyed values, setting the operation value, and so on).

This is much more difficult than I first thought.
 
michal
2005-03-06 13:59

preferably, i would like to do it without any server interaction
reasons:
- to avoid half-filled entries when user stops clicking
- script size is not much of problem
- hopefully, it can be simple and reliable as 'tabs'
 
hbernard
2005-03-06 21:37

michal : 'simple', sure, just write it ;-)))

the issue is :
- what would be the informations required to perform JS runtime filter?
- what would be the semantic of the filter ? (custom func, regexp, basic test, etc...)
- what if I want to display some field depending of the content of another above ?
 

Bug History
Date Modified Username Field Change
2005-03-02 23:22 michal New Bug
2005-03-05 12:36 hbernard Bug Monitored: hbernard
2005-03-05 12:39 hbernard Description Updated
2005-03-05 12:39 hbernard Steps to Reproduce Updated
2005-03-05 12:39 hbernard status new => feedback
2005-03-05 12:39 hbernard Bugnote Added: 0001518
2005-03-05 13:22 nepto Bugnote Added: 0001523
2005-03-05 14:10 hbernard Bugnote Added: 0001526
2005-03-06 13:59 michal Bugnote Added: 0001530
2005-03-06 21:37 hbernard Bugnote Added: 0001536

Copyright © 2002-2006 Platon Group
Site powered by Metafox CMS
Go to Top · Feedback form · Application form
Report bug on PLATON.SK website · Terms of use · Privacy policy