saseow
Posts: 744
|
| Posted: 10/30/2009, 10:21 PM |
|
I have just noticed something and hope someone has a solution:
I have a record form with a master listbox and two dependent ones. When I create the record everything is stored correctly as seen in the grid view, however, when I go to edit the record all three listboxes are not showing the data so it appears that they have never been set. This is not the case as the data is stored correctly.
I have tried setting the IDs if the listboxes through code in before load events but the master listbox flashes correctly for a second and then returns to "Select Value".
Anyone had this hassle before and, more importantly, solved it?
Trevor
|
 |
 |
idh63
Posts: 76
|
| Posted: 11/12/2009, 5:37 AM |
|
Yes, I am having the same problem.
I have been wondering if this problem occurred since the latest CCS4 upgrade because I had all my pages working fine. Now all my pages have the exact same problem.
If I remove Prototype dependent listbox from features it will show the value as stored in the db. I even tried a different Javascript dependent listbox script and the exact same thing happened.
We better contact CCS support and let them know.
|
 |
 |
damian
Posts: 838
|
| Posted: 11/12/2009, 7:04 AM |
|
im prey sure that this occured with the non-ajax version of dependant list boxes.
the issue is cause because the initial values for the 2nd and third list boxes are NOT set from the database - they are set from the onchange state of the 1st listbox.
the problem is with the logic and i dont see a way around it...
i think you actually need to use a different form for EDIT/UPDATE than you do for NEW/INSERT
eg one way is to see if the logic can support less dependannt list boxes in EDIT form such as manufacture and model stay same but you can change colour or country and state stay same but you can change city
i hope that makes sense?
_________________
if you found this post useful take the time to help someone else.... :)
|
 |
 |
saseow
Posts: 744
|
| Posted: 11/12/2009, 7:13 AM |
|
Yes, I think it is the logic as well. It would be great to fix this but I am not too sure how. I have simply told my client that I will look into it
|
 |
 |
idh63
Posts: 76
|
| Posted: 11/12/2009, 9:42 AM |
|
I have a work around today. b.t.w. I sent in a support ticket on this issue.
>> damian, thanks for your correction re: populated value under ajax.
This seems to be the age ol' solution for a lot of CCS quirks that crop up.
I have discovered that if I delete the prototype scripts on the old page, create a new page, then copy/paste each ccsform from old problematic page to new page, then re-create the ajax, the dependent listboxes show the stored value.
I hope this is helpful.
|
 |
 |
saseow
Posts: 744
|
| Posted: 11/12/2009, 9:58 AM |
|
That is good idh63.
I will try this workaround. At least it is a solution.
I have to laugh at all this: Most of the solutions to problems with CCS have been provided by members of this forum and, talk about ingenuity! This forum has been amazing! Not one way to solve a problem but lots!
Thanks again idh63.
|
 |
 |
MichaelMcDonald
Posts: 640
|
| Posted: 11/17/2009, 4:15 AM |
|
I also received a fix from Yes Support.
I paid and have a licensed copy and a support plan, so I'd just like the dependant listboxes to work out of the box.
Also, on the subject of questionable behaviour, can anyone explain the logic behind the tabbed tab default tab behaviour. I cannot understand why when I submit a record on a tab, that tab closes and the left hand most tab becomes active again.
Yahoo does not do it.
_________________
Central Coast, NSW, Australia.
|
 |
 |