Silly question re AJAX Processing

I know there’s a simple answer to this, but my head’s hurting:

I have a series of SELECT combo boxes. What is displayed in each successive combo box is dependent on the previous selection. Processing on each selection is done with the AJAX PROCESSING option.

IT works provided all check boxes have at least TWO items to select from. The problem seems to be that if there is only ONE ITEM in the selection list, the user’s selection does not trigger ON CHANGE and the next successive selection combo boxes are not loaded with the related data items.

Is there a way to force a refesh of the other combo boxes under these circumstances?

Re: Silly question re AJAX Processing

I would have to look at SC again, but I would suspect they are only allowing you to trap the onChange event and not the onSelect event that would help you.

You may have to create a JS function that provides this for you … if this is even possible to override.

They should really provide more ‘listeners’ that just onChange (change, collapse, expand, blur, focus, select, …)

Regards,
Scott.

Re: Silly question re AJAX Processing

In the combo box option enable the display title with null value and title for example:
“Select your State”; so if there is only ONE ITEM in the selection list, the event ON CHANGE will be executed
because you’ll select the item display.

It’s a good option to use in insert mode, all combo boxes with a title and a select message.

Regards. Joseag

Re: Silly question re AJAX Processing

Hi GuiGuy.
I had a similar problem and I’ve made the change like Joseag says… It will solve your problem.

JG

Re: Silly question re AJAX Processing

Thanks for the replies.

Cheers