This topic is locked

Dependent drop down list losing values

2/16/2007 5:29:52 AM
PHPRunner General questions
G
gdude66 author

I have a project with a dependent dropdown list but over the last 2 weeks in some cases the dependent value isn't being written to the database an instead a null field is filled. Any ideas?

T
thesofa 2/16/2007

I have a project with a dependent dropdown list but over the last 2 weeks in some cases the dependent value isn't being written to the database an instead a null field is filled. Any ideas?



I know it's daft, but if you use the scroll wheel on a mouse to scroll a form on the web page, and you still have the drop down list highlighted, it will scrooll the list, this may cause incorrect vales to be input.

J
Jane 2/16/2007

Graeme,
do you use default values or events on this page?

G
gdude66 author 2/16/2007

Graeme,

do you use default values or events on this page?



I used the dependent dropdowns based on lookups from another table. No events.

J
Jane 2/16/2007

Please publish your project on Demo Account and send to [email=support@xlinesoft.com]support@xlinesoft.com[/email] a URL to your pages along with instructions on reproducing this error.

I'll find what's wrong with your project inspecting it at Demo account site.

M
mmponline 2/16/2007

I have a similar problem. I'm sure support will come up with a solution very soon.
Stephan

G
gdude66 author 2/16/2007

Please publish your project on Demo Account and send to [email=support@xlinesoft.com]support@xlinesoft.com[/email] a URL to your pages along with instructions on reproducing this error.

I'll find what's wrong with your project inspecting it at Demo account site.


I think I will use before add events it doesn't fail and might be easier - There are too many people reporting bugs with dependent dropdowns and the dependent value is crucial to other parts of the project so I can't have it fail. Something like

global $conn;

$strSQLExists = "select * from student where idstudent='$studentid'";

$rsExists = db_query($strSQLExists,$conn);

$data=db_fetch_array($rsExists);

$values["home group"]= $data["form group"];

$values["year level"] = $data["yearlev"];



<img src='https://asprunner.com/forums/file.php?topicimage=1&fieldname=reply&id=15594&image=1&table=forumreplies' class='bbc_emoticon' alt=':ph34r:' />