afriedrichs
09-28-2007, 05:59 AM
Okay, I may be missing the boat somewhere, but I'm really starting to think other then getting around our script errors, datacombobox is a pain.
We were using a customized combobox and since we started to get script timeout errors when we were using large datasets, we did some research. Based on what we read, datacombobox was the way to go. So we started to work with that. While yes, it does get rid of the script timeout errors, it doesn't do alot of what the combobox does. It doesn't honor sorting in the textlistitem which is now datacombobox_item. And it won't load an inital value that we name in datapath like the combobox did. It doesn't give us an error but doesn't load it. And if you do a getValue or getText(yes, we added this method) it isnt' set until the list is opened. So now we're going to have extra coding to load our datacombobox with the correct text and value and customized it to sort our dataset like we want.
Anyone else experiencing these problems... is it actually designed this way? I've looked at the code for both the combobox and datacombo box enough now that I know it has to have something to do with the fact that the datacombobox doesn't create the list until needed and the combobox populates the text/value from the list, but that doesn't explain why it doesn't do the sorting on the datacombobox_item which is extended from the textlistitem which is used in the combobox.
Any one have any help on this or are we just stuck coding around it or figuring out how to customize the datacombobox to do what we want. There just is no good doc on the datacombobox!
Any help appreciated! Amy
We were using a customized combobox and since we started to get script timeout errors when we were using large datasets, we did some research. Based on what we read, datacombobox was the way to go. So we started to work with that. While yes, it does get rid of the script timeout errors, it doesn't do alot of what the combobox does. It doesn't honor sorting in the textlistitem which is now datacombobox_item. And it won't load an inital value that we name in datapath like the combobox did. It doesn't give us an error but doesn't load it. And if you do a getValue or getText(yes, we added this method) it isnt' set until the list is opened. So now we're going to have extra coding to load our datacombobox with the correct text and value and customized it to sort our dataset like we want.
Anyone else experiencing these problems... is it actually designed this way? I've looked at the code for both the combobox and datacombo box enough now that I know it has to have something to do with the fact that the datacombobox doesn't create the list until needed and the combobox populates the text/value from the list, but that doesn't explain why it doesn't do the sorting on the datacombobox_item which is extended from the textlistitem which is used in the combobox.
Any one have any help on this or are we just stuck coding around it or figuring out how to customize the datacombobox to do what we want. There just is no good doc on the datacombobox!
Any help appreciated! Amy