dropdown menu of foreign key field: crazy problem
I have a table with a column that is foreign key to a column within another table having numeric field. for some reasons, even if in the referred table I have 1200 entries, in the other table I can only choose 1055 entries from the dropdown menu, even if i digit 1055, that value is not accepted, if i paste the value then it accepted, but needless to say that i am really bothered by this problem! anybody who knows how to fix it?
Please read my above comment. If you would enter a different number the server would return some SQL error for the generated INSERT query as you are violating the foreign key constraint, wouldn't it? Again, the drop down is only displayed when there are less than 1000 unique values in the foreign column. This is to avoid large queries and to enable the user to enter any data by hand when there are more than 1000 rows.
ok i didn't explain properly. I can enter the value, say, 1200, if i copy and paste it into the column, instead if i type 1200, the value 12 is chosen from the dropdown menu, because, even if i have more than 1000 values in the foreign column, the dropdown menu is still displayed
Please login to leave a reply, or register at first.