7/1/2025 5:34:33 PM
|
|
slxdeveloper.com Community Forums |
|
|
|
The Forums on slxdeveloper.com are now retired. The forum archive will remain available for the time being. Thank you for your participation on slxdeveloper.com!
Forum to discuss the use of the SalesLogix Web Platform, Client and Customer Portals, and the Application Architect (For version 7.2 and higher only). View the code of conduct for posting guidelines.
|
|
|
|
Tabbing to Picklists - Erratic Behaviour
Posted: 24 Nov 09 7:56 AM
|
Hi all
One of our users spotted that some PickLists open when you tab to them and others do not (and more importantly asked if we can fix it). I've been comparing PickLists all morning and I can't work out anything that makes the two groups different.
No sooner have I spotted something that might separate the ones that do show from the ones that don't then I find an exception to the rule!
Does anyone have any ideas what's causing this? Any idea how to make all PickLists show when you tab onto them?
We're on 7.5.1 as this may make a difference (I think I remember some changes to PickLists in SP1).
Cheers |
|
|
|
Re: Tabbing to Picklists - Erratic Behaviour
Posted: 25 Nov 09 8:17 AM
|
David I do not remember a property of the picklist control to control this. Are the different picklists set with different properties (like required entry, text must match a list, etc.)? |
|
|
|
Re: Tabbing to Picklists - Erratic Behaviour
Posted: 25 Nov 09 11:01 AM
|
It's a strange one, PickLists affected and not can share settings. The settings/properties themselves don't seem to be the cause, I can't work out any consistent pattern that would indicate a correlation.
Also I large PickLists that work and small ones that don't, so I don't think it's just the time it takes to render. I have tabbed to one of the offenders and waited for about 5 minutes for the PickList to show with no luck.
Have you come across this on any of your customisations? |
|
|
|
Re: Tabbing to Picklists - Erratic Behaviour
Posted: 25 Nov 09 3:11 PM
|
I took a quick peak at it and this is what I came up with:
The TextChange Event for the Picklist is being attached to the KeyUp event of the Textbox. When you tab into the Field, the Tab is indeed caught as part of the Keyup event (at least on IE, not sure how this behaves on other browsers).
The code for the TextChange does a bunch of stuff, so the behaviour may be different depending on Settings and values (such as "Must Exists"), at some point it compares the current value of the Field vs. the Available values on the Picklist control, if it finds a match, then it pops the Control Open with the value as selected.
if (this.mustExistInList) { this.SetVisibility(true); this.isDroppedDown = true; } else { list.selectedIndex = -1; }
var matchFound = false; for( var i = 0; i < items.length; i++ ) { var item = items[i]; if(unescape(item.text).toLowerCase().indexOf(unescape(text.value).toLowerCase() ) == 0 ) { list.selectedIndex = i; matchFound = true; this.LastValidText = text.value; if (!this.isDroppedDown) { this.SetVisibility(true); this.isDroppedDown = true; } break; }
|
|
|
|
Re: Tabbing to Picklists - Erratic Behaviour
Posted: 26 Nov 09 6:08 AM
|
You know, I tried to get to the bottom of what was happening on that event, and I just couldn't work it out!
That makes perfect sense, I'll need to take a look at the offending PickLists - perhaps the data in the existing record(s) doesn't match the values in the PickList or some other setting is preventing it from matching?
Thanks again for your effort, I know I can trust you to give informed and researched answers to my questions! |
|
|
|
You can
subscribe to receive a daily forum digest in your
user profile. View the site code
of conduct for posting guidelines.
Forum RSS Feed - Subscribe to the forum RSS feed to keep on top of the latest forum activity!
|
|
|
|
|
|
|
|